Description
Issue:
When building on Fedora 41, the toolchain outputs warnings about missing version information for libtinfo:
/home/<user>/CEdev/bin/ez80-clang: /lib64/libtinfo.so.6: no version information available (required by /home/<user>/CEdev/bin/ez80-clang)
This warning appears for both ez80-clang and ez80-link during the build process. The warning obviously doesn't affect functionality but it does flood the build output.
Environment:
- OS: Fedora (with up-to-date ncurses-libs 6.5-2.20240629.fc41)
- Toolchain: Both stable release (4 months old) and nightly build (2 days old)
- ncurses-libs version: 6.5
- libtinfo path:
/lib64/libtinfo.so.6
->libtinfo.so.6.5
Digging a little bit deeper:
- Confirmed toolchain was built on Ubuntu:
GCC: (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
Ubuntu clang version 14.0.0-1ubuntu1.1
- Examined library dependencies:
$ ldd ~/CEdev/bin/ez80-clang
# Shows libtinfo.so.6 with same version warning
- Checked version symbols in system libtinfo:
$ readelf -V /lib64/libtinfo.so.6
# Shows GLIBC versions 2.2.5 through 2.33
- Examined toolchain binary:
$ readelf -V ~/CEdev/bin/ez80-clang | grep VERNEED
# No VERNEED entries found
The issue appears to be distribution-specific, possibly due to differences in how libtinfo is built between Ubuntu and Fedora. The toolchain binary expects version information that isn't present in Fedora's libtinfo, despite having a compatible version (6.5).
Currently using a wrapper script to filter out the warnings:
#!/bin/bash
TOOL_PATH="$(cedev-config --prefix)/bin/${CMD_NAME}"
exec 3>&2
"$TOOL_PATH" "$@" 2> >(grep -v "libtinfo.so.6: no version information available" >&3)
exec 3>&-
Is this a known issue with Fedora systems? Would it be possible to build the toolchain with different libtinfo linking options to avoid these warnings? Or is there a current workaround that I'm missing.