
#8378: Cross-compiling from x86_64-unknown-linux-gnu to x86_64-sun-solaris2 with mkGmpConstants workaround fails to build objects for integer-gmp -------------------------------------+------------------------------------- Reporter: AlainODea | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Resolution: | Keywords: solaris,integer- Operating System: Unknown/Multiple | gmp Type of failure: Building GHC | Architecture: Unknown/Multiple failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: 8373,8366,8361 -------------------------------------+------------------------------------- Comment (by AlainODea): Here are the "WARNING" messages from the log. This seems likely to be problematic, not sure what I've done wrong with it: {{{ checking for x86_64-unknown-linux-gnu-ranlib... no checking for ranlib... ranlib configure: WARNING: using cross tools not prefixed with host triplet }}} This seems to be mostly harmless, but I can work around it by install packages with xmllint, xsltproc, and dblatex on my build system: {{{ checking for xmllint... no configure: WARNING: cannot find xmllint in your PATH, you will not be able to validate your documentation checking for xsltproc... no configure: WARNING: cannot find xsltproc in your PATH, you will not be able to build the HTML documentation checking for dblatex... no configure: WARNING: cannot find dblatex in your PATH, you will not be able to build the PDF and PS documentation }}} This suggests that I need to include more in my $SYSROOT for my cross- compiler: {{{ checking nlist.h presence... no configure: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: nlist.h: proceeding with the compiler's result }}} This is a fallback I guess: {{{ checking for working fork... cross configure: WARNING: result yes guessed because of cross compilation }}} This looks very problematic: {{{ checking sys/eventfd.h presence... yes configure: WARNING: sys/eventfd.h: present but cannot be compiled configure: WARNING: sys/eventfd.h: check for missing prerequisite headers? configure: WARNING: sys/eventfd.h: see the Autoconf documentation configure: WARNING: sys/eventfd.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/eventfd.h: proceeding with the compiler's result configure: WARNING: ## ----------------------------------------------- ## configure: WARNING: ## Report this to glasgow-haskell-bugs@haskell.org ## configure: WARNING: ## ----------------------------------------------- ## }}} This is potentially the cause of #8366: {{{ Configuring terminfo-0.3.2.5... configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ config.status: creating terminfo.buildinfo configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ Configuring integer-gmp-0.5.1.0... configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ config.status: creating integer-gmp.buildinfo config.status: creating gmp/config.mk configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ Configuring base-4.7.0.0... configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ configure: creating ./config.status config.status: creating base.buildinfo config.status: creating include/HsBaseConfig.h config.status: creating include/EventConfig.h configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ Configuring unix-2.7.0.0... configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ configure: creating ./config.status config.status: creating unix.buildinfo config.status: creating include/HsUnixConfig.h configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} {{{ Configuring directory-1.2.0.1... configure: WARNING: unrecognized options: --with-compiler, --with-gcc }}} Lots more of those. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8378#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler