End of the log:
... slibtool: link: ln -s libgpgme.so.def .libs/libgpgme.so.def.midipix slibtool: link: ln -s libgpgme.so.def.midipix .libs/libgpgme.so.def.host slibtool: link: x86_64-nt64-midipix-ar crs .libs/libgpgme.a .libs/conversion.o .libs/b64dec.o .libs/get-env.o .libs/parsetlv.o .libs/mbox-util.o .libs/data.o .libs/data-fd.o .libs/data-stream.o .libs/data-mem.o .libs/data-user.o .libs/data-estream.o .libs/data-compat.o .libs/data-identify.o .libs/signers.o .libs/sig-notation.o .libs/wait.o .libs/wait-global.o .libs/wait-private.o .libs/wait-user.o .libs/op-support.o .libs/encrypt.o .libs/encrypt-sign.o .libs/decrypt.o .libs/decrypt-verify.o .libs/verify.o .libs/sign.o .libs/passphrase.o .libs/progress.o .libs/key.o .libs/keylist.o .libs/keysign.o .libs/trust-item.o .libs/trustlist.o .libs/tofupolicy.o .libs/revsig.o .libs/import.o .libs/export.o .libs/genkey.o .libs/delete.o .libs/edit.o .libs/getauditlog.o .libs/setexpire.o .libs/opassuan.o .libs/passwd.o .libs/spawn.o .libs/assuan-support.o .libs/engine.o .libs/engine-gpg.o .libs/status-table.o .libs/engine-gpgsm.o .libs/engine-assuan.o .libs/engine-gpgconf.o .libs/engine-uiserver.o .libs/engine-g13.o .libs/vfs-mount.o .libs/vfs-create.o .libs/engine-spawn.o .libs/gpgconf.o .libs/queryswdb.o .libs/posix-util.o .libs/posix-io.o .libs/dirinfo.o .libs/debug.o .libs/gpgme.o .libs/version.o .libs/error.o .libs/ath.o slibtool: link: x86_64-nt64-midipix-gcc .libs/conversion.o .libs/b64dec.o .libs/get-env.o .libs/parsetlv.o .libs/mbox-util.o .libs/data.o .libs/data-fd.o .libs/data-stream.o .libs/data-mem.o .libs/data-user.o .libs/data-estream.o .libs/data-compat.o .libs/data-identify.o .libs/signers.o .libs/sig-notation.o .libs/wait.o .libs/wait-global.o .libs/wait-private.o .libs/wait-user.o .libs/op-support.o .libs/encrypt.o .libs/encrypt-sign.o .libs/decrypt.o .libs/decrypt-verify.o .libs/verify.o .libs/sign.o .libs/passphrase.o .libs/progress.o .libs/key.o .libs/keylist.o .libs/keysign.o .libs/trust-item.o .libs/trustlist.o .libs/tofupolicy.o .libs/revsig.o .libs/import.o .libs/export.o .libs/genkey.o .libs/delete.o .libs/edit.o .libs/getauditlog.o .libs/setexpire.o .libs/opassuan.o .libs/passwd.o .libs/spawn.o .libs/assuan-support.o .libs/engine.o .libs/engine-gpg.o .libs/status-table.o .libs/engine-gpgsm.o .libs/engine-assuan.o .libs/engine-gpgconf.o .libs/engine-uiserver.o .libs/engine-g13.o .libs/vfs-mount.o .libs/vfs-create.o .libs/engine-spawn.o .libs/gpgconf.o .libs/queryswdb.o .libs/posix-util.o .libs/posix-io.o .libs/dirinfo.o .libs/debug.o .libs/gpgme.o .libs/version.o .libs/error.o .libs/ath.o -I/include -I/home/sskras/pkg/include -D_REDIR_TIME64=0 -g2 -O0 --sysroot=/home/sskras/midipix/nt64/debug/native -std=gnu99 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-format-y2k -Wno-missing-field-initializers -Wno-sign-compare -Wno-format-zero-length -Wno-format-truncation -Wno-sizeof-pointer-div --sysroot=/home/sskras/midipix/nt64/debug/native -lassuan -lgpg-error -L/home/sskras/pkg/lib -shared -fPIC -Wl,-soname -Wl,libgpgme.so.11 -Wl,--output-def -Wl,.libs/libgpgme.so.def -o .libs/libgpgme.so.11.27.0 mv -f .deps/gpgme-json.Tpo .deps/gpgme-json.Po /home/sskras/pkg/lib/libgpg-error.so: error adding symbols: File in wrong format mv -f .deps/cJSON.Tpo .deps/cJSON.Po collect2: ld returned 1 exit status slibtool: exec error upon slbt_exec_link_create_library(), line 1572: (see child process error messages). slibtool: < returned to > slbt_exec_link(), line 2084. make[1]: *** [Makefile:842: libgpgme.la] Error 2 make[1]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/gpgme-native-x86_64-nt64-midipix/obj/src' make: *** [Makefile:538: all-recursive] Error 1 ==> 2024/01/14 04:41:10 Build failed in `gpgme', check `/home/sskras/midipix/nt64/debug/tmp/gpgme_stderrout.log' for details.
It picked up library from my pkgsrc build:
pkgsrc
/home/sskras/pkg/lib/libgpg-error.so: error adding symbols: File in wrong format
I went up in the log and found this:
checking for timegm... yes checking for setlocale... yes checking for gpg-error-config... /home/sskras/midipix/nt64/debug/native/bin/gpg-error-config checking for gpgrt-config... /home/sskras/pkg/bin/gpgrt-config configure: Use gpgrt-config with /home/sskras/pkg/lib as gpg-error-config checking for GPG Error - version >= 1.36... yes (1.47) configure: WARNING: *** *** The config script "/home/sskras/pkg/bin/gpgrt-config --libdir=/home/sskras/pkg/lib gpg-error" was *** built for x86_64-debian-linux-gnu and thus may not match the *** used host x86_64-nt64-midipix. *** You may want to use the configure option --with-libgpg-error-prefix *** to specify a matching config script or use $SYSROOT. *** checking for libassuan-config... /home/sskras/midipix/nt64/debug/native/bin/libassuan-config checking for LIBASSUAN - version >= 2.4.2... yes (2.5.5) checking LIBASSUAN API version... okay checking for getgid... yes checking for getegid... yes checking for closefrom... no
So it came from /home/sskras/pkg/bin/gpgrt-config who I happen to have in PATH here:
/home/sskras/pkg/bin/gpgrt-config
PATH
$ which gpgrt-config /home/sskras/pkg/bin/gpgrt-config $ /home/sskras/pkg/bin/gpgrt-config --libs -L/home/sskras/pkg/lib -lgpg-error
(no way to attach the full log)
Fixed by commit 65c2bde:
<img alt="gpgme-build-fixed-by-commit-65c2bde.jpg" src="/build/midipix_build/issue/raw/files/29a965aa0c6ed6863fac4d4881a49e50c3e71a3385f6760acc43cd51a662b0c1-gpgme-build-fixed-by-commit-65c2bde.jpg" />
Now libgcrypt build fails in a similar way:
libgcrypt
... slibtool --tag=CC --mode=link x86_64-nt64-midipix-gcc -std=gnu99 -D_REDIR_TIME64=0 -g2 -O0 --sysroot=/home/sskras/midipix/nt64/debug/native -fvisibility=hidden -fno-delete-null-pointer-checks -Wall -version-info 24:3:4 --sysroot=/home/sskras/midipix/nt64/debug/native -o libgcrypt.la -rpath /lib libgcrypt_la-visibility.lo libgcrypt_la-misc.lo libgcrypt_la-global.lo libgcrypt_la-sexp.lo libgcrypt_la-hwfeatures.lo libgcrypt_la-stdmem.lo libgcrypt_la-secmem.lo libgcrypt_la-missing-string.lo libgcrypt_la-fips.lo libgcrypt_la-context.lo libgcrypt_la-const-time.lo ../cipher/libcipher.la ../random/librandom.la ../mpi/libmpi.la ../compat/libcompat.la -L/home/sskras/pkg/lib -lgpg-error slibtool: link: ln -s libgcrypt.so.def .libs/libgcrypt.so.def.midipix slibtool: link: ln -s libgcrypt.so.def.midipix .libs/libgcrypt.so.def.host slibtool: link: x86_64-nt64-midipix-ar crs .libs/libgcrypt.a .libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .libs/libgcrypt_la-fips.o .libs/libgcrypt_la-context.o .libs/libgcrypt_la-const-time.o slibtool: link: x86_64-nt64-midipix-gcc .libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .libs/libgcrypt_la-fips.o .libs/libgcrypt_la-context.o .libs/libgcrypt_la-const-time.o -Wl,--whole-archive ../cipher/.libs/libcipher.a -Wl,--no-whole-archive -Wl,--whole-archive ../random/.libs/librandom.a -Wl,--no-whole-archive -Wl,--whole-archive ../mpi/.libs/libmpi.a -Wl,--no-whole-archive -Wl,--whole-archive ../compat/.libs/libcompat.a -Wl,--no-whole-archive -std=gnu99 -D_REDIR_TIME64=0 -g2 -O0 --sysroot=/home/sskras/midipix/nt64/debug/native -fvisibility=hidden -fno-delete-null-pointer-checks -Wall --sysroot=/home/sskras/midipix/nt64/debug/native -L/home/sskras/pkg/lib -lgpg-error -shared -fPIC -Wl,-soname -Wl,libgcrypt.so.20 -Wl,--output-def -Wl,.libs/libgcrypt.so.def -o .libs/libgcrypt.so.20.4.3 /home/sskras/pkg/lib/libgpg-error.so: error adding symbols: File in wrong format collect2: ld returned 1 exit status slibtool: exec error upon slbt_exec_link_create_library(), line 1572: (see child process error messages). slibtool: < returned to > slbt_exec_link(), line 2084. make[2]: *** [Makefile:736: libgcrypt.la] Error 2 make[2]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/libgcrypt-native-x86_64-nt64-midipix/obj/src' make[1]: *** [Makefile:503: all-recursive] Error 1 make[1]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/libgcrypt-native-x86_64-nt64-midipix/obj' make: *** [Makefile:435: all] Error 2 ==> 2024/01/14 17:52:15 Build failed in `libgcrypt', check `/home/sskras/midipix/nt64/debug/tmp/libgcrypt_stderrout.log' for details. ==> 2024/01/14 17:52:15 [ 80% ] [008/010] Finished `native_packages' build group. ==> 2024/01/14 17:52:15 2 finished, 232 skipped, and 1 failed package(s). ==> 2024/01/14 17:52:15 Build time: 0 hour(s), 11 minute(s), and 18 second(s). ==> 2024/01/14 17:52:15 Build script failure(s) in: libgcrypt.
Namely:
After fixing libgcrypt I have the same failure in libksba too:
libksba
... checking if gcc supports -fvisibility=hidden... yes checking for gpg-error-config... /home/sskras/midipix/nt64/debug/native/bin/gpg-error-config checking for gpgrt-config... /home/sskras/pkg/bin/gpgrt-config configure: Use gpgrt-config with /home/sskras/pkg/lib as gpg-error-config checking for GPG Error - version >= 1.8... yes (1.47) configure: WARNING: *** *** The config script "/home/sskras/pkg/bin/gpgrt-config --libdir=/home/sskras/pkg/lib gpg-error" was *** built for x86_64-debian-linux-gnu and thus may not match the *** used host x86_64-nt64-midipix. *** You may want to use the configure option --with-libgpg-error-prefix *** to specify a matching config script or use $SYSROOT. *** checking for an ANSI C-conforming const... yes checking whether byte ordering is bigendian... no ... slibtool: link: x86_64-nt64-midipix-gcc ber_dump-ber-dump.o ber_dump-ber-decoder.o ber_dump-ber-help.o ber_dump-reader.o ber_dump-writer.o ber_dump-asn1-parse.o ber_dump-asn1-func.o ber_dump-oid.o ber_dump-time .o ber_dump-util.o ../gl/.libs/libgnu.a -I/home/sskras/pkg/include -D_REDIR_TIME64=0 -g2 -O0 --sysroot=/home/sskras/midipix/nt64/debug/native -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno -pointer-sign -fvisibility=hidden --sysroot=/home/sskras/midipix/nt64/debug/native -L/home/sskras/pkg/lib -lgpg-error -o .libs/ber-dump /home/sskras/pkg/lib/libgpg-error.so: error adding symbols: File in wrong format collect2: ld returned 1 exit status slibtool: exec error upon slbt_exec_link_create_executable(), line 1745: (see child process error messages). slibtool: < returned to > slbt_exec_link(), line 2155. make[3]: *** [Makefile:605: ber-dump] Error 2 make[3]: *** Waiting for unfinished jobs.... mv -f .deps/asn1-tables.Tpo .deps/asn1-tables.Plo make[3]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/libksba-native-x86_64-nt64-midipix/obj/src' make[2]: *** [Makefile:514: all] Error 2 make[2]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/libksba-native-x86_64-nt64-midipix/obj/src' make[1]: *** [Makefile:487: all-recursive] Error 1 make[1]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/libksba-native-x86_64-nt64-midipix/obj' make: *** [Makefile:419: all] Error 2 ==> 2024/01/14 18:28:12 Build failed in `libksba', check `/home/sskras/midipix/nt64/debug/tmp/libksba_stderrout.log' for details. ==> 2024/01/14 18:28:12 [ 80% ] [008/010] Finished `native_packages' build group. ==> 2024/01/14 18:28:12 0 finished, 235 skipped, and 1 failed package(s). ==> 2024/01/14 18:28:12 Build time: 0 hour(s), 6 minute(s), and 29 second(s). ==> 2024/01/14 18:28:12 Build script failure(s) in: libksba.
... namely picking up libgpg-error.so from wrong location:
libgpg-error.so
0defa7b fixes libgcrypt. 630f9b2 fixes libksba.
Now blocked by #10.
Unblocked by fixing #10. Now the same error occurs in gnupg package:
gnupg
... x86_64-nt64-midipix-gcc -I/include -I/include -Wall -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -D_REDIR_TIME64=0 -g2 -O0 --sysroot=/home/sskras/midipix/nt64/debug/native --sysroot=/home/sskras/ midipix/nt64/debug/native -o t-convert t-convert.o libcommon.a -lgcrypt -lgpg-error -lassuan -lgpg-error -L/home/sskras/pkg/lib -lgpg-error -liconv /home/sskras/pkg/lib/libgcrypt.so: error adding symbols: File in wrong format /home/sskras/pkg/lib/libgcrypt.so: error adding symbols: File in wrong format /home/sskras/pkg/lib/libgcrypt.so: error adding symbols: File in wrong format collect2: ld returned 1 exit status make[3]: *** [Makefile:1057: t-convert] Error 1 make[3]: *** Waiting for unfinished jobs.... collect2: ld returned 1 exit status make[3]: *** [Makefile:1129: t-timestuff] Error 1 collect2: ld returned 1 exit status make[3]: *** [Makefile:1117: t-stringhelp] Error 1 make[3]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/gnupg-native-x86_64-nt64-midipix/obj/common' make[2]: *** [Makefile:984: all] Error 2 make[2]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/gnupg-native-x86_64-nt64-midipix/obj/common' make[1]: *** [Makefile:630: all-recursive] Error 1 make[1]: Leaving directory '/home/sskras/midipix/nt64/debug/tmp/gnupg-native-x86_64-nt64-midipix/obj' make: *** [Makefile:550: all] Error 2 ==> 2024/01/16 01:48:19 Build failed in `gnupg', check `/home/sskras/midipix/nt64/debug/tmp/gnupg_stderrout.log' for details. ==> 2024/01/16 01:48:19 [ 80% ] [008/010] Finished `native_packages' build group. ==> 2024/01/16 01:48:19 0 finished, 0 skipped, and 1 failed package(s). ==> 2024/01/16 01:48:19 Build time: 0 hour(s), 3 minute(s), and 39 second(s). ==> 2024/01/16 01:48:19 Build script failure(s) in: gnupg.
6b80e02 fixes gnupg.
Now blocked by #11.
Unblocked by fixing #11. Now blocked by #12.
Unblocked after fixing #12.
Login to comment on this ticket.