pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Cross-compiling for ARM
Hi list,
I'm trying to set up cross-compilation for pkgsrc from amd64 to arm
(compiling webkit-gtk2 on the pinebook is quite slow...). This is
running on a NetBSD/amd64-current box (8.99.31), and I'm using the
instructions from doc/HOWTO-use-crosscompile.
I've set up the environment (tools, distribution and /etc/mk.conf) as
suggested in that document, and am now trying to compile
cross/cross-libtool-base. This fails (in pkgtools/cwrappers) with the
error represented below.
I haven't the foggiest idea what is going on here or how to debug it -
is anybody able to give some advice?
thanks!
Jaap
--- extract ---
(...)
config.status: creating Makefile
config.status: creating nbcompat/config.h
config.status: nbcompat/config.h is unchanged
--- snprintf.o ---
aarch64--netbsd-gcc -DHAVE_NBCOMPAT_H=1
-I/usr/pkgsrc/pkgtools/cwrappers/work.aarch64/libnbcompat -I. -I. -O2
-D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -c snprintf.c
In file included from /usr/obj/destdir.evbarm/usr/include/stdio.h:597:0,
from
/usr/pkgsrc/pkgtools/cwrappers/work.aarch64/libnbcompat/nbcompat/stdio.h:40,
from
/usr/pkgsrc/pkgtools/cwrappers/work.aarch64/libnbcompat/nbcompat.h:61,
from snprintf.c:28:
snprintf.c:43:1: error: expected declaration specifiers or '...' before
numeric constant
snprintf(char *str, size_t size, const char *format, ...)
^
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.aarch64/libnbcompat/nbcompat/stdio.h:40,
from
/usr/pkgsrc/pkgtools/cwrappers/work.aarch64/libnbcompat/nbcompat.h:61,
from snprintf.c:28:
snprintf.c:43:1: error: expected declaration specifiers or '...' before
'__builtin_object_size'
snprintf(char *str, size_t size, const char *format, ...)
^
In file included from /usr/obj/destdir.evbarm/usr/include/stdio.h:597:0,
from
/usr/pkgsrc/pkgtools/cwrappers/work.aarch64/libnbcompat/nbcompat/stdio.h:40,
from
/usr/pkgsrc/pkgtools/cwrappers/work.aarch64/libnbcompat/nbcompat.h:61,
from snprintf.c:28:
snprintf.c:55:1: error: expected declaration specifiers or '...' before
numeric constant
vsnprintf(char *str, size_t size, const char *format, va_list ap)
^
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.aarch64/libnbcompat/nbcompat/stdio.h:40,
from
/usr/pkgsrc/pkgtools/cwrappers/work.aarch64/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.aarch64/libnbcompat
1 error
make: stopped in /usr/pkgsrc/pkgtools/cwrappers/work.aarch64/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
--- end extract ---
--
"And without hate, how am I to know the exquisite sensation of mild
annoyance?"
Home |
Main Index |
Thread Index |
Old Index