Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge glibc fails
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
ngorelen
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2019
Posts: 76
Location: Princeton, NJ

PostPosted: Sat Jan 12, 2019 2:23 pm    Post subject: emerge glibc fails Reply with quote

Hi there,
i have a problem that accidently i installed the glibc library with these flags on a x86_64 system:
USE="multiarch (multilib) -audit -caps (-compile-locales) -doc -gd (-hardened) -headers-only -nscd -profile (-selinux) -suid -systemtap (-vanilla)" 0 KiB

also emerge -s glibc gives:
Code:
* sys-libs/glibc
Latest version available: 2.27-r6
Latest version installed: 2.25-r11
Size of files: 17б═534 KiB
Homepage: https://www.gnu.org/software/libc/
Description: GNU libc C library
License: LGPL-2.1+ BSD HPND ISC inner-net rc PCRE


The rest of the system info is below.
Now, i can upgrade the system only if i exclude glibc. If i include glibc i am getting errors like this:


....
Code:
<stdin>:30:92: error: invalid use of undefined type 'struct La_x86_64_retval'
<stdin>:31:92: error: invalid use of undefined type 'struct La_x86_64_retval'
<stdin>:33:89: error: invalid use of undefined type 'struct La_x86_64_retval'
<stdin>:34:89: error: invalid use of undefined type 'struct La_x86_64_retval'
make[2]: *** [../Makerules:281: /tmp/portage/portage/sys-libs/glibc-2.27-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/link-defines.h] Error 1
make[2]: *** [../Makerules:281: /tmp/portage/portage/sys-libs/glibc-2.27-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/rtld-offsets.h] Error 1
make[2]: *** [../Makerules:281: /tmp/portage/portage/sys-libs/glibc-2.27-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/tlsdesc.h] Error 1
make[2]: *** [../Makerules:281: /tmp/portage/portage/sys-libs/glibc-2.27-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/cpu-features-offsets.h] Error 1
make[2]: Leaving directory '/tmp/portage/portage/sys-libs/glibc-2.27-r6/work/glibc-2.27/csu'
make[1]: *** [Makefile:216: csu/subdir_lib] Error 2
make[1]: Leaving directory '/tmp/portage/portage/sys-libs/glibc-2.27-r6/work/glibc-2.27'
make: *** [Makefile:9: all] Error 2
make: Leaving directory '/tmp/portage/portage/sys-libs/glibc-2.27-r6/work/build-x86-x86_64-pc-linux-gnu-nptl'
* ERROR: sys-libs/glibc-2.27-r6::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-libs/glibc-2.27-r6::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.27-r6::gentoo'`.
* The complete build log is located at '/tmp/portage/portage/sys-libs/glibc-2.27-r6/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/portage/sys-libs/glibc-2.27-r6/temp/environment'.
* Working directory: '/tmp/portage/portage/sys-libs/glibc-2.27-r6/work/glibc-2.27'
* S: '/tmp/portage/portage/sys-libs/glibc-2.27-r6/work/glibc-2.27'

>>> Failed to emerge sys-libs/glibc-2.27-r6, Log file:

>>>  '/tmp/portage/portage/sys-libs/glibc-2.27-r6/temp/build.log'

* Messages for package sys-libs/glibc-2.27-r6:

* Applying Gentoo Glibc Patchset 2.27-3
* ERROR: sys-libs/glibc-2.27-r6::gentoo failed (compile phase):
* emake failed

.....

Is there a way to upgrade glibc (and world together)? I understand that installed glibc has dual support for 32 and 64 flags, and the glibc in that system does not want go to "64 only".

I also know that people recommend to install everything from CD (scratch).
One idea came to me that i install glibc using binary rpm. I did not do this yet though. Is it something which makes sense?
If so can you point me to a specific rpm which would include lib32 and lib64? and would be compatible with my system?

Thank you, Nikolai.




