pkgsrc-Users archive

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

Cannot compile cross-libtool-base for i386 on amd64


I hope this is the right list for my issue. I am trying to cross-
compile from amd64 to i386 according to the HOWTO from the docs, but
cross-libtool-base will not comply:

--- ~ > cd pkgsrc/current/pkgsrc/cross/cross-libtool-base 
--- cross/cross-libtool-base > bmake package
=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Checking for vulnerabilities in cross-libtool-base-i386-2.4.6nb5
===> Configuring for cross-libtool-base-i386-2.4.6nb5
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
## ------------------------- ##
## Configuring libtool 2.4.6 ##
## ------------------------- ##

checking for GNU M4 that supports accurate traces...
checking whether /home/user/pkgsrc/current/pkg/bin/gm4 accepts --gnu... 
checking how m4 supports trace files... --debugfile
checking for a BSD-compatible install...
--netbsdelf-install -c -o user -g users
checking whether build environment is sane... yes
checking for i486--netbsdelf-strip... i486--netbsdelf-strip
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64--netbsd
checking host system type... i486--netbsdelf
configure: autobuild project... GNU Libtool
configure: autobuild revision... 2.4.6
configure: autobuild hostname... netbsdvm
configure: autobuild mode... default
configure: autobuild timestamp... 20200508T222951Z
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-
configure: error: C compiler cannot create executables
See `config.log' for more details
*** Error code 77

bmake[1]: stopped in /home/user/pkgsrc/current/pkgsrc/cross/cross-
*** Error code 1

bmake: stopped in /home/user/pkgsrc/current/pkgsrc/cross/cross-libtool-

It seems that the build system is not properly set up to use 32-bit
instead of 64-bit compilation, as config.log has:

configure:3902: checking whether the C compiler works
configure:3924: i486--netbsdelf-gcc -O2 -D_FORTIFY_SOURCE=2
-I/usr/include -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-
R/home/user/pkgsrc/current/pkg/lib conftest.c  >&5
cc1: sorry, unimplemented: 64-bit mode not compiled in
configure:3928: $? = 1
configure:3966: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Libtool"
| #define PACKAGE_TARNAME "libtool"
| #define PACKAGE_VERSION "2.4.6"
| #define PACKAGE_STRING "GNU Libtool 2.4.6"
| #define PACKAGE_URL "";
| #define PACKAGE "libtool"
| #define VERSION "2.4.6"
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:3971: error: in
configure:3974: error: C compiler cannot create executables

Any idea how I could patch the build system to enfore 32-bit
compilation during configure?



Home | Main Index | Thread Index | Old Index