[Debian-ppc64-devel] ppc64 pseries 2.6.11-2 .deb kernel available.

Roberto Suarez Soto robe@allenta.com
Mon, 6 Jun 2005 13:41:56 +0200


On Jun/04, Sven Luther wrote:

> The archive is meant to be added to your apt sources, and will install fine on
> top of sarge, the only contraint being that you need to use gcc-3.4, and gcc
> will still be pointing to gcc-3.3, so you need to make the change by hand
> yourself.

	I've tried to use that toolchain to build a simple package ("hello").
But it seems something is missing, or (more probably) it's me who's missing
something :-) Here's what happens:

talat:/mnt/build/apt-build/build/hello-2.1.1/src# make
/usr/bin/gcc-3.4  -mpowerpc64 -O2 -m64   -o hello  hello.o version.o getopt.o getopt1.o
/usr/bin/ld: cannot find -lgcc_s_64
collect2: ld returned 1 exit status
make: *** [hello] Error 1

talat:/mnt/build/apt-build/build/hello-2.1.1/src# find /usr/lib/ -iname "*gcc*64*"
/usr/lib/gcc/powerpc-linux/3.4.4/64/libgcc_s_64.so
/usr/lib/gcc/powerpc-linux/3.4.4/libgcc_s_64.so

	It seems that ld doesn't find those libraries, though they are there.
Maybe I need a different binutils package? Am I just not doing something
obvious?

	For the record, the object files compiled Ok, or at least they are
64bit executables:

talat:/mnt/build/apt-build/build/hello-2.1.1/src# file *.o
getopt.o:  ELF 64-bit MSB relocatable, cisco 7500, version 1 (SYSV), not stripped
getopt1.o: ELF 64-bit MSB relocatable, cisco 7500, version 1 (SYSV), not stripped
hello.o:   ELF 64-bit MSB relocatable, cisco 7500, version 1 (SYSV), not stripped
version.o: ELF 64-bit MSB relocatable, cisco 7500, version 1 (SYSV), not stripped

-- 
	Roberto Suarez Soto				Allenta Consulting
	robe@allenta.com				   www.allenta.com