I am trying to cross-compile the databases/sqlite3 package, which depends on cross/cross-libtool-base. Trying to build the cross-libtool-base dependency fails with the following: checking for armv7--netbsdelf-eabihf-gcc... armv7--netbsdelf-eabihf-gcc checking whether the C compiler works... no configure: error: in `/pkgsrc/pkgsrc-2023Q2/cross/cross-libtool-base/work/libtool-2.4.7': configure: error: C compiler cannot create executables See `config.log' for more details The cross-libtool-base config.log file (attached) indicates that the compiler in use (armv7--netbsdelf-eabihf-gcc) does not recognized the -m64 option, so the test fails. The -m64 option originates in mk/compiler/gcc.mk. The patch below removes it from the command line and cross-libtool-base builds fine (as does sqlite3). It this the correct fix? Thanks a lot. Cheers, Brook Index: mk/compiler/gcc.mk =================================================================== RCS file: /cvsroot/pkgsrc/mk/compiler/gcc.mk,v retrieving revision 1.251 diff -u -r1.251 gcc.mk --- mk/compiler/gcc.mk 12 Jun 2023 21:50:41 -0000 1.251 +++ mk/compiler/gcc.mk 14 Sep 2023 19:24:36 -0000 @@ -890,7 +890,7 @@ _COMPILER_ABI_FLAG.n32= -mabi=n32 _COMPILER_ABI_FLAG.o32= -mabi=32 _COMPILER_ABI_FLAG.64= -mabi=64 -.elif !empty(MACHINE_ARCH:Maarch64*) +.elif !empty(MACHINE_ARCH:Maarch64*) || !empty(MACHINE_ARCH:Mearm*) _COMPILER_ABI_FLAG.32= -m32 _COMPILER_ABI_FLAG.64= # empty .else
Attachment:
config.log
Description: Binary data