www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc 0.16 on linux for power pc

reply Carlos Santander <csantander619 gmail.com> writes:
I've tried to compile gdc 0.16 on Kubuntu 5.10 for PowerPC (while the Ubuntu CD 
arrives) with gcc 3.3.6, 3.4.3, 4.0.1, and 4.0.2, and while it compiles, 
GPhobos, doesn't. I always get:

../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot change reference to 
static array 'q'
../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot assign to static
array q
../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot change reference to 
static array 'q'
../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot assign to static
array q
make[1]: *** [internal/gc/gc.o] Error 1

Any workarounds?

-- 
Carlos Santander Bernal
Nov 19 2005
next sibling parent Carlos Santander <csantander619 gmail.com> writes:
Carlos Santander escribió:
 I've tried to compile gdc 0.16 on Kubuntu 5.10 for PowerPC (while the 
 Ubuntu CD arrives) with gcc 3.3.6, 3.4.3, 4.0.1, and 4.0.2, and while it 
 compiles, GPhobos, doesn't. I always get:
 
 .../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot change 
 reference to static array 'q'
 .../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot assign to 
 static array q
 .../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot change 
 reference to static array 'q'
 .../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot assign to 
 static array q
 make[1]: *** [internal/gc/gc.o] Error 1
 
 Any workarounds?
 

Dropped Kubuntu, tried Fedora Core 4, gcc 4.0.2: ../../../gcc-4.0.2/libphobos/gcc/deh.d:0: internal compiler error: Violación de segmento Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[1]: *** [gcc/deh.o] Error 1 make[1]: Leaving directory `/home/carlos/dev/gdc-0.16/powerpc-unknown-linux-gnu/libphobos' make: *** [all-target-libphobos] Error 2 (Violación de segmento = Segment violation) -- Carlos Santander Bernal
Nov 25 2005
prev sibling parent reply clayasaurus <clayasaurus gmail.com> writes:
You don't want to use the linux version of DMD?

Carlos Santander wrote:
 I've tried to compile gdc 0.16 on Kubuntu 5.10 for PowerPC (while the 
 Ubuntu CD arrives) with gcc 3.3.6, 3.4.3, 4.0.1, and 4.0.2, and while it 
 compiles, GPhobos, doesn't. I always get:
 
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot assign to 
 static array q
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot assign to 
 static array q
 make[1]: *** [internal/gc/gc.o] Error 1
 
 Any workarounds?
 

Nov 25 2005
parent reply John Reimer <terminal.node gmail.com> writes:
clayasaurus wrote:
 You don't want to use the linux version of DMD?
 
 Carlos Santander wrote:
 
 I've tried to compile gdc 0.16 on Kubuntu 5.10 for PowerPC (while the 
 Ubuntu CD arrives) with gcc 3.3.6, 3.4.3, 4.0.1, and 4.0.2, and while 
 it compiles, GPhobos, doesn't. I always get:

 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot assign to 
 static array q
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot assign to 
 static array q
 make[1]: *** [internal/gc/gc.o] Error 1

 Any workarounds?


I'm sure he does... if it were available on PowerPC. ;) -JJR
Nov 25 2005
next sibling parent clayasaurus <clayasaurus gmail.com> writes:
John Reimer wrote:
 clayasaurus wrote:
 
 You don't want to use the linux version of DMD?

 Carlos Santander wrote:

 I've tried to compile gdc 0.16 on Kubuntu 5.10 for PowerPC (while the 
 Ubuntu CD arrives) with gcc 3.3.6, 3.4.3, 4.0.1, and 4.0.2, and while 
 it compiles, GPhobos, doesn't. I always get:

 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot assign to 
 static array q
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot assign to 
 static array q
 make[1]: *** [internal/gc/gc.o] Error 1

 Any workarounds?


I'm sure he does... if it were available on PowerPC. ;) -JJR

*doh*
Nov 25 2005
prev sibling parent reply Carlos Santander <csantander619 gmail.com> writes:
John Reimer escribió:
 clayasaurus wrote:
 
 You don't want to use the linux version of DMD?

 Carlos Santander wrote:

 I've tried to compile gdc 0.16 on Kubuntu 5.10 for PowerPC (while the 
 Ubuntu CD arrives) with gcc 3.3.6, 3.4.3, 4.0.1, and 4.0.2, and while 
 it compiles, GPhobos, doesn't. I always get:

 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:264: cannot assign to 
 static array q
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot change 
 reference to static array 'q'
 ../../../gcc-3.3.6/libphobos/internal/gc/gc.d:265: cannot assign to 
 static array q
 make[1]: *** [internal/gc/gc.o] Error 1

 Any workarounds?


I'm sure he does... if it were available on PowerPC. ;) -JJR

True, but even if I was on x86, I'd also like to use gdc. -- Carlos Santander Bernal
Nov 26 2005
parent reply John Reimer <John_member pathlink.com> writes:
In article <dmb4e1$22s9$1 digitaldaemon.com>, Carlos Santander says...

 I'm sure he does... if it were available on PowerPC. ;)
 
 -JJR

True, but even if I was on x86, I'd also like to use gdc. -- Carlos Santander Bernal

Interesting... why? I'm curious to hear your reasons (probably good ones). -JJR
Nov 27 2005
parent Carlos Santander <csantander619 gmail.com> writes:
John Reimer escribió:
 In article <dmb4e1$22s9$1 digitaldaemon.com>, Carlos Santander says...
 
 
I'm sure he does... if it were available on PowerPC. ;)

-JJR

True, but even if I was on x86, I'd also like to use gdc. -- Carlos Santander Bernal

Interesting... why? I'm curious to hear your reasons (probably good ones). -JJR

Because I like to try different things (for my thesis I used 2 hardware platforms, 3 operating systems, 2 D compilers and 5+ C compilers), but also because I feel like if I try both DMD and GDC I'm helping more the D community, so it'd be my small contribution. -- Carlos Santander Bernal
Nov 27 2005