Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601530 - sys-apps/util-linux: cross-compiling uses wrong ncurses config script to find libs/headers
Summary: sys-apps/util-linux: cross-compiling uses wrong ncurses config script to find...
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: https://marc.info/?l=util-linux-ng&m=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-03 16:44 UTC by Alex Barker
Modified: 2019-02-23 05:21 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,642.96 KB, text/plain)
2016-12-03 16:45 UTC, Alex Barker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2016-12-03 16:44:37 UTC
/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabihf/ld: skipping incompatible /usr/lib64/libncursesw.so when searching for -lncursesw
/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabihf/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
/usr/lib64/libc.a: error adding symbols: File format not recognized


Should be looking at /usr/armv7a-hardfloat-linux-gnueabihf/usr/lib


Reproducible: Always

Steps to Reproduce:
Portage 2.3.0 (python 2.7.12-final-0, default/linux/arm/13.0/armv7a, gcc-5.4.0, unavailable, 4.4.26-gentoo x86_64)
=================================================================
System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:     6105352 total,   4406320 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sat, 03 Dec 2016 04:45:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.27 p1.0) 2.27
dev-lang/python: 2.7.12::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=armv7-a -Os -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -pipe"
CHOST="armv7a-hardfloat-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf"
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="-march=armv7-a -Os -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/armv7a-hardfloat-linux-gnueabihf/packages/"
PORTAGE_CONFIGROOT="/usr/armv7a-hardfloat-linux-gnueabihf/"
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="/usr/armv7a-hardfloat-linux-gnueabihf/tmp/"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre python2 readline seccomp session ssl tcpd unicode xattr 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alex Barker 2016-12-03 16:45:24 UTC
Created attachment 454998 [details]
build.log
Comment 2 Alex Barker 2016-12-03 16:51:41 UTC
Work around: CFLAGS=-L/usr/armv7a-hardfloat-linux-gnueabihf/usr/lib CXXFLAGS=-L/usr/armv7a-hardfloat-linux-gnueabihf/usr/lib  armv7a-hardfloat-linux-gnueabihf-emerge -av util-linux
Comment 3 SpanKY gentoo-dev 2016-12-10 17:35:40 UTC
upstream decided to revert back to using xxx-config scripts for ncurses detection to support old/broken distros.
https://marc.info/?l=util-linux-ng&m=147696120915818&w=2

i've hacked it back on our side:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4069d08937d971ffc25446db46c326192937ebe0