Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,936
    • Issues 4,936
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 455
    • Merge requests 455
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #1431
Closed
Open
Created Jun 16, 2007 by greenrd@trac-greenrd

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking