[MacPorts] #14955: BUG: ghc fails to build when libelf is installed

MacPorts trac at macosforge.org
Mon Apr 7 19:03:01 PDT 2008


#14955: BUG: ghc fails to build when libelf is installed
----------------------------------------+-----------------------------------
 Reporter:  marcuscalhounlopez at mac.com  |       Owner:  macports-tickets at 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


More information about the macports-tickets mailing list