Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555264 - distcc-3.1-r10 fails to compile on native armv7a-hardfloat-linux-gnueabi with error "this linker was not configured to use sysroots"
Summary: distcc-3.1-r10 fails to compile on native armv7a-hardfloat-linux-gnueabi with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-18 12:04 UTC by James Bates
Modified: 2015-07-18 16:02 UTC (History)
1 user (show)

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


Attachments
emerge build.log for distcc-3.1-r10 on native armv7a-hardfloat-linux-gnueabi (build.log,144.34 KB, text/x-log)
2015-07-18 12:04 UTC, James Bates
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Bates 2015-07-18 12:04:24 UTC
Created attachment 407072 [details]
emerge build.log for distcc-3.1-r10 on native armv7a-hardfloat-linux-gnueabi

Attempting to compile distcc-3.1-r10 on an RPI2 B (armv7a) using native gcc (4.8.4) and binutils (2.24-r3), the following error occurs:

{code}
armv7a-hardfloat-linux-gnueabi-gcc -shared --sysroot /opt/armv7a-hardfloat-linux-gnueabi -L. -Wl,-O1 -Wl,--as-needed -O2 -mtune=cortex-a7 -fomit-frame-pointer -MD -W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wuninitialized -pthread -Wno-missing-prototypes -Wno-missing-declarations -Wno-write-strings -Wp,-U_FORTIFY_SOURCE -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR=/etc -DICONDIR=/usr/share/pixmaps -Isrc -I./src -I./lzo ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/clirpc.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/clinet.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/state.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/srvrpc.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/pump.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/rpc.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/io.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/include_server_if.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/trace.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/snprintf.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/util.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/tempfile.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/filename.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/bulk.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/sendfile.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/compress.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/argutil.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/cleanup.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/emaillog.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/timeval.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/src/netutil.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/lzo/minilzo.o ./_include_server/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1/include_server/c_extensions/distcc_pump_c_extensions_module.o -L/usr/lib -lpython2.7 -o ./_include_server/lib.linux-armv7l-2.7/include_server/distcc_pump_c_extensions.so
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status
error: command 'armv7a-hardfloat-linux-gnueabi-gcc' failed with exit status 1
Makefile:560: recipe for target 'include-server' failed
make: *** [include-server] Error 1
 * ERROR: sys-devel/distcc-3.1-r10::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/distcc-3.1-r10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/distcc-3.1-r10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/distcc-3.1-r10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/distcc-3.1-r10/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1'
 * S: '/var/tmp/portage/sys-devel/distcc-3.1-r10/work/distcc-3.1'
{code}



Complete build.log is attached.

emerge --info sais the following:

{code}
james@raspberry:~$ emerge --info
Portage 2.2.20 (python 2.7.9-final-0, default/linux/arm/13.0/armv7a/desktop, gcc-4.8.4, glibc-2.20-r2, 3.18.11-v7+ armv7l)
=================================================================
System uname: Linux-3.18.11-v7+-armv7l-with-gentoo-2.2
KiB Mem:      949408 total,    408484 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 16 Jul 2015 22:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -mtune=cortex-a7 -fomit-frame-pointer"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
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 -mtune=cortex-a7 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa arm armv5te armv6 armv6t2 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac gdbm gif git glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds readline sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets xcb xml xv xvid 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" CURL_SSL="openssl" 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="evdev 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="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
{code}
Comment 1 James Bates 2015-07-18 16:02:48 UTC
Issue is apparently due to python, which builds the include_server. Although binutils and gcc were natively compiled on the arm, python was still a cross-compiled version, which remained from building the original stage3. recompiling python natively first solves the issue.