--with-gcc does not work well
Kazu Yamamoto ( 山本和彦 )
kazu at iij.ad.jp
Thu May 30 04:24:15 CEST 2013
Hi Ian,
>> 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?
Here it is:
"inplace/bin/ghc-cabal" configure libraries/terminfo dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/usr/home/kazu/work/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Werror=unused-but-set-variable -Wno-error=inline" --configure-option=LDFLAGS=" -Wl,--hash-size=31 -Wl,--reduce-memory-overheads " --configure-option=CPPFLAGS=" " --configure-option=--with-iconv-includes="/usr/local/include" --configure-option=--with-iconv-libraries="/usr/local/lib" --configure-option=--with-gmp-includes="/usr/local/include" --configure-option=--with-gmp-libraries="/usr/local/lib" --constraint "Cabal == 1.17.0" --constraint "hpc == 0.6.0.1" --constraint "bin-package-db == 0.0.0.0" --constraint "hoopl == 3.10.0.0" --constraint "transformers == 0.3.0.0" --constraint "terminfo == 0.3.2.5" --with-gcc="cc" --configure-option=--with-cc="cc" --with-ar="/usr/bin/ar" --with-ranlib="true" --with-alex="/usr/local/bin/alex" --with-happy="/usr/local/bin/happy"
> What is @CC_STAGE0@ replaced with in mk/config.mk?
CC_STAGE0 = cc
> And what is the output of
> /usr/local/bin/ghc --info | grep "C compiler command"
> (assuming /usr/local/bin/ghc is your bootstrapping compiler)?
% /usr/local/bin/ghc --info | grep "C compiler command"
,("C compiler command","cc")
--Kazu
More information about the ghc-devs
mailing list