Re: Linker error when building GHC HEAD on Mac OS
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-recompstage2/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> 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 ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Linker error when building GHC HEAD on Mac OS
It looks like you're running into the problem of apple's readline not actually being readline at all (it's a link to some other library that is almost, but not quite, readline). See http://cvs.haskell.org/trac/ghc/wiki/Building/MacOSX for instructions on how to install readline and how to tell ghc where it is. I've successfully built HEAD (Feb 25) on ppc OS 10.4.8, so I know it will work. But I also remember it took me a half dozen tries to get it to build the first time (mostly related to this readline business!) -david k. On 2/28/07, Stefan Holdermans <[EMAIL PROTECTED]> 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-recompstage2/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 <> 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 Anyone any pointers? Cheers, Stefan ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Linker error when building GHC HEAD on Mac OS
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-recompstage2/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> 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 Anyone any pointers? Cheers, Stefan ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users