Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 804354 - sys-libs/ncurses-6.2_p20210123: ld: ERROR: Do not call unprefixed tools directly.
Summary: sys-libs/ncurses-6.2_p20210123: ld: ERROR: Do not call unprefixed tools direc...
Status: RESOLVED NEEDINFO
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-07-26 07:07 UTC by Ye
Modified: 2022-05-06 18:45 UTC (History)
3 users (show)

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


Attachments
Build logs (sys-libs:ncurses-6.2_p20210123:20210726-064742.log,20.84 KB, text/plain)
2021-07-26 07:07 UTC, Ye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ye 2021-07-26 07:07:38 UTC
Created attachment 727029 [details]
Build logs

When emerging, ecof uses unprefixed LD and causes ERROR.
Add the build log as an attachment.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-26 07:10:27 UTC
- Is the build log truncated? It seems to be. Please include the full build.log that emerge mentions at the end of a failed installation.

- Include emerge --info.

- Are you using gcc-config[-native-symlinks] (and/or the same for binutils-config)? If so, things like this do tend to break, but of course, they should be fixed.
Comment 2 Ye 2021-07-26 07:51:20 UTC
Portage 3.0.12 (python 3.7.9-final-0, !/var/db/repos/gentoo/profiles/default/linux/riscv/17.0/rv64gc/lp64, gcc-10.2.0, glibc-2.33-r1, 5.10.6-200.0.riscv64.fc33.riscv64 riscv64)
=================================================================
System uname: Linux-5.10.6-200.0.riscv64.fc33.riscv64-riscv64-with-gentoo-2.7
KiB Mem:    65847920 total,  65138812 free
KiB Swap:          0 total,         0 free
sh bash 5.1
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
ccache version 4.1 [disabled]
app-shells/bash:          5.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.7.9-r1::gentoo, 3.8.11::gentoo, 3.9.1::gentoo
dev-util/ccache:          4.1::gentoo
dev-util/cmake:           3.19.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo, 2.36.1-r1::gentoo
sys-devel/gcc:            10.2.0-r4::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 0
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="riscv ~riscv"
ACCEPT_LICENSE="* -@EULA -@CHROMEOS"
CBUILD="riscv64-unknown-linux-gnu"
CC="riscv64-unknown-linux-gnu-gcc"
CFLAGS="-O2 -pipe -mabi=lp64 -march=rv64gc"
CHOST="riscv64-unknown-linux-gnu"
CONFIG_PROTECT="/usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mabi=lp64 -march=rv64gc"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--oneshot --autounmask-backtrack=y --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://commondatastorage.googleapis.com/chromeos-localmirror https://commondatastorage.googleapis.com/chromeos-mirror/gentoo"
INSTALL_MASK="   /usr/lib*/*.la   /etc/init.d /etc/conf.d   /etc/logrotate.d "
LANG="C.UTF8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/var/lib/portage/pkgs"
PORTAGE_BUNZIP2_COMMAND="pbunzip2 --ignore-trailing-garbage=1"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl bzip2 cracklib crypt cxx dri fortran iconv ipv6 llvm-libunwind modules mudflap ncurses nls nptl nptlonly openmp python readline riscv ssl sysfs unicode xorg zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_8 python3_6" PYTHON_TARGETS="python3_6 python3_7 python3_8 python3_9 python3_10" RUBY_TARGETS="ruby25" TTY_CONSOLE="tty2" USERLAND="GNU" VIDEO_CARDS="v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, CXX, ENV_UNSET, LC_ALL, PORTAGE_BINHOST, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 3 Ye 2021-07-26 07:57:53 UTC
ERROR info:

 * ld: ERROR: Do not call unprefixed tools directly.
 * ld: ERROR: For board tools, use `tc-export LD` (or ${CHOST}-ld).
 * ld: ERROR: For build-time-only tools, `tc-export BUILD_LD` (or ${CBUILD}-ld).
 * bash
 *   `-emerge -b /usr/lib/python-exec/python3.7/emerge -uNv --with-bdeps=y --deep sys-libs/ncurses
 *       `-sandbox /usr/lib/portage/python3.7/ebuild.sh configure
 *           `-ebuild.sh /usr/lib/portage/python3.7/ebuild.sh configure
 *               `-ebuild.sh /usr/lib/portage/python3.7/ebuild.sh configure
 *                   `-configure /var/tmp/portage/sys-libs/ncurses-6.2_p20210123/work/ncurses-6.2/configure --prefix=/usr --build=riscv64-unknown-linux-gnu --host=riscv64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64/lp64 --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo --enable-pc-files --with-pkg-config-libdir=/usr/lib64/lp64/pkgconfig --with-shared --without-hashed-db --without-ada --with-cxx --with-cxx-binding --with-cxx-shared --without-debug --without-profile --without-gpm --disable-term-driver --disable-termcap --enable-symlinks --with-rcs-ids --with-manpage-format=normal --enable-const --enable-colorfgbg --enable-hard-tabs --enable-echo --enable-warnings --without-assertions --enable-leaks --without-expanded --with-macros --with-progs --without-tests --without-trace --without-termlib --disable-stripping --disable-pkg-ldflags --disable-widec --without-pthread --without-reentrant --includedir=/usr/include/cross --without-shared --with-normal
 *                       `-configure /var/tmp/portage/sys-libs/ncurses-6.2_p20210123/work/ncurses-6.2/configure --prefix=/usr --build=riscv64-unknown-linux-gnu --host=riscv64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64/lp64 --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo --enable-pc-files --with-pkg-config-libdir=/usr/lib64/lp64/pkgconfig --with-shared --without-hashed-db --without-ada --with-cxx --with-cxx-binding --with-cxx-shared --without-debug --without-profile --without-gpm --disable-term-driver --disable-termcap --enable-symlinks --with-rcs-ids --with-manpage-format=normal --enable-const --enable-colorfgbg --enable-hard-tabs --enable-echo --enable-warnings --without-assertions --enable-leaks --without-expanded --with-macros --with-progs --without-tests --without-trace --without-termlib --disable-stripping --disable-pkg-ldflags --disable-widec --without-pthread --without-reentrant --includedir=/usr/include/cross --without-shared --with-normal
 *                           `-ld /var/tmp/portage/sys-libs/ncurses-6.2_p20210123/temp/build-toolchain-wrappers/ld --verbose
 *                               `-pstree -a -A -s -l 4420
 * ERROR: sys-libs/ncurses-6.2_p20210123::gentoo failed (configure phase):
 *   Bad ld [--verbose] invocation
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/ncurses-6.2_p20210123::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/ncurses-6.2_p20210123::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-libs:ncurses-6.2_p20210123:20210726-074345.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/ncurses-6.2_p20210123/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/ncurses-6.2_p20210123/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/ncurses-6.2_p20210123/work/cross'
 * S: '/var/tmp/portage/sys-libs/ncurses-6.2_p20210123/work/ncurses-6.2'
