Simon Marlow wrote:
What version of gcc are you using?

I used gcc_2.95.3 until I discovered the warning:

 LdvProfile.c:43: #error Please use gcc 3.0+ to compile this file with
 DEBUG; gcc < 3.0 miscompiles it

I've switched to gcc_3.4.3. Now the final linking of the stage2 compiler fails (with thousands of undefined symbols).

 ../../ghc/compiler/stage1/ghc-inplace -o stage2/ghc-6.5 -H16m -O
 [...]
 DriverState_WayThreaded_closure     stage2/main/DriverFlags.o
 ld: fatal: Symbol referencing errors. No output written to
 stage2/ghc-6.5
 collect2: ld returned 1 exit status

As a linker (that ./configure finds) I use gnu-ld_2.14, but gcc_3.4.3 uses the solaris linker (see below).

Cheers Christian

[EMAIL PROTECTED] -> gcc -v
Reading specs from /export/software/mirror/sparc-solaris/lang/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr/local/lang -program-suffix=_3.4.3 --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-version-specific-runtime-libs --enable-languages=c,c++,f77 --enable-shared=libstdc++ --disable-nls
Thread model: posix
gcc version 3.4.3


[EMAIL PROTECTED] -> ld --version
GNU ld version 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.


_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to