(no subject)
(resend again with revert patch removed)
Hi,
I found that package/gnupg2 (version 2.4.0) fails to build, complaining about unsafe search path for cross-compilation. I found this when test-building for my git bump at [1].
The excerpt from the build log was:
make[4]: Entering directory '/home/bagas/repo/buildroot/output/build/gnupg2-2.4.0/common'/home/bagas/repo/buildroot/output/host/bin/aarch64-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\"" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/bagas/repo/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -c -o t-stringhelp.o t-stringhelp.c/home/bagas/repo/buildroot/output/host/bin/aarch64-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\"" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/bagas/repo/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -DWITHOUT_NPTH=1 -Wall -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -c -o libcommon_a-i18n.o test -f 'i18n.c' || echo './'i18n.c
aarch64-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include' make[4]: *** [Makefile:1283: t-stringhelp.o] Error 1
Reverting 0f868e97f6b4 ("package/gnupg2: bump to version 2.4.0") made the error above gone, thus the problem was in upstream code.
This issue is also confirmed by autobuilder (example log is [2]).
The full build log is attached.
If the revert is desired, the patch is at [3].
Thanks.
[1]: https://lore.kernel.org/buildroot/[email protected]/
[2]: http://autobuild.buildroot.net/results/5bf00af86da6e41d1a48abc7304bf339908a0150/build-end.log
[3]: https://lore.kernel.org/buildroot/[email protected]/
Signature · 1 line
An old man doll... just what I always wanted! - Clara
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 23 lines · Bagas Sanjaya
(resend again with revert patch removed)
Hi,
I found that package/gnupg2 (version 2.4.0) fails to build, complaining about unsafe search path for cross-compilation. I found this when test-building for my git bump at [1].
The excerpt from the build log was:
make[4]: Entering directory '
/home/bagas/repo/buildroot/output/build/gnupg2-2.4.0/common'/home/bagas/repo/buildroot/output/host/bin/aarch64-linux-gcc-DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\"" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/bagas/repo/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -c -o t-stringhelp.ot-stringhelp.c/home/bagas/repo/buildroot/output/host/bin/aarch64-linux-gcc-DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\"" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/bagas/repo/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -DWITHOUT_NPTH=1 -Wall -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -c -o libcommon_a-i18n.otest -f 'i18n.c' || echo './'i18n.c
aarch64-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include' make[4]: *** [Makefile:1283: t-stringhelp.o] Error 1Reverting
0f868e97f6b4("package/gnupg2: bump to version 2.4.0") made the error above gone, thus the problem was in upstream code.This issue is also confirmed by autobuilder (example log is [2]).
The full build log is attached.
Quoted 8 lines
If the revert is desired, the patch is at [3].
Thanks.
[1]: https://lore.kernel.org/buildroot/[email protected]/
[2]: http://autobuild.buildroot.net/results/5bf00af86da6e41d1a48abc7304bf339908a0150/build-end.log
[3]: https://lore.kernel.org/buildroot/[email protected]/
Oops, please ignore (no subject). I will send the report later.
Signature · 6 lines
An old man doll... just what I always wanted! - Clara _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot