tech-toolchain archive

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

build.sh shared object issue on OpenBSD



I'm on OpenBSD 5.8 amd64, cross-compiling NetBSD-current for the MIPS
CI20 (evbmips, mipsel, MIPS32r2).

The tools build fine, but when I try to build the kernel I immediately
get the below error.

While liblto_plugin.so is missing, liblto_plugin.so.0.0 is in the same
directory, and after I just:

> mv -i obj/tooldir.OpenBSD-5.8-amd64/libexec/gcc/mipsel--netbsd/4.8.5/liblto_plugin.so.0.0  obj/tooldir.OpenBSD-5.8-amd64/libexec/gcc/mipsel--netbsd/4.8.5/liblto_plugin.so

the kernel builds fine.

I have the same issue with both the system GCC (GCC 4.2) and the GCC
port (GCC 4.9).

The userland is currently building without issue.

> ./build.sh -U -a mipsel -m evbmips -u kernel=CI20 tools                                                                                    <
> ===> build.sh command:    ./build.sh -U -a mipsel -m evbmips -u kernel=CI20 tools
> ===> build.sh started:    Wed Jul 15 00:59:36 EDT 2015
> ===> NetBSD version:      7.99.20
> ===> MACHINE:             evbmips
> ===> MACHINE_ARCH:        mipsel
> ===> Build platform:      OpenBSD 5.8 amd64
> ===> HOST_SH:             /usr/local/bin/bash
> ===> MAKECONF file:       /etc/mk.conf (File not found)
> ===> TOOLDIR path:        /home/mike/repos/netbsd-cvs/obj/tooldir.OpenBSD-5.8-amd64
> ===> DESTDIR path:        /home/mike/repos/netbsd-cvs/obj/destdir.evbmips
> ===> RELEASEDIR path:     /home/mike/repos/netbsd-cvs/obj/releasedir
> ===> Updated makewrapper: /home/mike/repos/netbsd-cvs/obj/tooldir.OpenBSD-5.8-amd64/bin/nbmake-evbmips
> ===> Building kernel:     CI20
> ===> Build directory:     /home/mike/repos/netbsd-cvs/sys/arch/evbmips/compile/obj/CI20
> Build directory is /home/mike/repos/netbsd-cvs/sys/arch/evbmips/compile/obj/CI20
> Don't forget to run "make depend"
> depending the kern library objects
> #    create  kern/absvdi2.d
> CC=/home/mike/repos/netbsd-cvs/obj/tooldir.OpenBSD-5.8-amd64/bin/mipsel--netbsd-gcc /home/mike/repos/netbsd-cvs/obj/tooldir.OpenBSD-5.8-amd64/bin/nbmkdep -f 
> absvdi2.d.tmp  --   -std=gnu99    --sysroot=/home/mike/repos/netbsd-cvs/obj/destdir.evbmips -I/home/mike/repos/netbsd-cvs/sys/lib/libkern/arch/mips --sysroot
> =/home/mike/repos/netbsd-cvs/obj/destdir.evbmips -Devbmips -I../../. -I/home/mike/repos/netbsd-cvs/sys/../common/include -I/home/mike/repos/netbsd-cvs/sys/ar
> ch -I/home/mike/repos/netbsd-cvs/sys -nostdinc -DMIPS32R2 -DCONSPEED="115200" -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/home/mike/repo
> s/netbsd-cvs/sys/lib/libkern/../../../common/lib/libc/quad -I/home/mike/repos/netbsd-cvs/sys/lib/libkern/../../../common/lib/libc/string -I/home/mike/repos/n
> etbsd-cvs/sys/lib/libkern/../../../common/lib/libc/arch/mips/string -I/home/mike/repos/netbsd-cvs/sys/external/bsd/common/include -I/home/mike/repos/netbsd-c
> vs/sys/external/bsd -I/home/mike/repos/netbsd-cvs/sys/external/bsd/dwc2/dist  -D__HAVE_ASM_ATOMIC_CAS_UP -I/home/mike/repos/netbsd-cvs/sys/lib/libkern/../../
> ../common/lib/libc/quad -I/home/mike/repos/netbsd-cvs/sys/lib/libkern/../../../common/lib/libc/string -I/home/mike/repos/netbsd-cvs/sys/lib/libkern/../../../
> common/lib/libc/arch/mips/string -I/home/mike/repos/netbsd-cvs/sys/lib/libkern/../../../common/include  -Wno-missing-prototypes  -Wno-old-style-definition  -
> Wno-strict-prototypes  -Wno-uninitialized    /home/mike/repos/netbsd-cvs/sys/external/bsd/compiler_rt/dist/lib/builtins/absvdi2.c &&  mv absvdi2.d.tmp absvdi
> 2.d
> mipsel--netbsd-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.
> nbmkdep: compile failed.



Home | Main Index | Thread Index | Old Index