Code:
emerge --info
Portage 2.3.51 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, unavailable, 4.14.83-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.14.83-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-gentoo-2.6
KiB Mem: 8109568 total, 701140 free
KiB Swap: 10485756 total, 10482164 free
Timestamp of repository gentoo: Wed, 02 Jan 2019 15:00:01 +0000
Head commit of repository gentoo: 9fca6dca67e7864181223dfa344586970793a943
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash: 4.4_p12::gentoo
dev-lang/perl: 5.24.3-r1::gentoo
dev-lang/python: 2.7.15::gentoo, 3.4.8::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.38.3-r1::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.30-r4::gentoo
sys-devel/gcc: 6.4.0-r1::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config: 2.0::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: no
sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LANG="ru_RU.KOI8-R"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp/portage"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emacs emboss encode exif extras fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg jpeg2k kde kipi kwallet latex lcms ldap libkms libnotify libtirpc lyx mad mmx mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds python qml qt5 readline sdl seccomp semantic-desktop spell sql sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis webkit widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid 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="karbon plan sheets words" 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="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 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


[Moderator edit: added [code] tags to preserve output layout, although most of the layout seems to have been pre-stripped. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Sat Jan 12, 2019 4:28 pm    Post subject: Re: emerge glibc fails Reply with quote

ngorelen welcome to gentoo forums!

ngorelen wrote:
Hi there,
i have a problem that accidently i installed the glibc library with these flags on a x86_64 system:
USE="multiarch (multilib) -audit -caps (-compile-locales) -doc -gd (-hardened) -headers-only -nscd -profile (-selinux) -suid -systemtap (-vanilla)" 0 KiB

Sorry I don't undestand, these use flags are correct for a x86_64 system
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54239
Location: 56N 3W

PostPosted: Sun Jan 13, 2019 8:39 am    Post subject: Reply with quote

ngorelen,

Welcome to the forums.

Code:
emerge --info
Portage 2.3.51 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, unavailable, 4.14.83-gentoo x86_64)

That unavailable is a bad sign. It should be glibc-<version>

Your glibc is not totally broken as its required to start your system, so those bits must be OK.

Make friends with wgetpaste and use it to post /tmp/portage/portage/sys-libs/glibc-2.27-r6/temp/build.log which is the entire build log.

From
Code:
Latest version available: 2.27-r6
Latest version installed: 2.25-r11
suggests the install phase failed.

You cannot install from an RPM but you can install a Gentoo binary that you obtain from a trusted source or build for yourself.
Lets see your build log before we go down that path. Knowing what went wrong is the first step to making sure it won't happen again.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ngorelen
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2019
Posts: 76
Location: Princeton, NJ

PostPosted: Tue Jan 15, 2019 6:49 pm    Post subject: Reply with quote

Thank you NeddySeagoon,
i meant rpm of the binaries which i was using to make tar of those binaries and extract them.

Anyways, I decided to reinstall the whole system. It is not a big deal, although i would have some time for that in a couple of months. I was happy with the computer except one thing which is glibc.

At emerge glibc I am getting error messages shown in my first post.

From your point of view (or others?) does the following make.conf file make sense? Or you would recommend to modify it.
I don't remember how i set ABI_X86="64" or ABI_X86="64 32" at the beginning when i was installing glibc. I suspect i had ABI_X86="64 32" and now i can not emerge glibc with "64" only,

Thanks, Nikolai.



Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
CHOST_x86="x86_64-pc-linux-gnu"
MAKEOPTS="-j8"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.        qt4? kde qt4 qt3support -gtk  bindist
USE="X mmx sse sse2 ssl -gnome dvd alsa cdr webkit svg\
     sql extras policykit png opengl python dbus consolekit mng ogg\
     vorbis libkms fortran udev jpeg jpeg2k latex emacs lyx unicode \
     glamor acl -qt4"
FEATURES="-preserve-libs"
REQUIRED_USE=qt5
PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" #python3_4 python3_5  python3_6 gives big problems
PYTHON_SINGLE_TARGET="python3_6"
LINGUAS="en ru"
INPUT_DEVICES="evdev"
VIDEO_CARDS="radeon radeonsi amdgpu" #  amdgpu radeonsi
RUBY_TARGETS="ruby22 ruby23"
# Accept any license
ACCEPT_LICENSE="*"
#ABI_X86="64" # 32 gives problems when using both: abi_x86_64 abi_x86_32

GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo"

# Set PORTDIR for backward compatibility with various tools:
#   gentoo-bashcomp - bug #478444
#   euse - bug #474574
#   euses and ufed - bug #478318
PORTAGE_TMPDIR="/tmp/portage"
PORTDIR="/usr/portage"
SEARCH_DIRS_MASK="/usr/lib64/openoffice/ /usr/local/bin/zoom/"   # /usr/X11R6/lib/openoffice/

GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo"


[Moderator edit: added [code] tags to preserve output layout. -Hu]
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