tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Porting NetBSD to Eco32
On Sun, Jul 13, 2014 at 16:42:11 +0200, Jens Mehler wrote:
> I ran into another problem while building the Userland for NetBSD/Eco32.
>
> I managed to get most of the libraries build and am currently
> researching why the following error occurs:
>
[...]
> dependall ===> gnu/usr.bin/bc
> # link bc/bc
> ~/netbsd-on-eco32/usr/src/../tools/bin/eco32--netbsd-gcc
> --sysroot=/hdd/home/okarin/eco32/netbsd-on-eco32/usr/src/../dest -o
> bc bc.o execute.o global.o load.o main.o number.o scan.o storage.o
> util.o -ll -ledit -lterminfo
> ~/eco32/netbsd-on-eco32/usr/tools/bin/../lib/gcc/eco32--netbsd/4.5.3/../../../../eco32--netbsd/bin/ld:
> cannot find -lgcc
> ~/eco32/netbsd-on-eco32/usr/tools/bin/../lib/gcc/eco32--netbsd/4.5.3/../../../../eco32--netbsd/bin/ld:
> cannot find -lgcc_s
> ~/eco32/netbsd-on-eco32/usr/tools/bin/../lib/gcc/eco32--netbsd/4.5.3/../../../../eco32--netbsd/bin/ld:
> cannot find -lgcc
> ~/eco32/netbsd-on-eco32/usr/tools/bin/../lib/gcc/eco32--netbsd/4.5.3/../../../../eco32--netbsd/bin/ld:
> cannot find -lgcc_s
>
>
> I restricted the build-environment pretty harsh. Nearly disabled
> everything which I don't need using the MKXXX flags and the USE_XXX
> flags. Therefore I set MKGCC and MKBINUTILS back to default and run into:
Buildind of libgcc &c is not controlled by MKGCC.
libgcc is built by the code at the very top of lib/Makefile, make sure
it actually happens.
Hint: you don't have to use build.sh once you've built your tools.
$TOOLDIR/bin/nbmake-eco32 wrapper can be used in the soruce tree
instead of make and it will call make with the right environment for
your cross-build. This comes in handy deeper in the tree, when you
need to (re)build just one program or library.
-uwe
Home |
Main Index |
Thread Index |
Old Index