This is the part that has always been failing for me, and the cross builds are not making it past this point.


./mkheader --cross       \
                   x86_64-unknown-linux-gnu  ./gpg-error.h.in \
                   ../config.h 1.36 0x012400 >gpg-error.h
./gpg-error.h.in:497: error including `./syscfg/lock-obj-pub.linux-gnu.h': No such file or directory
make[2]: *** [Makefile:1632: gpg-error.h] Error 1
make[2]: Leaving directory '/opt/t2-trunk/src.libgpg-error.default.20200302.012959.4146.j-ryzen-3950/libgpg-error-1.36/src'
make[1]: *** [Makefile:509: all-recursive] Error 1
make[1]: Leaving directory '/opt/t2-trunk/src.libgpg-error.default.20200302.012959.4146.j-ryzen-3950/libgpg-error-1.36'
make: *** [Makefile:441: all] Error 2
Due to previous errors, no 1-libgpg-error.log file!
(Try enabling xtrace in the config to track an error inside the build system.)
--- BUILD ERROR ---

The mkheader tries to fix up the build triplet, and was substituting lock-obj-pub.linux-gnu.h instead of x86_64-unknown-linux-gnu.h.

There was something in the .config that set up the --host correctly if we were at cross, but the mkheader step was still mangling it.

I noticed that there was a package/security/libgpg-error/t2-linux.patch file that modified the mkheader.c, I got rid of that patch file and now it builds. not sure what will happen on other arches, but an x86_64 cross build is broken with the patch file in there.


Jan



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to