Wrong include location was getting used during cross-compilation in my system for sqlite package. This is how I managed to build it successfully: diff --git a/dev-db/sqlite/sqlite-3.33.0.ebuild b/dev-db/sqlite/sqlite-3.33.0.ebuild index fba288a9..748eea13 100644 --- a/dev-db/sqlite/sqlite-3.33.0.ebuild +++ b/dev-db/sqlite/sqlite-3.33.0.ebuild @@ -274,7 +274,9 @@ multilib_src_configure() { options+=($(use_enable static-libs static)) # tcl, test, tools USE flags. - options+=(--enable-tcl) + if ! use tcl && ! use test && ! use tools ; then + options+=(--disable-tcl) + fi Please let me know if you think this is a bug in the ebuild file. I can also send a pull request for this change. Reproducible: Always Steps to Reproduce: 1.emerge-lakitu sqlite 2. 3.
Created attachment 689058 [details] emerge-lakitu-info
Created attachment 689061 [details] build logs
Which version of dev-lang/tcl?
tcl-8.6.6
dev-lang/tcl-8.6.9-r1 includes fix for cross-compilation. *** This bug has been marked as a duplicate of bug 731120 ***
I upgraded to dev-lang/tcl-8.6.9-r1 but got the exact same error.
We can use --disable-tcl with USE="-tcl -test -tools" although --enable-tcl is rather harmless (it only results in using ${TCL_INCLUDE_SPEC} which is empty in >=dev-lang/tcl-8.6.9-r1 and -I/usr/include in <dev-lang/tcl-8.6.9-r1).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2b164ba52c04ff6fb7b8879d35f0f08ee01aed9 commit b2b164ba52c04ff6fb7b8879d35f0f08ee01aed9 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2021-03-29 01:00:00 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2021-03-29 17:42:35 +0000 dev-db/sqlite: Fix Tcl dependency and detection. Fixes: f797e0fd4092a1d9e83c23005806a2db3d7bd0c2 Bug: https://bugs.gentoo.org/724578 Closes: https://bugs.gentoo.org/773967 Closes: https://github.com/gentoo/gentoo/pull/19972 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org> dev-db/sqlite/sqlite-3.33.0.ebuild | 11 +++++++++-- dev-db/sqlite/sqlite-3.34.0.ebuild | 11 +++++++++-- dev-db/sqlite/sqlite-3.34.1.ebuild | 11 +++++++++-- dev-db/sqlite/sqlite-3.35.0.ebuild | 11 +++++++++-- dev-db/sqlite/sqlite-3.35.1.ebuild | 11 +++++++++-- dev-db/sqlite/sqlite-3.35.2.ebuild | 11 +++++++++-- dev-db/sqlite/sqlite-3.35.3.ebuild | 11 +++++++++-- 7 files changed, 63 insertions(+), 14 deletions(-)