Skip to contentSkip to conversation

any problems with gcc 3.0/3.1 and compiling 2.4.18 on ppc?

DISCUSSION Chris Friesen 3 participants 6 messages Apr 2, 2002

lore
Share & tools
lore
#0 lore raw

We're looking at moving to gcc 3.x for 2.4.18, and are trying to decide what version to use. It appears that there were some ppc-specific fixes that went in to 3.1, and I'm not sure if they were ported back to 3.0.

Has anyone had any successes or failures using either of these versions on 2.4.18 on ppc?
Any gotchas?

Thanks,

Chris

PS. Please cc me on replies, as I'm not subscribed to the list at the moment.

--

Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 7 lines · Chris Friesen

We're looking at moving to gcc 3.x for 2.4.18, and are trying to decide what version to use. It appears that there were some ppc-specific fixes that went in to 3.1, and I'm not sure if they were ported back to 3.0.

Has anyone had any successes or failures using either of these versions on 2.4.18 on ppc?
Any gotchas?

Both 3.0.4 and the upcoming 3.1 are fine for use with the current PPC 2.4 kernels. There is only one known issue with inlined functions that take and return 64-bit values, these may lead to extreme stack usage. A fix for this might go into 3.1pre CVS during the next days.
After this has been decided I'll upload gcc-3.1pre RPMS and announce them.

Franz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
In reply to Chris Friesen

Hi Chris,

