Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-3712 regression fixes for gcc.
  3. FL-3588

sys-devel/gcc[go] clobbers /usr/bin/go, which belongs to dev-lang/go

    • Icon: Sub-task Sub-task
    • Resolution: Workaround
    • Icon: Normal Normal
    • None
    • None
    • None

      Packages affected:

      [I] sys-devel/gcc
           Available versions:  
           (4.8.5) 4.8.5-r1^s
           (4.9.3) 4.9.3-r3^s
           (5.3.0) 5.3.0-r1^s
           (6.3.0) [M]6.3.0^s
             {ada altivec cxx doc +fortran go graphite hardened libssp multilib nls objc objc++ openmp pch pie sanitize ssp vanilla}
           Installed versions:  5.3.0-r1(5.3.0)^s(06:03:25 PM 12/09/2016)(cxx fortran go multilib nls openmp -ada -altivec -doc -graphite -hardened -libssp -objc -objc++ -sanitize -vanilla)
           Description:         The GNU Compiler Collection
      
      [I] dev-lang/go
           Available versions:  1.7.4(0/1.7.4) (~)1.7.5(0/1.7.5) **9999(0/9999)^s {gccgo}
           Installed versions:  1.7.5(11:33:51 PM 02/08/2017)(-gccgo)
           Homepage:            http://www.golang.org
           Description:         A concurrent garbage collected and typesafe programming language
      

      As root:
      1. Go itself claims that it belongs to sys-devel/gcc package (it should belong to dev-lang/go)

       # go version
      go version go1.4.2 gccgo (Funtoo 5.3.0-r1) 5.3.0 linux/amd64
      

      2. `which` command:

       # which go
      /usr/bin/go
      

      3. equery b claims /usr/bin/go belongs to dev-lang/go

       # equery b /usr/bin/go
       * Searching for /usr/bin/go ... 
      dev-lang/go-1.7.5 (/usr/bin/go -> ../lib/go/bin/go)
      

      I'm not sure about the output for that, it appears that portage believes /usr/bin/go to be a symlink. However:

      4. file reports this is an actual file:

       # file /usr/bin/go
      /usr/bin/go: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped
      

      5. which turns out to be gccgo after all:

       # /usr/bin/go version
      go version go1.4.2 gccgo (Funtoo 5.3.0-r1) 5.3.0 linux/amd64
      
      "emerge --info"
       # emerge --info
      Portage 2.3.2 (python 2.7.12-final-0, funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-5.3.0, glibc-2.22, 4.9.4-gentoo-mykernel-nvidia x86_64)
      =================================================================
      System uname: Linux-4.9.4-gentoo-mykernel-nvidia-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.2.1
      KiB Mem:     5077820 total,    456616 free
      KiB Swap:    2097148 total,   1623836 free
      sh bash 4.3_p48
      ld GNU ld (Funtoo 2.25) 2.25.0
      app-shells/bash:          4.3_p48::gentoo
      dev-java/java-config:     2.2.0-r3::gentoo
      dev-lang/perl:            5.24.0-r2::gentoo
      dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
      dev-util/cmake:           3.7.2::gentoo
      sys-apps/baselayout:      2.2.1::gentoo
      sys-apps/openrc:          0.23.2::gentoo
      sys-apps/sandbox:         2.10-r3::gentoo
      sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
      sys-devel/automake:       1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
      sys-devel/binutils:       2.25-r2::gentoo
      sys-devel/gcc:            5.3.0-r1::gentoo
      sys-devel/gcc-config:     1.8-r1::gentoo
      sys-devel/libtool:        2.4.6-r2::gentoo
      sys-devel/make:           4.1-r1::gentoo
      sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
      sys-libs/glibc:           2.22::gentoo
      Repositories:
      
      gentoo
          location: /usr/portage
          sync-type: git
          sync-uri: git://github.com/funtoo/ports-2012.git
          priority: -1000
      
      xportage
          location: /usr/local/portage
          masters: gentoo
          priority: 0
      
      anders-larsson
          location: /var/lib/layman/anders-larsson
          masters: gentoo
          priority: 50
      
      dotnet
          location: /var/lib/layman/dotnet
          masters: gentoo
          priority: 50
      
      gamerlay
          location: /var/lib/layman/gamerlay
          masters: gentoo
          priority: 50
      
      qt
          location: /var/lib/layman/qt
          masters: gentoo
          priority: 50
      
      yngwin
          location: /var/lib/layman/yngwin
          masters: gentoo
          priority: 50
      
      ACCEPT_KEYWORDS="amd64 ~amd64"
      ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
      CBUILD="x86_64-pc-linux-gnu"
      CFLAGS="-march=amdfam10 -O2 -pipe"
      CHOST="x86_64-pc-linux-gnu"
      CONFIG_PROTECT="/etc /usr/share/easy-rsa /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=amdfam10 -O2 -pipe"
      DISTDIR="/usr/portage/distfiles"
      EMERGE_DEFAULT_OPTS="--keep-going --jobs --load-average=1"
      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="-march=amdfam10 -O2 -pipe"
      GENTOO_MIRRORS="http://distfiles.gentoo.org"
      LANG="en_US.UTF-8"
      LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
      LINGUAS="en en_US"
      MAKEOPTS="-j1"
      PKGDIR="/usr/portage/packages"
      PORTAGE_CONFIGROOT="/"
      PORTAGE_TMPDIR="/var/tmp"
      USE="3dnow 3dnowext X a52 aac aacplus acl alsa amd64 amr apng aufs berkdb bluetooth bluray bzip2 cairo cdda cddb cdio cdr cgmanager consolekit cracklib crypt cxx dbus dri dts dvd dvdr dvdread dvi encode exif faac faad ffmpeg flac gdbm gif gimp gpm gstreamer gtk gtk3 hilight ico iconv icu ieee1394 infinality ipod ipv6 jpeg jpeg2k lame lcms libass libguess libmpeg2 lock lxc mad matroska mjpeg mmx modules mp3 mpeg mtp mudflap multilib ncurses nls nptl nsplugin nvenc nvidia ogg opengl openmp openssl opus pam pcre pdf pgo png policykit postproc pppd python quicktime readline resolvconf s3tc scanner secure-delete session sndfile sqlite sqlite3 sse sse2 sse3 ssh ssl svg system-sqlite3 taglib tcpd theora thunar tiff tools truetype twitter twolame udev unicode usb usbredir v4l vdpau vim-syntax vorbis vpx wav wavpack webp widgets win32codecs wmf wxwidgets x264 x265 xattr xkb xml xpm xps xvfb xvid zlib zsh-completion" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 authn_core authz_core socache_shmcb unixd" 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="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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 pc" 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" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24" SANE_BACKENDS="hp4200 sm3840" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
      

            Unassigned Unassigned
            quiznilo quiznilo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: