View previous topic :: View next topic |
Author |
Message |
TheMachinesTeacher n00b
Joined: 09 Sep 2017 Posts: 48 Location: Somewhere over there
|
Posted: Sun Jan 14, 2018 7:43 pm Post subject: emerge gcc 4.6.4 fails |
|
|
I am trying to update my system using
Code: |
emerge -av --update --deep --with-bdeps=y --newuse @world
|
The update tries to install gcc-4.6.4, which fails. I am currently using gcc-6.4.0. I am not sure why it needs 4.6.4, but here are the related informations pertaining to emerging gcc-4.6.4
emerge --info '=sys-devel/gcc-4.6.4::gentoo'
Code: |
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r9, 4.12.12-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-AMD_Ryzen_5_1600X_Six-Core_Processor-with-gentoo-2.4.1
KiB Mem: 16449416 total, 10305556 free
KiB Swap: 976892 total, 976892 free
Timestamp of repository gentoo: Sun, 14 Jan 2018 00:45:01 +0000
Head commit of repository gentoo: 553faa3a6330706cda3971965b7cf6c72e17a84d
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.11::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils: 2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc: 4.7.4::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo, 6.4.0-r1::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25-r9::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
arduino
location: /usr/local/portage
masters: gentoo
multibootusb
location: /usr/local/portage
masters: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
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="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif experimental fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 readline sdl seccomp semantic-desktop spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xv xvid xvmc 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="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" GRUB_PLATFORMS="efi-64" 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" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
emerge -pqv '=sys-devel/gcc-4.6.4::gentoo'
Code: |
[ebuild NS ] sys-devel/gcc-4.6.4 [4.7.4, 5.4.0-r3, 6.3.0, 6.4.0-r1] USE="cxx fortran (multilib) nls nptl openmp (-altivec) (-awt) -debug -doc (-fixed-point) -gcj (-hardened) (-libssp) -mudflap -objc -objc++ -objc-gc -pgo -regression-test -vanilla"
|
During this command a little error seems to pop up about cuda needing GCC 5 or eralier, which causes it to be masked. I can't imagine this could prevent gcc from being installed.
build log at /var/tmp/portage/sys-devel/gcc-4.6.4/temp/build.log can be found here (please let me know if the link doesn't work)
the environment information can be found here (please let me know if the link doesn't work)
Emerge says to include this build log with my bug report. This isn't a bug report yet, but maybe it will help in diagnosis.
I also noticed that it said there was some information in /var/tmp/portage/sys-devel/gcc-4.6.4/work/build/x86_64-pc-linux-gnu/libgcc/config.log so I have included config.log here
It says in that log that
Code: |
Thread model: posix
gcc version 4.6.4 (Gentoo 4.6.4 p1.3)
configure:3039: $? = 0
configure:3028: /var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/
sys-include -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028: /var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/
sys-include -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055: /var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/
sys-include -o conftest -g -march=znver1 -O2 -pipe conftest.c >&5
conftest.c:1:0: error: bad value (znver1) for -march= switch
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268: /var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/
sys-include -c -g -march=znver1 -O2 -pipe conftest.c >&5
conftest.c:1:0: error: bad value (znver1) for -march= switch
configure:3272: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3286: error: in `/var/tmp/portage/sys-devel/gcc-4.6.4/work/build/x86_64-pc-linux-gnu/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
|
It seems to have error with my -march flag and -qversion. What does that mean and how can I fix that? I would like to keep my -march flag the same if possible.
Thanks for the help. Hopefully we can find the solution.[/url]
Last edited by TheMachinesTeacher on Sun Jan 14, 2018 8:10 pm; edited 1 time in total |
|
Back to top |
|
|
blopsalot Apprentice
Joined: 28 Jan 2017 Posts: 231
|
Posted: Sun Jan 14, 2018 9:34 pm Post subject: |
|
|
If yourself has no use for it, Gentoo does not need it for anything, just remove it. |
|
Back to top |
|
|
TheMachinesTeacher n00b
Joined: 09 Sep 2017 Posts: 48 Location: Somewhere over there
|
Posted: Sun Jan 14, 2018 9:49 pm Post subject: |
|
|
I don't know what you are talking about. It seems that Gentoo does need gcc 4.6.4 for some reason. It is not apparent to me what it needs it for.
If you are referring to my -march flag, well I have a Ryzen system. Why shouldn't I have a system that is tailored to my special architecture?
Otherwise, you were so unspecific in your answer that I do not know how to respond to you, nor make use of your "advice". |
|
Back to top |
|
|
blopsalot Apprentice
Joined: 28 Jan 2017 Posts: 231
|
Posted: Sun Jan 14, 2018 9:51 pm Post subject: |
|
|
lol sorry. Remove GCC 4 |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8938
|
Posted: Sun Jan 14, 2018 9:53 pm Post subject: |
|
|
All GCC versions prior to GCC-6 are masked and completely unsupported.
Code: | $ emerge -vp =gcc-4.6.4
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS #] sys-devel/gcc-4.6.4:4.6.4::gentoo [6.4.0:6.4.0::gentoo, 7.2.0:7.2.0::gentoo] USE="cxx doc fortran (multilib) nls nptl openmp (-altivec) (-awt) -debug (-fixed-point) -gcj (-hardened) (-libssp) -mudflap -objc -objc++ -objc-gc -pgo -regression-test -vanilla" 70.338 KiB
Total: 1 package (1 in new slot), Size of downloads: 70.338 KiB
The following mask changes are necessary to proceed:
(see "package.unmask" in the portage(5) man page for more details)
# required by =gcc-4.6.4 (argument)
# /usr/portage/profiles/package.mask:
# Michał Górny <mgorny@g.o>, Andreas K. Hüttel <dilfridge@g.o>,
# Matthias Maier <tamiko@g.o> (21 May 2017)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.
# (updated 27 Dec 2017 with gcc < 5.4)
=sys-devel/gcc-4.6.4 |
|
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4567 Location: Germany
|
Posted: Sun Jan 14, 2018 11:13 pm Post subject: |
|
|
TheMachinesTeacher,
the first gcc version that supports your -march=znver1 is gcc-6
see on https://gcc.gnu.org/gcc-6/changes.html Quote: | Support for AMD Zen (family 17h) processors is now available through the -march=znver1 and -mtune=znver1 options. | All previous gcc versions don't support -march=znver1
TheMachinesTeacher wrote: | During this command a little error seems to pop up about cuda needing GCC 5 or eralier, which causes it to be masked. |
Please try it with cuda-9
nvidia-cuda-sdk-9.0.176
nvidia-cuda-toolkit-9.0.176
this version has gcc-6 support.
Code: | emerge -av --depclean gcc | should help. |
|
Back to top |
|
|
TheMachinesTeacher n00b
Joined: 09 Sep 2017 Posts: 48 Location: Somewhere over there
|
Posted: Mon Jan 15, 2018 6:36 am Post subject: |
|
|
Thanks for the help. I should have uninstalled the other gccs a long time ago. |
|
Back to top |
|
|
|
|
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
|
|