Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble with the Gold Linker on Freshly Unpacked musl-stage3
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message

Joined: 09 May 2016
Posts: 1

PostPosted: Tue May 10, 2016 12:56 am    Post subject: Trouble with the Gold Linker on Freshly Unpacked musl-stage3 Reply with quote

I had been having trouble with in a previous stage3 chroot, and so I decided to delete that install and unpack the tarball again.
On this fresh install I made sure to follow the amd64 handbook to the letter, up to updating the system, before doing so I followed instructions on adding the musl overlay to portage, and finally set the linker to as described by this guide.

Upon executing "emerge -uDN @world" emerge failed when configuring one of the first few packages, I think it was curl. What I do distinctly remember is being distressed at the fact that it spat out the exact same error message as the previous stage3 chroot had when I attempted to switch linkers.

After trying "emerge -e @world" and having that fail upon configuring the very first package, xz-utils, I am now here.

All packages would fail with "Cannot run C compiled programs" in the configuration stage, both new and old install alike.
The only packages that would install successfully I noticed were those that didn't print their configuration to stdout, Error and a few perl packages.

Here's xz-utils' emerge --info:

Portage 2.2.26 (python 2.7.10-final-0, hardened/linux/musl/amd64, gcc-4.9.3, musl-1.1.14, 4.1.15-gentoo-r1 x86_64)
                         System Settings
System uname: Linux-4.1.15-gentoo-r1-x86_64-AMD_E-450_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     3647508 total,   3069276 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 09 May 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r99::musl
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3-r99::musl
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.16::musl (virtual/os-headers)
sys-libs/musl:            1.1.14::gentoo

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

    location: /var/lib/layman/musl
    masters: gentoo
    priority: 0

CFLAGS="-O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
FCFLAGS="-O2 -pipe"
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 xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="amd64 bindist cli cracklib crypt cxx dri fortran iconv ipv6 mmx modules ncurses nls nptl openmp pax_kernel pcre pic readline seccomp session sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" 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" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="musl" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev 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"

                        Package Settings

app-arch/xz-utils-5.2.2::gentoo was built with the following:
USE="nls threads -static-libs"

And emerge -pqv:

[ebuild   R   ] app-arch/xz-utils-5.2.2  USE="nls threads -static-libs"

And the build.log:

 * Package:    app-arch/xz-utils-5.2.2
 * Repository: gentoo
 * Maintainer:
 * USE:        abi_x86_64 amd64 elibc_musl kernel_linux nls threads userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking xz-5.2.2.tar.gz to /var/tmp/portage/app-arch/xz-utils-5.2.2/work
>>> Source unpacked in /var/tmp/portage/app-arch/xz-utils-5.2.2/work
>>> Preparing source in /var/tmp/portage/app-arch/xz-utils-5.2.2/work/xz-5.2.2 ...
 * Running elibtoolize in: xz-5.2.2/
 * Running elibtoolize in: xz-5.2.2/build-aux/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-arch/xz-utils-5.2.2/work/xz-5.2.2 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * econf: updating xz-5.2.2/build-aux/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating xz-5.2.2/build-aux/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/app-arch/xz-utils-5.2.2/work/xz-5.2.2/configure --prefix=/usr --build=x86_64-gentoo-linux-musl --host=x86_64-gentoo-linux-musl --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --libdir=/usr/lib --enable-nls --enable-threads --disable-static

XZ Utils 5.2.2

System type:
checking build system type... x86_64-gentoo-linux-musl
checking host system type... x86_64-gentoo-linux-musl

Configure options:
checking if debugging code should be compiled... no
checking which encoders to build... lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
checking which decoders to build... lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
checking which match finders to build... hc3 hc4 bt2 bt3 bt4
checking which integrity checks to build... crc32 crc64 sha256
checking if assembler optimizations should be used... x86_64
checking if small size is preferred over speed... no
checking if threading support is wanted... yes, posix
checking how much RAM to assume if the real amount is unknown... 128 MiB
checking if library symbol versioning should be used... no

checking for a shell that conforms to POSIX... /bin/sh

Initializing Automake:
checking for a BSD-compatible install... /var/tmp/portage/._portage_reinstall_.eucBLl/bin/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking for style of include used by make... GNU
checking for x86_64-gentoo-linux-musl-gcc... x86_64-gentoo-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/var/tmp/portage/app-arch/xz-utils-5.2.2/work/xz-5.2.2-abi_x86_64.amd64':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-arch/xz-utils-5.2.2/work/xz-5.2.2-abi_x86_64.amd64/config.log
 * ERROR: app-arch/xz-utils-5.2.2::gentoo failed (configure phase):
 *   econf failed
 * Call stack:
 *     , line  133:  Called src_configure
 *             environment, line 2734:  Called multilib-minimal_src_configure
 *             environment, line 2027:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 2241:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1957:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1955:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  350:  Called multilib-minimal_abi_src_configure
 *             environment, line 2021:  Called multilib_src_configure
 *             environment, line 2454:  Called econf '--enable-nls' '--enable-threads' '--disable-static'
 *, line  662:  Called __helpers_die 'econf failed'
 *, line  117:  Called die
 * The specific snippet of code:
 *         die "$@"
 * If you need support, post the output of `emerge --info '=app-arch/xz-utils-5.2.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-arch/xz-utils-5.2.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-arch/xz-utils-5.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-arch/xz-utils-5.2.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-arch/xz-utils-5.2.2/work/xz-5.2.2-abi_x86_64.amd64'
 * S: '/var/tmp/portage/app-arch/xz-utils-5.2.2/work/xz-5.2.2'

I haven't altered any of the default CFLAGS or USE flags.
The only addition I made to make.conf was to appended the instruction to source the musl overlay.

Thanks for taking the time to read.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum