#1431: libraries: configure argument containing whitespace not passed correctly
to
Setup
---------------------------+------------------------------------------------
Reporter: greenrd | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.7
Severity: major | Keywords:
Difficulty: Unknown | Os: Multiple
Testcase: | Architecture: Multiple
---------------------------+------------------------------------------------
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 ...
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1431>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs