Opened 20 years ago
Closed 20 years ago
#3051 closed defect (fixed)
BUG: ghc-6.4 doesn't build under 10.3.9
Reported by: | mail@… | Owned by: | gwright@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
---> Configuring ghc ---> Building ghc with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dpo rts/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupd ate_dports_lang_ghc/work/ghc-6.4" && gmake all" returned error 2 Command output: /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sou rces_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ ghc -H16m -O -I/opt/local/include -L/usr/lib -L/opt/local/lib -istage1/utils - istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/r ename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/speciali se -istage1/simplCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -i stage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cpr Analysis -istage1/compMan -istage1/ndpFlatten -istage1/iface -istage1/cmm - istage1/nativeGen -istage1/ghci -Istage1 -DGHCI -package template-haskell -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -pa ckage unix -package Cabal -recomp -Rghc-timing -H16M '-#include "hschooks.h"' - i../lib/compat -c basicTypes/OccName.lhs-boot -o stage1/basicTypes/OccName.o- boot -ohi stage1/basicTypes/OccName.hi-boot <<ghc: 28785988 bytes, 8 GCs, 2453634/4809432 avg/max bytes residency (2 samples ), 18M in use, 0.04 INIT (0.02 elapsed), 0.18 MUT (0.29 elapsed), 0.20 GC (0.20 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/ opt/local/include -L/usr/lib -L/opt/local/lib -istage1/utils -istage1/basicTyp es -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/ typecheck -istage1/deSugar -istage1/coreSyn -istage1/specialise -istage1/sim plCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cprAnalysis -istag e1/compMan -istage1/ndpFlatten -istage1/iface -istage1/cmm -istage1/nativeGe n -istage1/ghci -Istage1 -DGHCI -package template-haskell -cpp -fglasgow-exts - fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix -pack age Cabal -recomp -Rghc-timing -H16M '-#include "hschooks.h"' -i../lib/compat
-c basicTypes/Module.lhs-boot -o stage1/basicTypes/Module.o-boot -ohi stage1/
basicTypes/Module.hi-boot <<ghc: 28784596 bytes, 8 GCs, 2453592/4809432 avg/max bytes residency (2 samples ), 18M in use, 0.03 INIT (0.02 elapsed), 0.19 MUT (0.28 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/ opt/local/include -L/usr/lib -L/opt/local/lib -istage1/utils -istage1/basicTyp es -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/ typecheck -istage1/deSugar -istage1/coreSyn -istage1/specialise -istage1/sim plCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cprAnalysis -istag e1/compMan -istage1/ndpFlatten -istage1/iface -istage1/cmm -istage1/nativeGe n -istage1/ghci -Istage1 -DGHCI -package template-haskell -cpp -fglasgow-exts - fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix -pack age Cabal -recomp -Rghc-timing -H16M '-#include "hschooks.h"' -i../lib/compat
-c utils/PrimPacked.lhs -o stage1/utils/PrimPacked.o -ohi stage1/utils/PrimPa
cked.hi
utils/PrimPacked.lhs:244:0:
Warning: foreign declaration uses deprecated non-standard syntax
utils/PrimPacked.lhs:248:0:
Warning: foreign declaration uses deprecated non-standard syntax
utils/PrimPacked.lhs:251: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
In file included from /tmp/ghc8466.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: 55915328 bytes, 12 GCs, 2381342/4786880 avg/max bytes residency (3 sample s), 18M in use, 0.02 INIT (0.02 elapsed), 0.55 MUT (0.90 elapsed), 0.38 GC (0.41
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/ghc' gmake: * [build] Error 1
Change History (5)
comment:1 Changed 20 years ago by jmpp@…
Owner: | changed from darwinports-bugs@… to gwright@… |
---|
comment:2 Changed 20 years ago by gwright@…
Status: | new → assigned |
---|
Could you check that you have the file /usr/include/dlfcn.h? If you have it, send a copy to me at gwright@…. Thanks.
/gw
comment:3 Changed 20 years ago by snu@…
Summary: | ghc6.4 doesn't build under 10.3.9 → BUG: ghc-6.4 doesn't build under 10.3.9 |
---|
Or you could attach it to this bug.
comment:4 Changed 20 years ago by gwright@…
It looks like there is something wrong with whatever version of dlcompat you have installed in /usr/local. Try uninstalling it and rebuilding ghc. It seems as if /usr/local/include is being searched before /usr/include and you are getting the odd version of dlcompat.
I am testing a version of the portfile that forces searching of /usr/include followed by ${prefix}/include, where ${prefix} is the darwinports installation prefix.
/gw
comment:5 Changed 20 years ago by mail@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Yeah, you were right. The wrong version of dlcompat apparently got installed with ffmpegX. I installed dlcompat via darwinports, restored dlfcn.h in /usr/include and made a symlink from /usr/ local/include to /opt/local/include (where the darwinports version got installed). After that, ghc built without trouble.
Thanks for your time!
Assigning bug to maintainer of port.
-jmpp