tech-pkg archive

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

Re: pkg_install in base system again



 >> (Since bootstrap kit can be cross-built, one can hook it to those
 >> scripts that regularly build NetBSD for all platforms.)

> Sure.

I cannot cross-compile pkg_install. The compilation ends like the
following. As you can see native objcopy(1) is used and cannot handle
spark64 (in my test) objects. pkgsrc doesn't provide
TOOLS_PLATFORM.objcopy, so USE_CROSS_COMPILE=yes and TOOLDIR don't have
any effect.

mkdep -d -f .depend -s .o\ .po\ .pico\ .go\ .ln common.d fetch.d file.d ftp.d 
http.d
#   compile  libfetch/common.o
gcc -O2 -I/usr/include -std=gnu99  -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wno-traditional  
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare 
-Wformat=2 -Werror    -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 
-DDEF_UMASK=0022 --sysroot=/srv/obj-sparc64/destdir.sparc64 
-I/tmp/obj-pkgsrc-cross/pkgtools/pkg_install/work/libfetch -DHAVE_NBCOMPAT_H=1 
-I/tmp/obj-pkgsrc-cross/pkgtools/pkg_install/work/libnbcompat -I/usr/include 
-I. -D_LARGEFILE_SOURCE -D_LARGE_FILES -DINET6 -DFTP_COMBINE_CWDS  -c    
common.c -o common.o
objcopy -x common.o
objcopy: Unable to recognise the format of the input file `common.o'
*** Error code 1

> Joerg

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index