Comment 4 Ye 2021-07-26 07:58:59 UTC
(In reply to Sam James from comment #1)
> - Is the build log truncated? It seems to be. Please include the full
> build.log that emerge mentions at the end of a failed installation.
> 
> - Include emerge --info.
> 
> - Are you using gcc-config[-native-symlinks] (and/or the same for
> binutils-config)? If so, things like this do tend to break, but of course,
> they should be fixed.

Yes, the build log is truncated at errors, I attach the issue info at comments.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-26 08:00:45 UTC
[08:27:20]  <+gyakovlev> ycao: sounds like chromeos message to me.
[08:27:20]  <+gyakovlev> I think it's environment substitutes generic ld with a script that simply dies with that message.
[08:27:20]  <+gyakovlev> you just need to make sure the build calls ld profixed with proper host triple.
[08:28:28]  <+gyakovlev> it errors out probably because something ignores LD variable
[08:28:47]  <+gyakovlev> so you need to check source/makefiles/otherbuildfiles that hardcodes ld invocations
[08:28:53]  <+gyakovlev> and not uses LD envvar
[08:51:57]  <+sam_> ycao: are you using chromeos?
[08:52:14]  <+sam_> you're using an extremely old portage+python
[08:52:25]  <+sam_> and perl
[08:52:36]  <+sam_> generally it's polite to mention if you're not using "normal" gentoo
[08:52:48]  <+sam_> we've had various problems in the past with google eclass overrides
[08:52:52]  <+sam_> it's ok to use chromeos, just tell us so we know to debug it
[08:53:44]  <+sam_> (and yes it does sound like that message)
[08:54:00]  <+sam_> unfortunately didn't answer my other questions yet https://bugs.gentoo.org/804354#c1
[08:54:06]  <+sam_> the profile symlink needs fixing too

So, I think we still need the full build.log.
Comment 6 Ye 2021-07-26 08:10:34 UTC
(In reply to Sam James from comment #5)
> [08:27:20]  <+gyakovlev> ycao: sounds like chromeos message to me.
> [08:27:20]  <+gyakovlev> I think it's environment substitutes generic ld
> with a script that simply dies with that message.
> [08:27:20]  <+gyakovlev> you just need to make sure the build calls ld
> profixed with proper host triple.
> [08:28:28]  <+gyakovlev> it errors out probably because something ignores LD
> variable
> [08:28:47]  <+gyakovlev> so you need to check
> source/makefiles/otherbuildfiles that hardcodes ld invocations
> [08:28:53]  <+gyakovlev> and not uses LD envvar
> [08:51:57]  <+sam_> ycao: are you using chromeos?
> [08:52:14]  <+sam_> you're using an extremely old portage+python
> [08:52:25]  <+sam_> and perl
> [08:52:36]  <+sam_> generally it's polite to mention if you're not using
> "normal" gentoo
> [08:52:48]  <+sam_> we've had various problems in the past with google
> eclass overrides
> [08:52:52]  <+sam_> it's ok to use chromeos, just tell us so we know to
> debug it
> [08:53:44]  <+sam_> (and yes it does sound like that message)
> [08:54:00]  <+sam_> unfortunately didn't answer my other questions yet
> https://bugs.gentoo.org/804354#c1
> [08:54:06]  <+sam_> the profile symlink needs fixing too
> 
> So, I think we still need the full build.log.

Yes I'm right now use chromeos, but I try replace the old portage myself, currently synced from usptream. I'm also think about adding LD envvar manually, but adding in the profile/make.defaults doesn't work, do you have some idea?

Sorry, actually the attachment is the full build.log, I copyed from the link the emerge mentioned.
Comment 7 Ye 2021-07-26 08:12:06 UTC
(In reply to Ye from comment #6)
> (In reply to Sam James from comment #5)
> > [08:27:20]  <+gyakovlev> ycao: sounds like chromeos message to me.
> > [08:27:20]  <+gyakovlev> I think it's environment substitutes generic ld
> > with a script that simply dies with that message.
> > [08:27:20]  <+gyakovlev> you just need to make sure the build calls ld
> > profixed with proper host triple.
> > [08:28:28]  <+gyakovlev> it errors out probably because something ignores LD
> > variable
> > [08:28:47]  <+gyakovlev> so you need to check
> > source/makefiles/otherbuildfiles that hardcodes ld invocations
> > [08:28:53]  <+gyakovlev> and not uses LD envvar
> > [08:51:57]  <+sam_> ycao: are you using chromeos?
> > [08:52:14]  <+sam_> you're using an extremely old portage+python
> > [08:52:25]  <+sam_> and perl
> > [08:52:36]  <+sam_> generally it's polite to mention if you're not using
> > "normal" gentoo
> > [08:52:48]  <+sam_> we've had various problems in the past with google
> > eclass overrides
> > [08:52:52]  <+sam_> it's ok to use chromeos, just tell us so we know to
> > debug it
> > [08:53:44]  <+sam_> (and yes it does sound like that message)
> > [08:54:00]  <+sam_> unfortunately didn't answer my other questions yet
> > https://bugs.gentoo.org/804354#c1
> > [08:54:06]  <+sam_> the profile symlink needs fixing too
> > 
> > So, I think we still need the full build.log.
> 
> Yes I'm right now use chromeos, but I try replace the old portage myself,
> currently synced from usptream. I'm also think about adding LD envvar
> manually, but adding in the profile/make.defaults doesn't work, do you have
> some idea?
> 
> Sorry, actually the attachment is the full build.log, I copyed from the link
> the emerge mentioned.

Do you need some other env info? I think the cause might be my environment. Thanks!
Comment 8 matoro archtester 2022-05-06 18:43:15 UTC
Is this still something that's possible to address?  sys-libs/ncurses works fine for me on riscv, but I think all of these would need to be sorted to do anything with this one:

- truncated build.log
- broken profile symlink
- old portage version
- chromeos details

Is the reporter still around?