I recently built the 2.4.18+patch kernel (patch details where on
http://www.penguinppc.org/) using "gcc version 2.95.3 20010319 (2.95.4 CVS + prerelease/franzo/20010912)" with out a hitch.
But my main goal is to use g++ 3.x as my default compiler to mimic GCC 3.0.2 on my solaris and linux systems I be using since November. I tried (http://www.suse.com/~aj/gcc30.html) and found that there seems to be an intermittent crash with the compiler.

I also tried building many of the snap shots. My last try was gcc-20020318.
The Intermittent crashes sometimes go a way when I retry. stage1/xgcc -Bstage1/ -B/usr/local/powerpc-unknown-linux-gnu/bin/ -c
-DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtradi ../../gcc-20020318/gcc/expmed.c: In function `expand_mult':
../../gcc-20020318/gcc/expmed.c:2574: internal error: Segmentation fault Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [expmed.o] Error 1
make[2]: Leaving directory `/root/snap_shot/config/gcc' make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/root/snap_shot/config/gcc'
make: *** [bootstrap] Error 2

I also tried downloading code sourcery's snap shots at
http://www.codesourcery.com/gcc_binary_snapshots.
The gcc-20020318 was incomplete.

Kaoru Fuki said he has "Newer binutils,glibc,gcc from cvs branch"
http://lists.linuxppc.org/linuxppc-user/200203/msg00125.html.
But his ftp seems to be down at:- ftp://sv5.linet.gr.jp/pub/PPC/

I am building on a Suse 7.3 (Mac8500 with G3 upgrade card).

I would appreciate finding other who have successfully built using GCC 3.0 on Apple Hardware. Most people seem to build it with a cross compiler.

Regards
Andrew

Quoted 21 lines · Chris Friesen

We're looking at moving to gcc 3.x for 2.4.18, and are trying to decide what
version to use. It appears that there were some ppc-specific fixes that went in
to 3.1, and I'm not sure if they were ported back to 3.0.

Has anyone had any successes or failures using either of these versions on
2.4.18 on ppc?
Any gotchas?

Thanks,

Chris

PS. Please cc me on replies, as I'm not subscribed to the list at the moment.

Quoted 7 lines

--

Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Franz Sirl

Hello Franz,

It looks like only me that has this intermittent problem with GCC 3.x. Building or using.
I have:-

	glibc-2.2.4-53
	binutils-2.11.90.0.29-14 and tried binutils-2.12

I was wondering whether I was the only one building GCC 3.x on apple hardware.

What surprises me is that the "gcc version 2.95.3 20010319 (2.95.4CVS + prerelease/franzo/20010912)"
is stable enough to build a kernel but not gcc 3.x on my system.

Any tips on finding this intermittent problem I have with every GCC 3.x on my 8500 ?

Regards
Andrew

Quoted 22 lines · Franz Sirl
Quoted 9 lines · Chris Friesen

We're looking at moving to gcc 3.x for 2.4.18, and are trying to decide what version to use. It appears that there were some ppc-specific fixes
that went in to 3.1, and I'm not sure if they were ported back to 3.0.

Has anyone had any successes or failures using either of these versions on
2.4.18 on ppc?
Any gotchas?

Both 3.0.4 and the upcoming 3.1 are fine for use with the current PPC 2.4
kernels. There is only one known issue with inlined functions that take and
return 64-bit values, these may lead to extreme stack usage. A fix for this
might go into 3.1pre CVS during the next days.
After this has been decided I'll upload gcc-3.1pre RPMS and announce them.

Quoted 4 lines

Franz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
In reply to Andrew Bradley
Quoted 18 lines · Andrew Bradley

Hi Chris,

I recently built the 2.4.18+patch kernel (patch details where on
http://www.penguinppc.org/) using "gcc version 2.95.3 20010319 (2.95.4 CVS + prerelease/franzo/20010912)" with out a hitch.
But my main goal is to use g++ 3.x as my default compiler to mimic GCC 3.0.2 on my solaris and linux systems I be using since November. I tried (http://www.suse.com/~aj/gcc30.html) and found that there seems to be an intermittent crash with the compiler.

I also tried building many of the snap shots. My last try was gcc-20020318.
The Intermittent crashes sometimes go a way when I retry. stage1/xgcc -Bstage1/ -B/usr/local/powerpc-unknown-linux-gnu/bin/ -c

(quoted diff) +0 -2
-DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtradi

../../gcc-20020318/gcc/expmed.c: In function `expand_mult':
../../gcc-20020318/gcc/expmed.c:2574: internal error: Segmentation fault

Quoted 8 lines

Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [expmed.o] Error 1
make[2]: Leaving directory `/root/snap_shot/config/gcc' make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/root/snap_shot/config/gcc'
make: *** [bootstrap] Error 2

Are you sure you don't have any HW problems here? I'm building the compiler nearly daily on 2 different machines without such problems.

Quoted 3 lines

I also tried downloading code sourcery's snap shots at
http://www.codesourcery.com/gcc_binary_snapshots.
The gcc-20020318 was incomplete.

The build machine had some troubles, should be fixed now.

Franz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#5 lore raw

Franz,

I set the switches on my G3 card to the factory processor speed and a setting lower on the factory cache speed and now the intermittent crash has disappeared.

Thanks to your voice of reason.

I shall get back to building GCC 3.x and using GCC 3.0.2 to replicate my work environment.

Regards
Andrew

Quoted 34 lines · Franz Sirl
Quoted 20 lines · Andrew Bradley

Hi Chris,

I recently built the 2.4.18+patch kernel (patch details where on
http://www.penguinppc.org/) using "gcc version 2.95.3 20010319 (2.95.4 CVS + prerelease/franzo/20010912)" with out a hitch.
But my main goal is to use g++ 3.x as my default compiler to mimic GCC 3.0.2 on my solaris and linux systems I be using since November. I tried (http://www.suse.com/~aj/gcc30.html) and found that there seems
to be an intermittent crash with the compiler.

I also tried building many of the snap shots. My last try was gcc-20020318.
The Intermittent crashes sometimes go a way when I retry. stage1/xgcc -Bstage1/ -B/usr/local/powerpc-unknown-linux-gnu/bin/ -c

(quoted diff) +0 -2
-DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtradi

../../gcc-20020318/gcc/expmed.c: In function `expand_mult':
../../gcc-20020318/gcc/expmed.c:2574: internal error: Segmentation fault

Quoted 8 lines

Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [expmed.o] Error 1
make[2]: Leaving directory `/root/snap_shot/config/gcc' make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/root/snap_shot/config/gcc'
make: *** [bootstrap] Error 2

Are you sure you don't have any HW problems here? I'm building the compiler
nearly daily on 2 different machines without such problems.

Quoted 8 lines
Quoted 3 lines

I also tried downloading code sourcery's snap shots at
http://www.codesourcery.com/gcc_binary_snapshots.
The gcc-20020318 was incomplete.

The build machine had some troubles, should be fixed now.

Franz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/