tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libgcc not built?



Hello,

Yesterday I had a look at my lm32 NetBSD port (which is stalled since
2014 for lack of time).

And I noticed that I cannot link user space binaries because the built
cross toolchain lacks libgcc.

I wonder: why is libgcc not built?

Any guru of NetBSD/gcc build system could tell me? I didn't find
anything obvious but I'm not a pro on this.

Here is the build log (in -j 1) :
https://gist.githubusercontent.com/fallen/1b9be35dbcc5612e71fd0d1c4c8bd35b/raw/f6f5504dd4123431f320d84a9d05db8d7c7ce594/build.log

Here is the NetBSD src fork (it's old, NetBSD 7-ish IIRC) :
https://github.com/fallen/netbsd

Here is what happens when trying to link something:

#      link  bc/bc
/home/fallen/dev/edgebsd/obj/tooldir.Linux-4.18.0-16-generic-x86_64/bin/lm32--netbsd-gcc   
--sysroot=/home/fallen/dev/edgebsd/obj/destdir.milkymist     -o bc  bc.o
execute.o global.o load.o main.o number.o scan.o storage.o util.o  -ll
-ledit -lterminfo   
/home/fallen/dev/edgebsd/obj/tooldir.Linux-4.18.0-16-generic-x86_64/lib/gcc/lm32--netbsd/4.5.4/../../../../lm32--netbsd/bin/ld:
cannot find -lgcc
/home/fallen/dev/edgebsd/obj/tooldir.Linux-4.18.0-16-generic-x86_64/lib/gcc/lm32--netbsd/4.5.4/../../../../lm32--netbsd/bin/ld:
cannot find -lgcc_s
/home/fallen/dev/edgebsd/obj/tooldir.Linux-4.18.0-16-generic-x86_64/lib/gcc/lm32--netbsd/4.5.4/../../../../lm32--netbsd/bin/ld:
cannot find -lgcc
/home/fallen/dev/edgebsd/obj/tooldir.Linux-4.18.0-16-generic-x86_64/lib/gcc/lm32--netbsd/4.5.4/../../../../lm32--netbsd/bin/ld:
cannot find -lgcc_s
collect2: ld returned 1 exit status

*** Failed target:  bc
*** Failed command:
/home/fallen/dev/edgebsd/obj/tooldir.Linux-4.18.0-16-generic-x86_64/bin/lm32--netbsd-gcc
--sysroot=/home/fallen/dev/edgebsd/obj/destdir.milkymist -o bc bc.o
execute.o global.o load.o main.o number.o scan.o storage.o util.o -ll
-ledit -lterminfo
*** Error code 1

Thanks!

Regards,

-- 

Yann



Home | Main Index | Thread Index | Old Index