[GHC] #9503: Cross compiling with mingw uses wrong gcc

#9503: Cross compiling with mingw uses wrong gcc -------------------------------------+------------------------------------- Reporter: Kritzefitz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.3 Keywords: Cross compiling | Operating System: Linux Architecture: x86 | Type of failure: Building Difficulty: Unknown | GHC failed Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Greetings, I tried to cross compile a cross compiler ghc on Debian jessie Linux/GNU i386. I configured with "./configure --target=x86_64-w64-mingw32" (log attached). The configure script runs and then wants to use the native gcc (/usr/bin/gcc) instead of the mingw one (/usr/bin//usr/bin/x86_64-w64-mingw32-gcc). Thus the mingw headers (in /usr/x86_64-w64-mingw32/include/) aren't found, which leads to errors during compiling (relevant part attached). Regards Sven -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9503 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9503: Cross compiling with mingw uses wrong gcc -------------------------------------+------------------------------------- Reporter: Kritzefitz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build | Version: 7.8.3 System | Keywords: Cross compiling Resolution: | Architecture: x86 Operating System: Linux | Difficulty: Unknown Type of failure: Building | Blocked By: GHC failed | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by rwbarton): Yes, this seems to happen for all cross-compilations, I don't understand it either. As a workaround you can explicitly specify `--with-gcc=...`, though, and that should at least get you farther. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9503#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC