Linker error when building GHC HEAD on Mac OS

Simon Marlow simonmarhaskell at gmail.com
Fri Mar 2 08:32:19 EST 2007


Stefan Holdermans wrote:
> I'm trying to build GHC HEAD on Mac OS 10.4.8 (PowerPC), but end up with 
> a linker error:
> 
>   ../compiler/stage1/ghc-inplace -o stage2/ghc-6.7.20070228 -H16m -O 
> -package ghc -Istage2 -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. 
> -IcodeGen -InativeGen -Iparser -Rghc-timing  -DGHCI -DDEBUGGER -threaded 
> -fforce-recomp        stage2/main/Main.o
>   /usr/bin/ld: warning multiple definitions of symbol _UP
>   
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib(terminal.so) 
> definition of _UP
>   
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib(lib_termcap.o) 
> definition of _UP
>   /usr/bin/ld: warning multiple definitions of symbol _BC
>   
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib(terminal.so) 
> definition of _BC
>   
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib(lib_termcap.o) 
> definition of _BC
>   /usr/bin/ld: warning multiple definitions of symbol _PC
>   
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib(terminal.so) 
> definition of _PC
>   
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib(lib_tputs.o) 
> definition of _PC
>   /usr/bin/ld: Undefined symbols:
>   _stg_interp_constr1_entry
>   _stg_interp_constr2_entry
>   _stg_interp_constr3_entry
>   _stg_interp_constr4_entry
>   _stg_interp_constr5_entry
>   _stg_interp_constr6_entry
>   _stg_interp_constr7_entry
>   _stg_interp_constr8_entry
>   collect2: ld returned 1 exit status
>   <<ghc: 19070104 bytes, 4 GCs, 120108/120108 avg/max bytes residency (1 
> samples), 16M in use, 0.01 INIT (0.00 elapsed), 0.10 MUT (4.20 elapsed), 
> 0.05 GC (0.08 elapsed) :ghc>>
>   make[3]: *** [stage2/ghc-6.7.20070228] Error 1
>   make[2]: *** [stage2/ghc-6.7.20070228] Error 2
>   make[1]: *** [stage2] Error 2
>   make: *** [bootstrap2] Error 2

This was a temporary build bug yesterday that is now fixed, sorry for the 
inconvenience.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list