Changes between Initial Version and Version 3 of Ticket #3479


Ignore:
Timestamp:
Sep 11, 2009 10:46:30 AM (5 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3479

    • Property Difficulty changed from to Unknown
  • Ticket #3479 – Description

    initial v3  
    11I'm trying to bootstrap ghc compiler with downloaded ghc binary distribution (6.10.4). Passing some variables to ./configure for example: 
    2  
     2{{{ 
    33./configure LDFLAGS="-Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc" CFLAGS="-O2 -fno-strict-aliasing -fwrapv -march=i686" ... 
    4  
     4}}} 
    55results in running configure scripts in libraries with incorrect options: 
    66 
    77(for base library) 
    8  
     8{{{ 
    99configure --with-compiler=/home/users/atler/rpm/BUILD/ghc-6.10.4/ghc/stage1-inplace/ghc --with-hc-pkg=/home/users/atler/rpm/BUILD/ghc-6.10.4/utils/ghc-pkg/install-inplace/bin/ghc-pkg --prefix=/NONEXISTENT --bindir=/NONEXISTENT --libdir=/NONEXISTENT --libexecdir=/NONEXISTENT --datadir=/NONEXISTENT LDFLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc  --configure-option= CFLAGS=-O2 -fno-strict-aliasing -fwrapv -march=i686 ... 
    10  
     10}}} 
    1111Notice that --configure-option (added in mk/cabal-flags.mk) was not stripped for CFLAGS, actually it's stripped only for the first variable. This further results in passing --configure-option to gcc when testing gcc usability which obviously fails. Another interesting part is though compilation of base fails, compilation process still continues and ends with some mysterious error about not met dependecies.