Skip to contentSkip to conversation

New: compile failure, gcc 3.2.3, gentoo SPARC, Sun Ultra 5

Bugme-new Brian Bartholomew 2 participants 2 messages Mar 2, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines

My guess is that you have:

gcc-3.2.3-r2
egcs64-1.1.2_whatever

and think that because gcc --version says 3.2.3 you're ok. That's no good on sparc64. You need to update your 64-bit compiler to 3.2 or higher to build 2.6. So emerge -C egcs64; emerge gcc-sparc64.

I have updated the compilers and am now compiling unmodified kernel source. If that works, which I fully expect it to, I'll describe the mistake and the fix in the ticket, and mark it closed. Thanks!

Brian

#1 lore raw

gcc -v
Reading specs from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/specs
Configured with:
/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/configure
--prefix=/usr
--bindir=/usr/sparc-unknown-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/sparc-unknown-linux-gnu/3.2 --mandir=/usr/share/gcc-data/sparc-unknown-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/sparc-unknown-linux-gnu/3.2/info --enable-shared --host=sparc-unknown-linux-gnu --target=sparc-unknown-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc
--enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio
--enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared
--enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2,
propolice)

sparc64-linux-gcc -v
Reading specs from /usr/lib/gcc-lib/sparc64-unknown-linux-gnu/3.2.3/specs Configured with:
/var/tmp/portage/gcc-sparc64-3.2.3/work/gcc-sparc64-3.2.3/configure --prefix=/usr --disable-shared --disable-multilib --target=sparc64-unknown-linux-gnu
--enable-languages=c --enable-threads=single --host=sparc-unknown-linux-gnu
Thread model: single
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 @PV@)

ld -v
GNU ld version 2.14.90.0.7 20031029

as -v
GNU assembler version 2.14.90.0.7
(sparc-unknown-linux-gnu) using BFD version
2.14.90.0.7 20031029

and I can compile every vanilla kernel and run them without a problem.

Quoted 12 lines · --- Brian Bartholomew
Quoted 6 lines

My guess is that you have:

gcc-3.2.3-r2
egcs64-1.1.2_whatever

and think that because gcc --version says 3.2.3

you're ok. That's no

Quoted 1 line

good on sparc64. You need to update your 64-bit

compiler to 3.2 or

Quoted 1 line

higher to build 2.6. So emerge -C egcs64; emerge

gcc-sparc64.

Quoted 8 lines

I have updated the compilers and am now compiling unmodified kernel
source. If that works, which I fully expect it to, I'll describe the
mistake and the fix in the ticket, and mark it closed. Thanks!

Brian

=="Stay out of the road, if you want to grow old." - Pink Floyd