View previous topic :: View next topic |
Author |
Message |
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Tue Oct 07, 2014 5:03 am Post subject: Accidentally emerge -C'd openrc, am I screwed? |
|
|
Here are some of the errors when I try to emerge gcc.
/var/tmp/portage/sys-devel/gcc-4.8.3/temp/build.log
https://bpaste.net/show/d510ba2b220f
var/tmp/portage/sys-devel/gcc-4.8.3/temp/environment
https://bpaste.net/show/53a94d4ad496
Is this fixable or am I better off starting over with a fresh install?
I tried copying over lib64/rc/sh/functions.sh from a working backup but nothing. |
|
Back to top |
|
|
Freeky Tux's lil' helper
Joined: 11 Mar 2011 Posts: 129 Location: Novosibirsk, Russia
|
Posted: Tue Oct 07, 2014 5:30 am Post subject: |
|
|
build.log is too short. Quote: | [32;01m * [39;49;00mPackage: sys-devel/gcc-4.8.3
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: toolchain@gentoo.org
[32;01m * [39;49;00mUSE: abi_x86_64 amd64 cxx elibc_glibc fortran kernel_linux multilib nls nptl openmp policykit userland_GNU
[32;01m * [39;49;00mFEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking gcc-4.8.3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.8.3/work | Can you upload it one more time? |
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Tue Oct 07, 2014 5:59 am Post subject: |
|
|
Here it is after I emerged openrc & gcc from binary packages.
https://bpaste.net/show/3dac1786c5b7
Code: | # gcc-config 1
* Switching native-compiler to x86_64-pc-linux-gnu-4.8.3 ... [ ok ]
# gcc-config -l
[1] x86_64-pc-linux-gnu-4.8.3 *
|
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Tue Oct 07, 2014 6:38 am Post subject: |
|
|
Maybe there's something else. Do these commands work? If so, please, post the output.
Code: | $ ldd /usr/bin/gcc
$ gcc -v |
|
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Tue Oct 07, 2014 10:51 am Post subject: |
|
|
Code: | # ldd /usr/bin/gcc
linux-vdso.so.1 (0x00007ffffbfff000)
libc.so.6 => /lib64/libc.so.6 (0x00007f16296b9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1629a5f000)
# gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.2 p1.3r1, pie-0.5.8r1' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog
Thread model: posix
gcc version 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1)
|
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Tue Oct 07, 2014 11:08 am Post subject: |
|
|
Right, so you have a 4.8.2 compiler but portage thinks it is using 4.8.3.
Something is obviously messed up, and it could be due to leftovers from a previous installation or due to some manual out-of-portage patchwork you did. I can't possibly know.
The sure thing is: you will need to restore a working compiler somehow. Previously you stated:
Quote: | Here it is after I emerged openrc & gcc from binary packages. |
So, what binaries and from where? Did you install 4.8.3 or 4.8.2?
And, what does this command return?
|
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Tue Oct 07, 2014 1:25 pm Post subject: |
|
|
My apologies for being confusing! Inbetween these posts I did try emerge -Cing that GCC and installing an earlier binary to see if it would fix the issue, but no luck. I did get GCC & openrc from here. http://packages.gentooexperimental.org/packages/amd64-unstable/
Code: | # gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.2 p1.3r1, pie-0.5.8r1' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog
Thread model: posix
gcc version 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1)
# which gcc
/usr/bin/gcc
$ ldd /usr/bin/gcc
linux-vdso.so.1 (0x00007fff54be6000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8172718000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8172abe000)
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.2 p1.3r1, pie-0.5.8r1' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog
Thread model: posix
gcc version 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1)
|
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Tue Oct 07, 2014 1:43 pm Post subject: |
|
|
Then, please, and to make sure this isn't something basic, can you try to emerge gcc again with your current gcc and post the new build log? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Oct 07, 2014 2:03 pm Post subject: |
|
|
thender wrote: | My apologies for being confusing! Inbetween these posts I did try emerge -Cing that GCC and installing an earlier binary to see if it would fix the issue, but no luck. | Just for future reference, there no need to --unmerge something before rebuilding it. In fact, it's more dangerous to do it that way. Just rebuild it with Code: | emerge --oneshot packagename | - John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Tue Oct 07, 2014 2:44 pm Post subject: |
|
|
Build log
https://bpaste.net/show/e1bdb78e5727
Code: | # emerge --info '=sys-devel/gcc-4.8.3::gentoo'
--- Invalid atom in /etc/portage/package.use: =media-libs/mesa
--- Invalid atom in /etc/portage/package.use: >=dev-libs/openssl
Portage 2.2.14_rc1 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.8.2, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-4600M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem: 7856532 total, 1703312 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Mon, 06 Oct 2014 07:00:01 +0000
app-shells/bash: 4.2_p52
dev-lang/perl: 5.20.1
dev-lang/python: 2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake: 3.0.2
dev-util/pkgconfig: 0.28-r2
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.13.1
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.13.4
sys-devel/binutils: 2.24-r3
sys-devel/gcc: 4.8.2
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif extraengine faac fam firefox flac fortran fribidi gd gdbm gif git glamor gphoto gphoto2 gpm gtk gvfs h264 hfs hfs+ hibernate iconv icu imagemagick intel ipv6 jpeg kde kipi lame lcms ldap libgphoto libgphoto2 libnotify libv4l libva lm_sensors mad matroska melt mesa mmx mng modules mp3 mp4 mpeg mtp multilib musepack ncurses network networkmanager nls nptl ntfs ntfs-3g ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt qt3support qt4 readline samba sdl semantic-desktop session sna spell sse sse2 ssl startup-notification subversion suspend svg synaptics systemd tcpd test-programs theora thread threads thunar tiff truetype udev udisks unicode upower usb uxa v4l vaapi vl42 vorbis wavpack webp wifi win32codecs wxwidgets x264 xcb xcomposite xine xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64 32" 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" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="brightness clock trash" 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, SYNC, USE_PYTHON
|
Code: | # emerge -pqv '=sys-devel/gcc-4.8.3::gentoo'
--- Invalid atom in /etc/portage/package.use: =media-libs/mesa
--- Invalid atom in /etc/portage/package.use: >=dev-libs/openssl
[ebuild U ] sys-devel/gcc-4.8.3 [4.8.2] USE="cxx fortran (multilib) nls nptl openmp (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla"
|
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Oct 07, 2014 7:48 pm Post subject: |
|
|
i92guboj wrote: | Maybe there's something else. Do these commands work? If so, please, post the output.
Code: | $ ldd /usr/bin/gcc
$ gcc -v |
|
Actually, most of the dependencies of gcc are in the libexec file and the deps may be missing (specially libmpfr and libgmp that people loves to remove) while the /usr/bin/gcc is still fine.
So better look at /usr/libexec/gcc/(i686 or x86-64 path)/(gcc version)/cc1 to check missing deps. |
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Tue Oct 07, 2014 11:14 pm Post subject: |
|
|
krinn wrote: | i92guboj wrote: | Maybe there's something else. Do these commands work? If so, please, post the output.
Code: | $ ldd /usr/bin/gcc
$ gcc -v |
|
Actually, most of the dependencies of gcc are in the libexec file and the deps may be missing (specially libmpfr and libgmp that people loves to remove) while the /usr/bin/gcc is still fine.
So better look at /usr/libexec/gcc/(i686 or x86-64 path)/(gcc version)/cc1 to check missing deps. |
Should I look for a binary of libexec/libmpfr and libgmp to install, then emerge binary GCC? |
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Wed Oct 08, 2014 9:56 am Post subject: |
|
|
krinn wrote: | i92guboj wrote: | Maybe there's something else. Do these commands work? If so, please, post the output.
Code: | $ ldd /usr/bin/gcc
$ gcc -v |
|
Actually, most of the dependencies of gcc are in the libexec file and the deps may be missing (specially libmpfr and libgmp that people loves to remove) while the /usr/bin/gcc is still fine.
So better look at /usr/libexec/gcc/(i686 or x86-64 path)/(gcc version)/cc1 to check missing deps. |
Does this look proper?
Code: | # ls -l /usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/
total 51656
-rwxr-xr-x 1 root root 12688464 Jan 21 2014 cc1
-rwxr-xr-x 1 root root 13757584 Jan 21 2014 cc1plus
-rwxr-xr-x 1 root root 375888 Jan 21 2014 collect2
-rwxr-xr-x 1 root root 13410248 Jan 21 2014 f951
-rwxr-xr-x 1 root root 992 Jan 21 2014 liblto_plugin.la
lrwxrwxrwx 1 root root 22 Jan 21 2014 liblto_plugin.so -> liblto_plugin.so.0.0.0
lrwxrwxrwx 1 root root 22 Jan 21 2014 liblto_plugin.so.0 -> liblto_plugin.so.0.0.0
-rwxr-xr-x 1 root root 72264 Jan 21 2014 liblto_plugin.so.0.0.0
-rwxr-xr-x 1 root root 12015904 Jan 21 2014 lto1
-rwxr-xr-x 1 root root 560120 Jan 21 2014 lto-wrapper
drwxr-xr-x 2 root root 4096 Oct 7 07:30 plugin |
|
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Wed Oct 08, 2014 10:29 am Post subject: |
|
|
I forgot to run binutils-config 1.
I actually ran binutils-config -l, but I did not notice the lack of an asterisk next to the profile.
I am ashamed. Feel free to flog me accordingly. This did solve my problem so I am coming back to post just incase any other dummies like me do the same silliness.. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Wed Oct 08, 2014 10:38 am Post subject: |
|
|
Seems normal, but what he was talking about was about the output for
Code: | $ ldd /usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/cc1 |
Since all the config stuff and that seems to be fine, we are looking for binary corruption in your compiler.
You should also try compiling something small yourself and seeing in that works.
Code: | $ echo "#include<stdio.h>" > foo.c; echo "main(){ printf(\"%s\",\"hello world\\n\");}" >> foo.c && gcc -o foo foo.c && ./foo && rm -f foo foo.c
hello world
$ |
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Wed Oct 08, 2014 10:40 am Post subject: |
|
|
Ugh, we crossed posts. Well, don't worry. We didn't think of it either so you can bash us for that as well. Anyway, I am glad that you solved it.
See you around. |
|
Back to top |
|
|
|