[klibc] klibc 0.57 trouble
Arnd Bergmann
arnd@bergmann-dalldorf.de
Sun, 25 Aug 2002 19:33:14 +0200
On Sunday 25 August 2002 04:27, you wrote:
> Arnd Bergmann wrote:
> > I just tried compiling the latest release, but found some new problems:
>
> Which platform is this on?
>
> > - Some versions of binutils could not link any shared binaries.
> > One example for a broken version is 2.11.92.0.12.3, while
> > 2.13.90.0.4 works. The error message looks like:
> > tests/nfs_no_rpc.o: In function `root_nfs_parse':
> > tests/nfs_no_rpc.o(.text+0x8): undefined reference to `strchr'
> > tests/nfs_no_rpc.o(.text+0x10): undefined reference to `strtok'
> > tests/nfs_no_rpc.o(.text+0x18): undefined reference to `strcmp'
> > tests/nfs_no_rpc.o(.text+0x1c): undefined reference to `strtoul'
> > tests/nfs_no_rpc.o(.text+0x2c): undefined reference to `strncpy'
This was for both i386 (native) and s390 (cross), I saw it working
correctly on i386 with the newer version, but don't think it is platform
dependant.
> > $ ./tests/minihello.shared
> > bash: tests/minihello.shared: No such file or directory
>
> You need to get the klibc-<md5>.so file symlinked into /lib.
Thanks
> > there are also lots of compiler warnings:
> > - gcc 3.2 (i386) doesn't like the '-malign-functions=0 -malign-jumps=0
> > -malign-loops=0', it wants the '-falign...' versions instead, which
> > don't work with gcc 2.95 :(
>
> Compiler braindamage. Nothing I can do about it :(
For gcc-3.0 and 3.2 (unlike 2.95), I get smaller binaries with just
'-mcpu=i386' than with '-mcpu=i686 -malign-functions=0 -malign-jumps=0
-malign-loops=0', so you could just use the former without losing anything
(I suppose, most klibc users will actually have distros based on gcc-3.x).
Arnd <><