Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge errors - emake failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
klz-0
n00b
n00b


Joined: 17 Mar 2018
Posts: 8

PostPosted: Sat Mar 17, 2018 6:04 pm    Post subject: Emerge errors - emake failed Reply with quote

Hi everyone,
I was trying to update a pretty much outdated system with:

Code:
emerge --ask -e @world


Then some errors occured:

Code:

Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/dev/shm/portage/sys-libs/glibc-2.25-r10/work/build-x86-x86_64-pc-linux-gnu-nptl'
 * ERROR: sys-libs/glibc-2.25-r10::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r10::gentoo'`.
 * The complete build log is located at '/dev/shm/portage/sys-libs/glibc-2.25-r10/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/sys-libs/glibc-2.25-r10/temp/environment'.
 * Working directory: '/dev/shm/portage/sys-libs/glibc-2.25-r10/work/glibc-2.25'
 * S: '/dev/shm/portage/sys-libs/glibc-2.25-r10/work/glibc-2.25'
/dev/shm/portage/sys-libs/glibc-2.25-r10/temp/environment: line 107: warning: setlocale: LC_NUMERIC: cannot change locale (sk_SK.UTF-8)
/dev/shm/portage/sys-libs/glibc-2.25-r10/temp/environment: line 110: warning: setlocale: LC_TIME: cannot change locale (sk_SK.UTF-8)

>>> Failed to emerge sys-libs/glibc-2.25-r10, Log file:

>>>  '/dev/shm/portage/sys-libs/glibc-2.25-r10/temp/build.log'

 * Messages for package sys-boot/grub-0.97-r18:

 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.

 * Messages for package sys-libs/glibc-2.25-r10:

 * ERROR: sys-libs/glibc-2.25-r10::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r10::gentoo'`.
 * The complete build log is located at '/dev/shm/portage/sys-libs/glibc-2.25-r10/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/sys-libs/glibc-2.25-r10/temp/environment'.
 * Working directory: '/dev/shm/portage/sys-libs/glibc-2.25-r10/work/glibc-2.25'
 * S: '/dev/shm/portage/sys-libs/glibc-2.25-r10/work/glibc-2.25'
work ~ # emerge --info '=sys-libs/glibc-2.25-r10::gentoo'


Here is the output of
Code:
emerge --info '=sys-libs/glibc-2.25-r10::gentoo


Code:

setlocale: unsupported locale setting
setlocale: unsupported locale setting
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/17.0, gcc-5.4.0, glibc-2.22-r4, 4.9.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.0-gentoo-x86_64-AMD_Sempron-tm-_Processor_3000+-with-gentoo-2.3
KiB Mem:     1498380 total,    389804 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 19 Feb 2018 19:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.7.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/mnt/distfiles"
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"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/mnt/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 --exclude=/.git"
PORTAGE_TMPDIR="/dev/shm/"
USE="acl amd64 audiofile berkdb bzip2 cli crypt cxx dri fam flac fortran gdbm iconv kerberos mmx modules multilib ncurses nls nptl openmp openssl pam pcre readline seccomp sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" 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 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Please help me with that, I can't figure out how to properly update a very outdated system :(
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Mar 17, 2018 6:21 pm    Post subject: Reply with quote

You did not post the error, leaving us guessing. One thing for sure, with 1.5 GB of RAM and no swap you do not want portage tempdir in RAM and MAKEOPTS=-j3.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
klz-0
n00b
n00b


Joined: 17 Mar 2018
Posts: 8

PostPosted: Sat Mar 17, 2018 9:41 pm    Post subject: Reply with quote

Ok, I found this in the tail of the build log (which has 100 000+ lines, so putting it there would be impossible.) Seems like its missing 'GLIBC_2.15' while installing glibc-2.25 .. Can someone point out a reason why this is happening (maybe a solution how to fix it)

This update was made after a profile change from default/linux/amd64/13.0 to default/linux/amd64/17.0, may the problem come from that?

PS: I lowered the MAKEOPTS to -j1 and added swap space, thanks for pointing that out

Code:
/dev/shm/portage/sys-libs/glibc-2.25-r10/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: /lib32/libc.so.6: version `GLIBC_2.15' not found (required by /usr/lib32/libsandbox.so)


Last edited by klz-0 on Fri Mar 23, 2018 7:05 am; edited 2 times in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sat Mar 17, 2018 10:02 pm    Post subject: Reply with quote

Quote:
This update was made after a profile change from default/linux/amd64/13.0 to default/linux/amd64/17.0, may the problem come from that?

AFTER you switched the profile and BEFORE you started 'emerge -e world': did you perform the steps recommended in the news item?
Code:
Re-emerge, in this sequence, gcc, binutils, and glibc
    emerge -1 sys-devel/gcc:6.4.0
    emerge -1 sys-devel/binutils
    emerge -1 sys-libs/glibc

If you haven't read the news item (2017-11-30-new-17-profiles) yet: please read it.

Furthermore: if you have a very old system, it may be helpful to update the system BEFORE you switch the profile.
Back to top
View user's profile Send private message
klz-0
n00b
n00b


Joined: 17 Mar 2018
Posts: 8

PostPosted: Fri Mar 23, 2018 7:04 am    Post subject: Reply with quote

Neither of them works, because emerge tries to install glibc which fails with `GLIBC_2.15' not found

Code:
work ~ # strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_PRIVATE

Code:
work ~ # strings /lib32/libc.so.6 | grep GLIBC
GLIBC_2.0
GLIBC_2.1
GLIBC_2.1.1
GLIBC_2.1.2
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.2.1
GLIBC_2.2.2
GLIBC_2.2.3
GLIBC_2.2.4
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_PRIVATE


It seems that the GLIBC_2.15 is only present in /lib64/libc.so.6 but the installation requires it from /lib32/libc.so.6 which causes the `GLIBC_2.15' not found error.
How can I set which libc.so.6 will be used ?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21624

PostPosted: Sat Mar 24, 2018 4:21 pm    Post subject: Reply with quote

In this case, you cannot, because those two are not interchangeable. One is for 64-bit processes. The other is for 32-bit processes. If you did manage to force a 32-bit process to directly use the 64-bit libc, it would fail in some other way.

On principle, I am reluctant to recommend the below, but it might get you past this. It might have other unwanted side effects. That said, since your specific reported problem is that the sandbox cannot use your 32-bit libc, you could try disabling use of the sandbox for this one build. Generally, you should leave sandbox enabled unless you have a very good reason to disable it, which is why I dislike suggesting you disable it here. You could also try rebuilding sandbox if you have not done that, but I doubt that will help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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