[MacPorts] #14955: BUG: ghc fails to build when libelf is installed
#14955: BUG: ghc fails to build when libelf is installed ----------------------------------------+----------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | ----------------------------------------+----------------------------------- ghc fails to build when libelf is installed (see the error below).[[BR]] The problem stems from the fact that the ghc configure script incorrectly [[BR]] tries to include ${prefix}/include/nlist.h and link in libelf.a.[[BR]] 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[[BR]] (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 }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14955> MacPorts </projects/macports> Ports system for Mac OS
#14955: BUG: ghc fails to build when libelf is installed -----------------------------------------+---------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: -----------------------------------------+---------------------------------- Comment (by jstrine@vexate.net): 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. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14955#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14955: BUG: ghc fails to build when libelf is installed -----------------------------------------+---------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: gwright@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: -----------------------------------------+---------------------------------- Changes (by rhwood@macports.org): * owner: macports-tickets@lists.macosforge.org => gwright@macports.org Comment: libelf patches applied in r35878 -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14955#comment:2> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts