pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
snags getting started with pkgsrc crosscompiling
So, I'm taking my first steps in the brave new world that is cross-
building pkgsrc. My target is sparc. Following the example (cut-paste-
edit) in "HOWTO-use-crosscompile", I added the following to my global
"/etc/mk.conf":
# mk.conf
.ifdef BSD_PKG_MK
[ my usual stuff...]
###########################################################################
#
# Cross-compile for sparc
#
##########################################################################
USE_CROSS_COMPILE?= yes
# Point pkgsrc at the NetBSD tooldir and destdir for cross builds.
TOOLDIR= /r0/build/netbsd-10/tools/amd64
CROSS_DESTDIR= /r0/build/netbsd-10/DEST/sparc
# Specify the machine architecture of target packages.
CROSS_MACHINE_ARCH= sparc
# Specify the OS of target packages.
CROSS_OPSYS= NetBSD
CROSS_OS_VERSION= 10.0
CROSS_OPSYS_VERSION= 100000
CROSS_LOWER_OPSYS= netbsd
CROSS_LOWER_OPSYS_VERSUFFIX= # empty
CROSS_LOWER_OS_VARIANT= # empty
CROSS_LOWER_VARIANT_VERSION= # empty
CROSS_LOWER_VENDOR= # empty
CROSS_OBJECT_FMT= ELF
LOCALBASE= /r0/build/netbsd-10/xpkg/${CROSS_MACHINE_ARCH}
.endif
Unfortunately, something's not quite right as the attempt to install
"cross-libtool-base" fails with the following:
[...]
===> Building binary package for cross-libtool-base-NetBSD-10.0-sparc-2.4.7nb8
=> Creating binary package /r0/build/netbsd-10/packages/sparc/All/cross-libtool-base-NetBSD-10.0-sparc-2.4.7nb8.tgz
=> Becoming ``root'' to make su-real-package-install (sudo)
===> Installing binary package of cross-libtool-base-NetBSD-10.0--2.4.7nb8
pkg_add: Can't process file:///tmp/pkgsrc/cross/cross-libtool-base/work.NetBSD-10.0-/.packages/cross-libtool-base-NetBSD-10*: No such file or directory
pkg_add: no pkg found for '/tmp/pkgsrc/cross/cross-libtool-base/work.NetBSD-10.0-/.packages/cross-libtool-base-NetBSD-10.0--2.4.7nb8.tgz', sorry.
pkg_add: 1 package addition failed
*** Error code 1
Stop.
make: stopped in /x/pkgsrc/cross/cross-libtool-base
*** Error code 1
Stop.
make[2]: stopped in /x/pkgsrc/cross/cross-libtool-base
*** Error code 1
Stop.
make[1]: stopped in /x/pkgsrc/cross/cross-libtool-base
*** Error code 1
Stop.
The CROSS_MACHINE_ARCH value is somehow missing from one of the path
elements and from the name of the package build under the $WRKOBJDIR
when passed to 'pkg_add'.
Please advise.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index