--with-gcc does not work well
Ian Lynagh
ian at well-typed.com
Sat May 25 22:26:14 CEST 2013
Hi Kazu,
On Thu, Apr 25, 2013 at 12:44:24PM +0900, Kazu Yamamoto wrote:
>
> --with-gcc=/usr/local/bin/gcc47
> --with-gcc-4.2=/usr/local/bin/gcc47
>
> This caused an error:
>
> Configuring terminfo-0.3.2.5...
> configure: WARNING: unrecognized options: --with-compiler, --with-iconv-includes, --with-iconv-libraries, --with-gmp-includes, --with-gmp-libraries, --with-gcc
> checking for gcc... cc
> checking whether the C compiler works... no
> configure: error: in `/usr/home/kazu/work/ghc/libraries/terminfo':
> configure: error: C compiler cannot create executables
What command was make running when this happened?
There should have been a flag like
--configure-option=--with-cc="/usr/bin/gcc"
where /usr/bin/gcc is the value of CC_STAGE0.
> -CC_STAGE0 = @CC_STAGE0@
> +CC_STAGE0 = $(CC)
For CC_STAGE0, we deliberately use the C compiler that the bootstrapping
GHC uses, not the value of gcc that you specify with --with-gcc.
What is @CC_STAGE0@ replaced with in mk/config.mk?
And what is the output of
/usr/local/bin/ghc --info | grep "C compiler command"
(assuming /usr/local/bin/ghc is your bootstrapping compiler)?
Thanks
Ian
--
Ian Lynagh, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com/
More information about the ghc-devs
mailing list