Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823776 - sys-libs/ncurses-6.2_p20210619: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltinfo
Summary: sys-libs/ncurses-6.2_p20210619: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.1/../.....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-14 22:17 UTC by Erik
Modified: 2023-05-21 02:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,126.50 KB, text/x-log)
2021-11-14 22:17 UTC, Erik
Details
Configure cross --without-ada (ncurses-6.2_p20210619.ebuild-cross-without-ada.patch,420 bytes, patch)
2021-11-15 03:15 UTC, Tee KOBAYASHI
Details | Diff
build.log (build.log,137.62 KB, text/x-log)
2023-05-14 05:03 UTC, Erik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2021-11-14 22:17:06 UTC
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
Comment 1 Tee KOBAYASHI 2021-11-15 03:15:58 UTC
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.
Comment 2 Erik 2021-12-17 10:10:21 UTC
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.
Comment 3 Erik 2022-12-17 14:08:41 UTC
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
Comment 4 Erik 2022-12-17 14:40:11 UTC
Adding the following line to etc/portage/package.use makes the build finish without error:
=sys-libs/ncurses-6.3_p20221203 -ada
Comment 5 Andrew Athalye 2023-01-04 18:23:25 UTC
I am also encountering the same error. Will search for a resolution, but have resorted to "-ada" for now as well.
Comment 6 Erik 2023-04-02 07:42:33 UTC
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.
Comment 7 Erik 2023-05-14 05:03:38 UTC
Created attachment 861647 [details]
build.log

The bug reappeared with version 6.4_p20230401.
Comment 8 Larry the Git Cow gentoo-dev 2023-05-21 02:22:53 UTC
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(-)