new ghc under solaris

Christian Maeder maeder at tzi.de
Fri Feb 25 05:09:18 EST 2005


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

maeder at leo -> 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

maeder at leo -> ld --version
GNU ld version 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.




More information about the Glasgow-haskell-users mailing list