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 Sun, May 17, 2020 at 04:07:11PM -0300, Silas wrote:
> 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:
> WRKOBJDIR=		/tmp/pkg-2016Q1.${MACHINE_ARCH}
> .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
> MACHINE=		i386
> CROSS_DESTDIR=		/build-i386/dist
> TOOLDIR=		/build-i386/tools
> .endif
> PACKAGES=		/tmp/packages.${MACHINE_ARCH}

Not the question you are asking, but if the goal is 32bit packages, you
will have a *much* better time creating a 32bit chroot and building
within it than relying on cross compilation.

Cross compilation relies on the package supporting cross-compilation,
which is a problem on pretty basic packages (perl, python). 32bit chroot
is indistinguishable for almost all packages.

Home | Main Index | Thread Index | Old Index