Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 667524

Summary: dev-lang/go-1.10.3 and go-1.11 fail to build from git checkout?
Product: Gentoo Linux Reporter: aion1223
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: log from ./all.bash
emerge --info

Description aion1223 2018-10-02 04:30:28 UTC
Created attachment 548788 [details]
log from ./all.bash

Basically, go and some other toolchain (e.g. perhaps gcc, binutils, etc?), building go 1.10.3 from the source fails on Gentoo while it is successful in Oracle Linux and Centos. 

Here's how I pulled out the go source:
  git clone https://github.com/golang/go   gosrc
  cd gosrc/src
  git checkout -b go1.10.3  `git rev-list -1 go1.10.3`

Here are how I build it:
  emerge -v dev-lang/go
  // note that I am already in the "./src" directory of the check-out'ed go directory
  ./all.bash

Building go from the source includes running a given set of tests. In Oracle Linux 7.5, the outcome would end with:
 
ALL TESTS PASSED
---
Installed Go for linux/amd64 in /home/myuser/gosrc
Installed commands in /home/myuser/gosrc/bin

However, several test cases failed on Gentoo, as the attached all.bash.log file shows.

My emerge --info is here:

$ emerge --info
Portage 2.3.50 (python 3.6.6-final-0, default/linux/amd64/17.0/systemd, gcc-8.2.0, glibc-2.27-r6, 4.18.10-gentoo x86_64)
=================================================================
System uname: Linux-4.18.10-gentoo-x86_64-AMD_Ryzen_5_1500X_Quad-Core_Processor-with-gentoo-2.6
KiB Mem:    16424800 total,   6351924 free
KiB Swap:   17415164 total,  17415164 free
Timestamp of repository gentoo: Thu, 27 Sep 2018 08:00:01 +0000
Head commit of repository gentoo: 5a158677cd637676afe4a04bd3de83e5d385a912
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.31.1-r1::gentoo
sys-devel/gcc:            5.4.0-r4::gentoo, 8.2.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

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

dotnet
    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/dotnet.git
    masters: gentoo
    priority: 50

eclipse
    location: /var/lib/layman/eclipse
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: laymansync
    sync-uri: https://github.com/istitov/stuff.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver1 -mtune=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-O2 -pipe -march=znver1 -mtune=znver1"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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 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.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US ko"
MAKEOPTS="-j4"
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="R X a52 acc acl acpi alsa amd64 anthy apache apache2 apng avx avx2 berkdb bzip2 c++ cairo cdpau cdr cjk clang cleartype cli corefonts crypt cups cxx dbus detex device-mapper dhcp dirac divx dri dvd dvdr dvdread dvi2tty emacs encode epspdf extras ffmpeg flac fortran fuse gdbm gdu gif gimp glitz gnome gnome-keyring gnome-online-accounts gold gtk gtk3 hal iconv icu imap introspection ipod ipv6 irc java jingle jpeg jpeg2k lame latex libffi libtirpc libwww linguas_en linguas_ja linguas_ko linlinguas_en_US m17n-lib maildir mikmod mmx modules mp2 mp3 mp3g2 mp4 mp4live mpeg mplayer multilib multitarget ncurses networkmanager nls nptl nsplugin ogg ogm opengl openmp pam pcre pdfannotextractor pluginwrapper png podcast policykit postscript ppds pstricks publishers pulseaudio python readline real samba science scim sdl seccomp sftp sid snmp sound sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 subversion svg syslog systemd tcpd tex4ht texi2html theora threads tiff tracker truetype type1 udev unicode usb vaapi vcd vnc vorbis win32codecs wma wmf wmp x264 x265 xattr xcb xetex xine xml xvid youtube 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="actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias http2 slotmem_shm xml2enc proxy proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_html proxy_http" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext 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="mouse keyboard evdev synaptic virtualbox" KERNEL="linux" L10N="ja ko en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX X86 AArch64 ARM Hexagon MSP430 Mips PowerPC Sparc SystemZ XCore" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm" QEMU_USER_TARGETS="aarch64 arm armeb x86_64" RUBY_TARGETS="ruby23 ruby25" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 aion1223 2018-10-02 04:31:16 UTC
Created attachment 548790 [details]
emerge --info
Comment 2 Mike Gilbert gentoo-dev 2019-02-17 18:04:49 UTC
dev-lang/go builds just fine with gcc-8.2.0, so I am unblocking the tracker.
Comment 3 William Hubbs gentoo-dev 2020-01-24 02:07:40 UTC
Both of these versions of dev-lang/go are no longer supported, so I
recommend trying again with 1.12 and 1.13.

If tests are failing on Gentoo, especially in a manual checkout, it is
probably better to report these issues upstream at
https://github.com/golang/go/issues.

Thanks,

William