ghc6.6 on ps3 - compile error in StgCRun

2007-04-20 Thread Tristan Allwood
Hi,

I'm trying to build ghc-6.6 on a sony ps3, but have hit a problem:


== make all -r;
 in /home/tora/ghc/ghc-6.6/rts

../compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes 
-optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline 
-optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. 
-optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-DNOSMP 
-optc-fno-strict-aliasing -H16m -O -optc-O2 -optc-DNOSMP -static -I. -#include 
HCIncludes.h -fvia-C -dcmm-lint -c StgCRun.c -o StgCRun.o
/tmp/ghc12557_0/ghc12557_0.s: Assembler messages:

/tmp/ghc12557_0/ghc12557_0.s:12:0:
 Error: junk at end of line, first unrecognized character is `@'

/tmp/ghc12557_0/ghc12557_0.s:16:0:
 Error: junk at end of line, first unrecognized character is `@'
make[1]: *** [StgCRun.o] Error 1
make: *** [stage1] Error 1


The ps3 is running YDL, and to bootstrap the ghc build I managed to install a
powerpc ghc6.6 on the system (downloaded a deb from
http://packages.debian.org/cgi-bin/download.pl?arch=powerpc&file=pool%2Fmain%2Fg%2Fghc6%2Fghc6_6.6-3_powerpc.deb&md5sum=f8f23c269deeb0e6a513f8b5bb94801d&arch=powerpc&type=main
then alien'ed it to get an rpm which seems to work - though ghci is
non-functioning)

The sources I'm trying to build are the standard ghc
http://www.haskell.org/ghc/dist/6.6/ghc-6.6-src.tar.bz2 (and extralibs)

>uname -a
Linux ebony 2.6.16-20061110.ydl.2ps3 #1 SMP Tue Dec 5 12:35:42 EST 2006 ppc64 
ppc64 ppc64 GNU/Linux


Any tips / pointers / advice greatfully recieved;

TIA,

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


Re: ghc6.6 on ps3 - compile error in StgCRun

2007-04-20 Thread Tristan Allwood
Hi,

Some more information that may be useful:
(ghc -v compilation and gcc -v)

Cheers,

Tristan Allwood

17:54:26 - [EMAIL PROTECTED]:~/ghc/ghc-6.6/rts
>../compiler/ghc-inplace -v -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes 
>-optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline 
>-optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. 
>-optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-DNOSMP 
>-optc-fno-strict-aliasing -H16m -O -optc-O2 -optc-DNOSMP -static -I. -#include 
>HCIncludes.h -fvia-C -dcmm-lint -c StgCRun.c -o StgCRun.o
Glasgow Haskell Compiler, Version 6.6, for Haskell 98, compiled by GHC version 
6.6
Using package config file: /home/tora/ghc/ghc-6.6/driver/package.conf.inplace
wired-in package base not found.
wired-in package rts mapped to rts-1.0
wired-in package haskell98 not found.
wired-in package template-haskell not found.
Hsc static flags: -static -static
Created temporary directory: /tmp/ghc14351_0
*** C Compiler:
gcc -x c StgCRun.c -o /tmp/ghc14351_0/ghc14351_0.s -v -S -Wimplicit -O 
-D__GLASGOW_HASKELL__=606 -O -Wall -W -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Winline -Waggregate-return -Wbad-function-cast 
-I../includes -I. -Iparallel -DCOMPILING_RTS -fomit-frame-pointer -DNOSMP 
-fno-strict-aliasing -O2 -DNOSMP -I . -I /home/tora/ghc/ghc-6.6/includes
Using built-in specs.
Target: ppc64-yellowdog-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-libgcj-multifile 
--enable-languages=c,c++,objc,obj-c++,java,fortran --enable-java-awt=gtk 
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
--enable-secureplt --with-long-double-128 --host=ppc64-yellowdog-linux 
--build=ppc64-yellowdog-linux --target=ppc64-yellowdog-linux 
--with-cpu=default32
Thread model: posix
gcc version 4.1.1 20060525 (Yellow Dog 4.1.1-1)
 /usr/libexec/gcc/ppc64-yellowdog-linux/4.1.1/cc1 -quiet -v -I../includes -I. 
-Iparallel -I . -I /home/tora/ghc/ghc-6.6/includes -D__unix__ -D__gnu_linux__ 
-D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix 
-Asystem=posix -D__GLASGOW_HASKELL__=606 -DCOMPILING_RTS -DNOSMP -DNOSMP 
StgCRun.c -msecure-plt -quiet -dumpbase StgCRun.c -auxbase-strip 
/tmp/ghc14351_0/ghc14351_0.s -O -O -O2 -Wimplicit -Wall -W -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -Winline -Waggregate-return 
-Wbad-function-cast -version -fomit-frame-pointer -fno-strict-aliasing -o 
/tmp/ghc14351_0/ghc14351_0.s
ignoring nonexistent directory 
"/usr/lib/gcc/ppc64-yellowdog-linux/4.1.1/../../../../ppc64-yellowdog-linux/include"
ignoring duplicate directory "."
ignoring duplicate directory "/home/tora/ghc/ghc-6.6/includes"
#include "..." search starts here:
#include <...> search starts here:
 ../includes
 .
 parallel
 /usr/local/include
 /usr/lib/gcc/ppc64-yellowdog-linux/4.1.1/include
 /usr/include
