Re: new ghc under solaris

2005-03-01 Thread Volker Stolz
* Christian Maeder <[EMAIL PROTECTED]>:
> 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

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


RE: new ghc under solaris

2005-02-25 Thread Simon Marlow
On 25 February 2005 10:09, Christian Maeder wrote:

> 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).

This looks like a mangler or a splitter problem (those manky Perl
scripts we use to postprocess assembly code).  Probably gcc 3.4.3 is
generating something we don't recognise.

Could you try the following:

  - Add SplitObjs=NO to build.mk, recompile the libraries (make clean
&& make) and try to compile a simple program with the stage1 ghc.
If that works, then it's a splitter problem.

  - If you get link errors, then
 
 $ cd libraries/base
 $ rm -f GHC/Base.o
 $ make GHC/Base.o EXTRA_HC_OPTS='-keep-s-file -keep-raw-s-file'
  
   and send me the contents of GHC/Base.s and GHC/Base.raw_s.

Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: new ghc under solaris

2005-02-25 Thread Christian Maeder
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


RE: new ghc under solaris

2005-02-24 Thread Simon Marlow
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
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users