FW: [GHC] #729 Build system uses wrong version of include files.

Simon Marlow simonmar at microsoft.com
Fri Sep 1 09:09:22 EDT 2006


Shaun Lippy reports that #729 is happening for him too (I previously
closed this bug assuming driver error).  Can someone on MacOS X
reproduce and possibly diagnose this please?
 
Cheers,
    Simon

________________________________

From: Shaun Lippy [mailto:shaunlippy at gmail.com] 
Sent: 30 August 2006 05:22
To: simonmarhaskell at gmail.com
Subject: Re: [GHC] #729 Build system uses wrong version of include
files.


Hi Simon -

I am seeing this error as well, building for Tiger.  I simply ran 'sudo
port install ghc'.  This proceeded to go get the GMP libs, built them
successfully; it then gets the Perl that it needs,  successfully builds
that; it gets something called Readline, successfully builds that.  Then
it gets GHC and starts to build that; it is in stage 1 build. 

Here's the entire output of the sudo command mentioned:

adsl-64-109-253-64:~ slippy$ sudo port install ghc
Password:
--->  Fetching gmp
--->  Attempting to fetch gmp-4.2.1.tar.bz2 from
ftp://ftp.gnu.org/gnu/gmp
--->  Verifying checksum(s) for gmp
--->  Extracting gmp
--->  Configuring gmp
--->  Building gmp with target all
--->  Staging gmp into destroot
running ranlib on static libraries 
--->  Installing gmp 4.2.1_4+test
--->  Activating gmp 4.2.1_4+test
--->  Cleaning gmp
--->  Fetching perl5.8
--->  Attempting to fetch perl-5.8.8.tar.bz2 from
http://www.cpan.org/src/5.0/
--->  Verifying checksum(s) for perl5.8
--->  Extracting perl5.8
--->  Applying patches to perl5.8
--->  Configuring perl5.8
--->  Building perl5.8 with target all 
--->  Staging perl5.8 into destroot
--->  Installing perl5.8 5.8.8_0+darwin_8
--->  Activating perl5.8 5.8.8_0+darwin_8
--->  Cleaning perl5.8
--->  Fetching readline
--->  Attempting to fetch readline51-001 from
ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/
--->  Attempting to fetch readline51-002 from
ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/
--->  Attempting to fetch readline51-003 from
ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/
--->  Attempting to fetch readline51-004 from
ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/
--->  Attempting to fetch readline-5.1.tar.gz from
ftp://ftp.gnu.org/gnu/readline
--->  Verifying checksum(s) for readline
--->  Extracting readline
--->  Applying patches to readline
--->  Configuring readline
--->  Building readline with target all 
--->  Staging readline into destroot
--->  Installing readline 5.1.004_0
--->  Activating readline 5.1.004_0
--->  Cleaning readline
--->  Fetching ghc
--->  Attempting to fetch ghc-6.4.2-src.tar.bz2 from
http://www.haskell.org/ghc//dist/6.4.2/
--->  Attempting to fetch happy-1.15-src.tar.gz from
http://www.haskell.org/happy/dist/1.15 
--->  Attempting to fetch ghc-6.4-darwin-bootstrap-tiger.tar.bz2 from
http://www.haskell.org/ghc//dist/6.4/MacOSX/
--->  Verifying checksum(s) for ghc 
--->  Extracting ghc
--->  Applying patches to ghc
--->  Configuring ghc
--->  Building ghc with target all
Error: Target com.apple.build returned: shell command
"DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make all" returned error 2 
Command output:
------------------------------------------------------------------------
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs
ync.darwinports.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc
-H16m -O -I/opt/local/include -I/usr/include -L/opt/local/lib -L/usr/lib
-istage1/utils  -istage1/basicTypes  -istage1/types  -istage1/hsSyn
-istage1/prelude  -istage1/rename  -istage1/typecheck  -istage1/deSugar
-istage1/coreSyn  -istage1/specialise  -istage1/simplCore
-istage1/stranal  -istage1/stgSyn  -istage1/simplStg  -istage1/codeGen
-istage1/main  -istage1/profiling  -istage1/parser  -istage1/cprAnalysis
-istage1/compMan  -istage1/ndpFlatten  -istage1/iface  -istage1/cmm
-istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-generics
-Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix
-ignore-package lang -recomp -Rghc-timing  -H16M '-#include "
hschooks.h"' -i../lib/compat -ignore-package Cabal    -c
basicTypes/OccName.lhs-boot -o stage1/basicTypes/OccName.o-boot  -ohi
stage1/basicTypes/OccName.hi-boot
<<ghc: 28500036 bytes, 8 GCs, 2406298/4716080 avg/max bytes residency (2
samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.14 MUT (0.27 elapsed),
0.14 GC (0.21 elapsed) :ghc>>
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs
ync.darwinports.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc
-H16m -O -I/opt/local/include -I/usr/include -L/opt/local/lib -L/usr/lib
-istage1/utils  -istage1/basicTypes  -istage1/types  -istage1/hsSyn
-istage1/prelude  -istage1/rename  -istage1/typecheck  -istage1/deSugar
-istage1/coreSyn  -istage1/specialise  -istage1/simplCore
-istage1/stranal  -istage1/stgSyn  -istage1/simplStg  -istage1/codeGen
-istage1/main  -istage1/profiling  -istage1/parser  -istage1/cprAnalysis
-istage1/compMan  -istage1/ndpFlatten  -istage1/iface  -istage1/cmm
-istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-generics
-Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix
-ignore-package lang -recomp -Rghc-timing  -H16M '-#include "
hschooks.h"' -i../lib/compat -ignore-package Cabal    -c
basicTypes/Module.lhs-boot -o stage1/basicTypes/Module.o-boot  -ohi
stage1/basicTypes/Module.hi-boot
<<ghc: 28498768 bytes, 8 GCs, 2406274/4716080 avg/max bytes residency (2
samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.14 MUT (0.35 elapsed),
0.13 GC (0.18 elapsed) :ghc>>
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs
ync.darwinports.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc
-H16m -O -I/opt/local/include -I/usr/include -L/opt/local/lib -L/usr/lib
-istage1/utils  -istage1/basicTypes  -istage1/types  -istage1/hsSyn
-istage1/prelude  -istage1/rename  -istage1/typecheck  -istage1/deSugar
-istage1/coreSyn  -istage1/specialise  -istage1/simplCore
-istage1/stranal  -istage1/stgSyn  -istage1/simplStg  -istage1/codeGen
-istage1/main  -istage1/profiling  -istage1/parser  -istage1/cprAnalysis
-istage1/compMan  -istage1/ndpFlatten  -istage1/iface  -istage1/cmm
-istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-generics
-Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix
-ignore-package lang -recomp -Rghc-timing  -H16M '-#include "
hschooks.h"' -i../lib/compat -ignore-package Cabal    -c
utils/PrimPacked.lhs -o stage1/utils/PrimPacked.o  -ohi
stage1/utils/PrimPacked.hi

utils/PrimPacked.lhs:250:0:
    Warning: foreign declaration uses deprecated non-standard syntax 

utils/PrimPacked.lhs:254:0:
    Warning: foreign declaration uses deprecated non-standard syntax

utils/PrimPacked.lhs:257:0:
    Warning: foreign declaration uses deprecated non-standard syntax

utils/PrimPacked.lhs:260:0:
    Warning: foreign declaration uses deprecated non-standard syntax

utils/PrimPacked.lhs:263:0:
    Warning: foreign declaration uses deprecated non-standard syntax
In file included from /tmp/ghc16873.hc:5: 
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs
ync.darwinports.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-
6.4/include/HsUnix.h: In function `__hsunix_rtldNext':
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs
ync.darwinports.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-
6.4/include/HsUnix.h:103: error: `RTLD_NEXT' undeclared (first use in
this function)
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs
ync.darwinports.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-
6.4/include/HsUnix.h:103: error: (Each undeclared identifier is reported
only once
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs
ync.darwinports.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-
6.4/include/HsUnix.h:103: error: for each function it appears in.)
<<ghc: 55036388 bytes, 12 GCs, 3366910/6779028 avg/max bytes residency
(3 samples), 17M in use, 0.00 INIT (0.00 elapsed), 0.40 MUT (1.13
elapsed), 0.33 GC (0.41 elapsed) :ghc>>
make[2]: *** [stage1/utils/PrimPacked.o] Error 1
make[1]: *** [all] Error 1
make: *** [build] Error 1

Error: Status 1 encountered during processing.


-- 
Shaun Lippy
slippy at acm.org

The things that we fear are a weapon to be held against us. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/glasgow-haskell-users/attachments/20060901/e374dc6b/attachment-0001.htm


More information about the Glasgow-haskell-users mailing list