Created attachment 751176 [details] build.log x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sys-libs/ncurses-6.2_p20210619/work/ncurses-6.2/Ada95/gen/../../include -I. -I../include -I../../include -I/usr/include/cross -D_GNU_SOURCE -DHAVE_CONFIG_H -I/var/tmp/portage/sys-libs/ncurses-6.2_p20210619/work/ncurses-6.2/Ada95/gen -O3 -fno-stack-protector -mstackrealign -march=native -msse4.1 -pipe -DNCURSES_STATIC gen.o -L../../lib -Wl,-O1 -Wl,--as-needed -static -ldl -Wl,-O1 -Wl,--as-needed -static -ltinfo -o generate /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltinfo
Created attachment 751204 [details, diff] Configure cross --without-ada I suppose this can happen when * the same version of sys-libs/ncurses is not installed on the build host (which triggers the "cross" part), and * GNAT is installed. Maybe we need to configure the "cross" part with --without-ada. Not sure if --disable-gnat-projects is also needed.
Seems like the bug could be worked around. After removing (emerge -C) the old versions of gnat-gpl (2021) and ncurses, the new versions (2021-r1 and 6.2_p20210619) could be emerged.
sys-libs/ncurses-6.3_p20221203: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltinfo: No such file or directory
Adding the following line to etc/portage/package.use makes the build finish without error: =sys-libs/ncurses-6.3_p20221203 -ada
I am also encountering the same error. Will search for a resolution, but have resorted to "-ada" for now as well.
None of the broken versions (6.2_p20210619, 6.3_p20221203) exist any more and version 6.3_p20221203-r2 is installed with the ada flag.
Created attachment 861647 [details] build.log The bug reappeared with version 6.4_p20230401.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8a8f34562f4bf9ba7081c535c7f3466ae143d22 commit e8a8f34562f4bf9ba7081c535c7f3466ae143d22 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-21 02:21:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-21 02:21:52 +0000 sys-libs/ncurses: build native tools w/ --without-ada There's no need for it when building the native tools just for tinfo etc for a 'cross' build. This doesn't affect the installed files. Closes: https://bugs.gentoo.org/823776 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/ncurses/ncurses-6.4.ebuild | 2 +- sys-libs/ncurses/ncurses-6.4_p20230401.ebuild | 2 +- sys-libs/ncurses/ncurses-6.4_p20230424.ebuild | 2 +- sys-libs/ncurses/ncurses-6.4_p20230506.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)