pkgsrc - crosscompile Problem mit Libtool

meilenstein

Well-Known Member
Hallo

ich habe NetBSD auf einem Raspberry PI 2 (earmv7hf) und eine Installation in der Virtual Box (x86_64).

Jetzt habe ich versucht gemäß Anleitung eine Umgebung einzurichten, damit ich unter der Virtual Box Pakete für den RPI2 bauen kann.

Leider scheitere ich bei der Installation des Work around für libtool
Code:
vb_netbsd# cd /usr/pkgsrc/cross/cross-libtool-base
vb_netbsd# make package
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /usr/src/obj/destdir.evbarm/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/src/obj/destdir.evbarm/var/db/pkg fetch-pkg-vulnerabilities'.
===> Configuring for cross-libtool-base-earmv7hf-2.4.6nb4
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
## ------------------------- ##
## Configuring libtool 2.4.6 ##
## ------------------------- ##

checking for GNU M4 that supports accurate traces... /usr/pkg/bin/gm4
checking whether /usr/pkg/bin/gm4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for a BSD-compatible install... /usr/src/obj/tooldir.NetBSD-7.1-amd64/bin/armv7--netbsdelf-eabihf-install -c -o root -g wheel
checking whether build environment is sane... yes
checking for armv7--netbsdelf-eabihf-strip... armv7--netbsdelf-eabihf-strip
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64--netbsd
checking host system type... armv7--netbsdelf-eabihf
configure: autobuild project... GNU Libtool
configure: autobuild revision... 2.4.6
configure: autobuild hostname... vb_netbsd
configure: autobuild mode... default
configure: autobuild timestamp... 20171003T192236Z
checking for armv7--netbsdelf-eabihf-gcc... armv7--netbsdelf-eabihf-gcc
checking whether the C compiler works... no
configure: error: in `/usr/pkgsrc/cross/cross-libtool-base/work.earmv7hf/libtool-2.4.6':
configure: error: C compiler cannot create executables
See `config.log' for more details
*** Error code 77

Stop.
make[1]: stopped in /usr/pkgsrc/cross/cross-libtool-base
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/cross/cross-libtool-base


Leider werde ich aus der Fehlermeldung der nicht schlau :confused::ugly:
Habe die config.log bei pastebin hochgeladen: config.log
 
Hallo

Habe zwischenzeitlich bei der weiteren Recherche festgestellt, dass mir das Paket m4 gefehlt hat.
Die Installation läuft jetzt weiter aber bleibt beim Paket libnbcompat stehen:

Code:
In file included from /usr/obj/destdir.evbarm/usr/include/ssp/stdio.h:34:0,
                 from /usr/obj/destdir.evbarm/usr/include/stdio.h:597,
                 from /usr/pkgsrc/pkgtools/cwrappers/work.earm/libnbcompat/nbcompat/stdio.h:40,
                 from /usr/pkgsrc/pkgtools/cwrappers/work.earm/libnbcompat/nbcompat.h:61,
                 from snprintf.c:28:
snprintf.c:55:1: error: expected declaration specifiers or '...' before '__builtin_object_size'
vsnprintf(char *str, size_t size, const char *format, va_list ap)
^
*** [snprintf.o] Error code 1

make: stopped in /usr/pkgsrc/pkgtools/cwrappers/work.earm/libnbcompat
1 error

make: stopped in /usr/pkgsrc/pkgtools/cwrappers/work.earm/libnbcompat
*** Error code 2

Stop.
make[2]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/cross/cross-libtool-base

Jemand ne Idee? Habe schon versucht das Paket nbcompat zu aktualisieren, aber auch mit der aktuellen Version bleibe ich leider an der gleichen Stelle stehen.
 
Zurück
Oben