[GHC] #11168: Cross build broken in commit 7af29da05d

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Keywords: cross-compile | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I have been buildng a x86_64/linux to armhf/linux cross-compiler using: {{{ ./configure --target=arm-linux-gnueabihf -with-gcc=arm-linux-gnueabihf- gcc-5 make -j3 }}} for some time. However, after commit 7af29da05d, that results in: {{{ "inplace/bin/ghc-cabal" check libraries/base "inplace/bin/ghc-cabal" configure libraries/base dist-install "" --with-ghc="/md-new/home/erikd/Git/ghc-upstream/inplace/bin/ghc-stage1" --with-ghc-pkg="/md-new/home/erikd/Git/ghc-upstream/inplace/bin/ghc-pkg" --flags=integer-simple --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -marm -fno-stack-protector -Werror=unused-but-set-variable -Wno-error=inline" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -marm -fno-stack-protector -Werror=unused-but-set-variable -Wno-error=inline " --configure-option=--host=arm-unknown-linux-gnueabihf --with-gcc="arm-linux-gnueabihf-gcc-5" --with-ld="/usr/bin/arm-linux-gnueabihf-ld.gold" --configure-option=--with-cc="arm-linux-gnueabihf-gcc-5" --with-ar="/usr/bin/arm-linux-gnueabihf-ar" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy" Configuring base-4.9.0.0... configure: WARNING: unrecognized options: --with-compiler, --with-gcc checking for arm-unknown-linux-gnueabihf-gcc... no checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/md-new/home/erikd/Git/ghc-upstream/libraries/base': configure: error: C compiler cannot create executables See `config.log' for more details libraries/base/ghc.mk:4: recipe for target 'libraries/base/dist-install/package-data.mk' failed make[1]: *** [libraries/base/dist-install/package-data.mk] Error 77 Makefile:121: recipe for target 'all' failed }}} It seems that the required GCC version doesn't get passed to configuration for Base. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: cross-compile Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Is there anything interesting logged to `config.log` telling us what Autoconf does exactly? Does it help if you comment out the `AC_USE_SYSTEM_EXTENSIONS` line in `libraries/base/configure.ac`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: cross-compile Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Fwiw, I can't reproduce this trying to build a x86_64-unknown-linux to aix-ibm-aix crosscompiler -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: cross-compile Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by erikd): How do you configure for powerpc-ibm-aix? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: cross-compile Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by erikd): Ok, I think the cause of the problem is that I'm configuring with: {{{ ./configure --target=arm-linux-gnueabihf -with-gcc=arm-linux-gnueabihf- gcc-5 }}} The `-with-gcc` argument is necessary because there is no compiler named `arm-linux-gnueabihf-gcc`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: cross-compile Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Can you try if http://git.haskell.org/ghc.git/commitdiff/refs/heads/wip/T11168 changes anything? That patch moves the AC_USE_SYSTEM_EXTENSIONS macro to a later point at which the CC setting should be already locked (rather than triggering a premature CC detection) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11168: Cross build broken in commit 7af29da05d
-------------------------------------+-------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Build System | Version: 7.11
Resolution: | Keywords: cross-compile
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Herbert Valerio Riedel

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: cross-compile Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by hvr): * status: new => closed * resolution: => fixed Comment: I expect this to be fixed now -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11168: Cross build broken in commit 7af29da05d -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: cross-compile Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by erikd): Confirmed as fixed! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11168#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC