#14955 closed defect (fixed)
BUG: ghc fails to build when libelf is installed
Reported by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | Owned by: | gwright@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | gwright@…, jstrine@… | |
Port: |
Description
ghc fails to build when libelf is installed (see the error below).
The problem stems from the fact that the ghc configure script incorrectly
tries to include ${prefix}/include/nlist.h and link in libelf.a.
ghc should include /usr/include/nlist.h and not use libelf.a at all.
Attached are proposed changes to both ghc and libelf to fix the problem.
The change to libelf does not seem to affect bug-buddy or dynamips
(the only ports I could find which depend on libelf).
../compiler/ghc-inplace -H16m -O -I/opt/local/include -L/opt/local/lib -optc-O2 -package-name rts -static -I/opt/local/include -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c Updates.cmm -o Updates.p_o /tmp/ghc63507_0/ghc63507_0.s:unknown:Undefined local symbol LDV_recordDead_FILL_SLOP_DYNAMIC make[2]: *** [Updates.p_o] Error 1 make[1]: *** [all] Error 1 make: *** [stage1] Error 1
Attachments (3)
Change History (8)
Changed 17 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Attachment: | ghc-Portfile.diff added |
---|
Changed 17 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Attachment: | libelf-Portfile.diff added |
---|
comment:1 Changed 17 years ago by jstrine@…
Changed 17 years ago by jstrine@…
Attachment: | libelf-Portfile.2.diff added |
---|
Patch for libelf Portfile - revision 1
comment:2 Changed 17 years ago by rhwood@…
Owner: | changed from macports-tickets@… to gwright@… |
---|
libelf patches applied in r35878
comment:3 Changed 16 years ago by gwright@…
Status: | new → assigned |
---|
comment:4 Changed 16 years ago by gwright@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Applied to ghc as part of updating to version 6.10.1.
Note: See
TracTickets for help on using
tickets.
Tested libelf patch and see no problems with the proposed solution. I have attached an updated diff file which also increments the revision counter. This diff file supersedes the one posted on 4/7.