End of search list.
GNU C version 4.1.1 20060525 (Yellow Dog 4.1.1-1) (ppc64-yellowdog-linux)
compiled by GNU C version 4.1.1 20060525 (Yellow Dog 4.1.1-1).
GGC heuristics: --param ggc-min-expand=43 --param ggc-min-heapsize=25193
Compiler executable checksum: bc16e0fa6c53100b191b9cb78b3c673d
*** Assembler:
gcc -I. -c /tmp/ghc14351_0/ghc14351_0.s -o StgCRun.o
/tmp/ghc14351_0/ghc14351_0.s: Assembler messages:

/tmp/ghc14351_0/ghc14351_0.s:12:0:
 Error: junk at end of line, first unrecognized character is `@'

/tmp/ghc14351_0/ghc14351_0.s:16:0:
 Error: junk at end of line, first unrecognized character is `@'
*** Deleting temp files:
Deleting: /tmp/ghc14351_0/ghc14351_0.s
*** Deleting temp dirs:
Deleting: /tmp/ghc14351_0



17:54:59 - [EMAIL PROTECTED]:~/ghc/ghc-6.6/rts
>gcc -v
Using built-in specs.
Target: ppc64-yellowdog-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-libgcj-multifile 
--enable-languages=c,c++,objc,obj-c++,java,fortran --enable-java-awt=gtk 
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
--enable-secureplt --with-long-double-128 --host=ppc64-yellowdog-linux 
--build=ppc64-yellowdog-linux --target=ppc64-yellowdog-linux 
--with-cpu=default32
Thread model: posix
gcc version 4.1.1 20060525 (Yellow Dog 4.1.1-1)
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ghc6.6 on ps3 - compile error in StgCRun

2007-04-21 Thread Tristan Allwood
Hi,

Turned out that the configure script was detecting the system as
powerpc64-unknown-linux, but my assembler etc. didn't like the ppc64
assembler thrown out by StgCRun; rebuilding, forcing the configure to
think the ps3 was "just" a powerpc- worked fine.  8 hours later and I
now have a shiny new, all extralib (-opengl) ghc 6.6 all working :)

Sorry for the spam;

Cheers,

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


RE: ghc6.6 on ps3 - compile error in StgCRun

2007-04-23 Thread Simon Peyton-Jones
Tris

Would you care to add some platform-specific notes to
http://hackage.haskell.org/trac/ghc/wiki/Building
?

There is a section for such notes, and they allow you to help other people 
falling into the same hole that you did.

THanks

Simon


| -Original Message-
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
| Behalf Of Tristan Allwood
| Sent: 21 April 2007 11:14
| To: glasgow-haskell-users@haskell.org
| Subject: Re: ghc6.6 on ps3 - compile error in StgCRun
|
| Hi,
|
| Turned out that the configure script was detecting the system as
| powerpc64-unknown-linux, but my assembler etc. didn't like the ppc64
| assembler thrown out by StgCRun; rebuilding, forcing the configure to
| think the ps3 was "just" a powerpc- worked fine.  8 hours later and I
| now have a shiny new, all extralib (-opengl) ghc 6.6 all working :)
|
| Sorry for the spam;
|
| Cheers,
|
| Tris
| ___
| 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


Re: ghc6.6 on ps3 - compile error in StgCRun

2007-06-23 Thread Sven Panne
[ Sorry for the late reply, but I'm just digging through 2-3 months of 
emails... ]

On Saturday 21 April 2007 12:13, Tristan Allwood wrote:
> [...] I now have a shiny new, all extralib (-opengl) ghc 6.6 all working :)

Is there no OpenGL support on the PS3 platform you are compiling on or is it 
just the configure magic failing to detect it? In the latter case I would be 
interested in getting it working.

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


Re: ghc6.6 on ps3 - compile error in StgCRun

2007-06-24 Thread Tristan Allwood
On Sat, Jun 23, 2007 at 05:41:11PM +0200, Sven Panne wrote:
> [ Sorry for the late reply, but I'm just digging through 2-3 months of
> emails... ]
> 
> On Saturday 21 April 2007 12:13, Tristan Allwood wrote:
> > [...] I now have a shiny new, all extralib (-opengl) ghc 6.6 all
> > working :)
> 
> Is there no OpenGL support on the PS3 platform you are compiling on or
> is it just the configure magic failing to detect it? In the latter
> case I would be interested in getting it working.
There's no hardware OpenGL support on the PS3 (Sony deliberately deny
you access to it),  so I probably hadn't installed the gl headers and
hence configure didn't find them.  I assume you could get software gl
working as normal, but the performance would be so poor as to render (
pun intended) it almost pointless.

As an aside, are there any thoughts / plans / projects people know of to
make the ghc backend spit out cell spe/spu code?

Regards,

Tris


-- 
+--- Tristan  Allwood ---+
| www.torasconsole.co.uk |
|   www.zonetora.co.uk   |
++
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users