libraries: configure argument containing whitespace not passed correctly to Setup
Note the incorrect quotation when passing through CFLAGS in the command executed by make below, and the resulting error. This is due to the use of addprefix in libraries/Makefile.
... snip ...
rm -f -f stamp/configure.library.*.base base/unbuildable
( cd base && setup/Setup configure \
--enable-library-profiling --enable-split-objs \
--prefix='$topdir' \
--datadir='$prefix/share' \
--libsubdir='$compiler/lib/$pkgid' \
--with-compiler=../../compiler/ghc-inplace \
--with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace \
--with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
--with-ld=/usr/bin/ld \
--datasubdir=ghc \
--haddock-args="--use-contents=../index.html \
--use-index=../doc-index.html" \
--configure-option='--prefix=/usr' --configure-option='--host=x86_64-pc-linux-gnu' --configure-option='--mandir=/usr/share/man' --configure-option='--infodir=/usr/share/info' --configure-option='--datadir=/usr/share' --configure-option='--sysconfdir=/etc' --configure-option='--localstatedir=/var/lib' --configure-option='--libdir=/usr/lib64' --configure-option='--build=x86_64-pc-linux-gnu' --configure-option='build_alias=x86_64-pc-linux-gnu' --configure-option='host_alias=x86_64-pc-linux-gnu' --configure-option='CFLAGS=-O2 --configure-option=-pipe --configure-option=-ggdb --configure-option=-march=opteron' --configure-option='CPPFLAGS=' \
--configure-option=--with-cc=gcc ) \
&& touch stamp/configure.library.build-profiling-splitting.base || touch base/unbuildable
Setup: Warning: Unknown field 'nhc98-options'
checking for x86_64-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
... snip ...
Trac metadata
Trac field | Value |
---|---|
Version | 6.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Multiple |
Architecture | Multiple |