Hello,
I've been trying to update my code to work with the latest L4Re sources,
along with some older L4Re code that still resides in Subversion, but I
seem to be encountering this error:
mipsel-linux-gnu-ld: cannot find -lgcc_s: No such file or directory
From what I can see, l4-bender is run to generate the appropriate
invocation, but despite being supplied with numerous definitions...
LD_PRELOAD=libgendep.so
LD_LIBRARY_PATH=/home/paulb/Software/L4Re/LX20/l4/mybuild/tool/gendep/64::/home/paulb/Software/L4Re/LX20/l4/mybuild/tool/gendep
GENDEP_TARGET=libsystypes.so GENDEP_BINARY=mipsel-linux-gnu-ld
/home/paulb/Software/L4Re/LX20/l4/tool/bin/l4-bender --trace-exec
--variant std -t ld -Dl4obj=/home/paulb/Software/L4Re/LX20/l4/mybuild
-Dl4dir=/home/paulb/Software/L4Re/LX20/l4
-Dgcclibdir="/usr/lib/gcc-cross/mipsel-linux-gnu/12/
/usr/lib/gcc-cross/mipsel-linux-gnu/12/../../../../mipsel-linux-gnu/lib/mipsel-linux-gnu/12/
/usr/lib/gcc-cross/mipsel-linux-gnu/12/../../../../mipsel-linux-gnu/lib/mipsel-linux-gnu/
/usr/lib/gcc-cross/mipsel-linux-gnu/12/../../../../mipsel-linux-gnu/lib/../lib/
/lib/mipsel-linux-gnu/12/ /lib/mipsel-linux-gnu/ /lib/../lib/
/usr/lib/mipsel-linux-gnu/12/ /usr/lib/mipsel-linux-gnu/
/usr/lib/../lib/
/usr/lib/gcc-cross/mipsel-linux-gnu/12/../../../../mipsel-linux-gnu/lib/
/lib/ /usr/lib/" -Dl4system=mips_32r5 -Dl4api=l4f
-Dlinker="mipsel-linux-gnu-ld -m elf32ltsmip --oformat
elf32-tradlittlemips"
--spec=/home/paulb/Software/L4Re/LX20/l4/mk/bid-bender.spec -- -MD -MF
./.libsystypes.so.pcs.d -o libsystypes.so -shared -PCcompiler-rt \
-EL -z noexecstack --hash-style=both
-L/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/l4f
-L/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/plain
-L/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/std base.s.o thread.s.o
\
(The trailing backslash merely continues the command onto a blank line.)
...the command that is run doesn't find libgcc_s.so (and family):
mipsel-linux-gnu-ld -m elf32ltsmip --oformat elf32-tradlittlemips -o
libsystypes.so -nostdlib --eh-frame-hdr -shared -z noexecstack
--hash-style=both
-L/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/l4f
-L/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/plain
-L/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/std -dT
/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/plain/main_rel.ld
/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/plain/crti.s.o
/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/plain/crtbeginS.o
base.s.o thread.s.o -lgcc_s -lgcc -lgcc
/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/plain/crtendS.o
/home/paulb/Software/L4Re/LX20/l4/mybuild/lib/mips_32r5/std/plain/crtn.s.o
-EL
And so it produces the error noted above. Some of the paths in gcclibdir
are non-existent, but there are others that yield the appropriate
libraries.
It isn't unusual to have to modify something when catching up with the
current sources: usually, packages are reorganised, certain details are
changed, and so on. But has something changed in the way packages are
meant to be described that might cause this?
Paul