problems building under os x 10.3.9
Robby Findler
robby at cs.uchicago.edu
Sun Oct 9 09:44:19 EDT 2005
Hi all,
I'm having trouble building ghc under mac os x 10.3.9. I've gotten
darwin ports installed and it seems to have build all of ghc's
dependencies okay, but when building ghc itself, I get this message:
In file included from /tmp/ghc25897.hc:5:
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.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/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.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)
(the full transcript is below).
I think that this is also listed as a bug on the opendarwin site, but I
couldn't find any fixes there:
http://www.opendarwin.org/pipermail/darwinports-bugs/2005-May/010649.html
Am I missing something silly?
Thanks,
Robby
% sudo port install ghc
---> Fetching gmake
---> Attempting to fetch make-3.80.tar.gz from ftp://ftp.gnu.org/gnu/make
---> Verifying checksum(s) for gmake
---> Extracting gmake
---> Configuring gmake
---> Building gmake with target all
---> Staging gmake into destroot
---> Packaging tgz archive for gmake 3.80_1
---> Installing gmake 3.80_1
---> Activating gmake 3.80_1
---> Cleaning gmake
---> Fetching gmp
---> Attempting to fetch gmp-4.1.4.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
---> Packaging tgz archive for gmp 4.1.4_2+test
---> Installing gmp 4.1.4_2+test
---> Activating gmp 4.1.4_2+test
---> Cleaning gmp
---> Fetching perl5.8
---> Attempting to fetch perl-5.8.7.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
---> Packaging tgz archive for perl5.8 5.8.7_0
---> Installing perl5.8 5.8.7_0
---> Activating perl5.8 5.8.7_0
---> Cleaning perl5.8
---> Fetching readline
---> Attempting to fetch readline50-001 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---> Attempting to fetch readline50-002 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---> Attempting to fetch readline50-003 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---> Attempting to fetch readline50-004 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---> Attempting to fetch readline50-005 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---> Attempting to fetch readline-5.0.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
---> Packaging tgz archive for readline 5.0.005_0
---> Installing readline 5.0.005_0
---> Activating readline 5.0.005_0
---> Cleaning readline
---> Fetching ghc
---> Attempting to fetch ghc-6.4.1-src.tar.bz2 from http://www.haskell.org/ghc//dist/6.4.1/
---> 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-v01.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 gmake all" returned error 2
Command output: /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc -H16m -O -I/usr/include -I/opt/local/include -L/usr/lib -L/opt/local/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/OccNam
e.hi-boot
<<ghc: 28651560 bytes, 8 GCs, 2408670/4720920 avg/max bytes residency (2 samples), 18M in use, 0.02 INIT (0.02 elapsed), 0.16 MUT (0.33 elapsed), 0.18 GC (0.21 elapsed) :ghc>>
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc -H16m -O -I/usr/include -I/opt/local/include -L/usr/lib -L/opt/local/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: 28651068 bytes, 8 GCs, 2408742/4720920 avg/max bytes residency (2 samples), 18M in use, 0.03 INIT (0.02 elapsed), 0.23 MUT (0.31 elapsed), 0.16 GC (0.21 elapsed) :ghc>>
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc -H16m -O -I/usr/include -I/opt/local/include -L/usr/lib -L/opt/local/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/ghc25897.hc:5:
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.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/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.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/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.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/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-6.4/include/HsUnix.h:103: error: for each function it appears in.)
<<ghc: 55189224 bytes, 12 GCs, 3370890/6784664 avg/max bytes residency (3 samples), 17M in use, 0.02 INIT (0.02 elapsed), 0.48 MUT (0.90 elapsed), 0.39 GC (0.47 elapsed) :ghc>>
gmake[2]: *** [stage1/utils/PrimPacked.o] Error 1
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-6.4.1/ghc'
gmake: *** [build] Error 1
More information about the Glasgow-haskell-users
mailing list