
On 24 February 2005 11:35, Christian Maeder wrote:
I've made progress with ghc HEAD under solaris 8. In fact I could successfully install a ghc-6.5 compiler that was able to compile a couple of files (including "Hello World")
But on one file (by chance HughesPJ.hs with an unqualified module name) I got a "Bus Error" (see below) I'll try now if "gmake bootstrap3" fails, too.
During "gmake" also the _FILE_OFFSET_BITS warning was not entirely gone:
In file included from ../includes/ghcconfig.h:4, from ../includes/Stg.h:42, from ../includes/Rts.h:19, from RetainerSet.c:14: ../includes/ghcautoconf.h:364: warning: `_FILE_OFFSET_BITS' redefined /usr/include/sys/feature_tests.h:96: warning: this is the location of the previous definition.
(There were numerous other warnings, too many to post here.)
I don't think the _FILE_OFFSET_BITS warnings have anything to do with the bus error, but if you send me the whole log I'll look into eliminating them. What version of gcc are you using? Cheers, Simon

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@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@leo -> ld --version GNU ld version 2.14 20030612 Copyright 2002 Free Software Foundation, Inc.

* Christian Maeder
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
This usually happens if you use build.mk.sample. Simply remove the -DDEBUG from the options (unless of course you really want a debugging RTS which you usually don't). Volker -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
participants (3)
-
Christian Maeder
-
Simon Marlow
-
Volker Stolz