pkgsrc-Users archive

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

Re: Cannot compile cross-libtool-base for i386 on amd64



On Sat, May 09, 2020 at 12:31:58AM +0200, Martin Unzner wrote:
checking for i486--netbsdelf-gcc... i486--netbsdelf-gcc
checking whether the C compiler works... no
configure: error: in `/home/user/pkgsrc/current/pkgsrc/cross/cross-
libtool-base/work.i386/libtool-2.4.6':
configure: error: C compiler cannot create executables

I can perfectly build cross-libtool-base for i386 on amd64, however using
NetBSD 8.0 (I don't have a 9.0 environment right now).  Reading the output log
above, it seems your environment is correctly setup, but you may give us your
/etc/mk.conf so we can compare.

For comparison purposes, here is mine:

USE_CWRAPPERS=		no
USE_CROSS_COMPILE?=	yes
CROSSBASE=		${LOCALBASE}/cross
WRKOBJDIR=		/tmp/pkg-2016Q1.${MACHINE_ARCH}
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
MACHINE=		i386
MACHINE_ARCH=		i386
CROSS_DESTDIR=		/build-i386/dist
TOOLDIR=		/build-i386/tools
WRKDIR_BASENAME=	work.${MACHINE_ARCH}
.endif
PACKAGES=		/tmp/packages.${MACHINE_ARCH}


Home | Main Index | Thread Index | Old Index