Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600366 - dev-lang/go-1.6.3 fails to build. go build bootstrap/compile/internal/gc: /var/tmp/portage/dev-lang/go-1.6.3/work/go-linux-386-bootstrap/pkg/tool/linux_386/compile: signal: segmentation fault
Summary: dev-lang/go-1.6.3 fails to build. go build bootstrap/compile/internal/gc: /va...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low minor
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-20 23:12 UTC by Alex Cannon
Modified: 2016-12-24 18:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cannon 2016-11-20 23:12:27 UTC
It looks like the included binary that builds go is crashing.

>>> Emerging (1 of 2) dev-lang/go-1.6.3::gentoo
 * go-linux-386-bootstrap-1.tbz SHA256 SHA512 WHIRLPOOL size ;-) ...     [ ok ]
 * go1.6.3.src.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...               [ ok ]
>>> Unpacking source...
>>> Unpacking go-linux-386-bootstrap-1.tbz to /var/tmp/portage/dev-lang/go-1.6.3/work
>>> Unpacking go1.6.3.src.tar.gz to /var/tmp/portage/dev-lang/go-1.6.3/work
>>> Source unpacked in /var/tmp/portage/dev-lang/go-1.6.3/work
>>> Preparing source in /var/tmp/portage/dev-lang/go-1.6.3/work/go ...
 * Applying go-1.6.3-gdb-no-shell.patch ...                              [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/go-1.6.3/work/go ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/go-1.6.3/work/go ...
 * GOROOT_BOOTSTRAP is /var/tmp/portage/dev-lang/go-1.6.3/work/go-linux-386-bootstrap
##### Building Go bootstrap tool.
cmd/dist

##### Building Go toolchain using /var/tmp/portage/dev-lang/go-1.6.3/work/go-linux-386-bootstrap.
bootstrap/internal/obj
bootstrap/asm/internal/flags
bootstrap/compile/internal/big
bootstrap/internal/obj/arm
bootstrap/internal/obj/arm64
bootstrap/internal/obj/mips
bootstrap/internal/obj/ppc64
bootstrap/internal/obj/x86
bootstrap/asm/internal/lex
bootstrap/asm/internal/arch
bootstrap/internal/gcprog
bootstrap/compile/internal/gc
bootstrap/asm/internal/asm
bootstrap/asm
bootstrap/link/internal/ld
go build bootstrap/compile/internal/gc: /var/tmp/portage/dev-lang/go-1.6.3/work/go-linux-386-bootstrap/pkg/tool/linux_386/compile: signal: segmentation fault
bootstrap/link/internal/amd64
bootstrap/link/internal/arm
bootstrap/link/internal/arm64
bootstrap/link/internal/mips64
bootstrap/link/internal/ppc64
bootstrap/link/internal/x86
bootstrap/link
go tool dist: FAILED: /var/tmp/portage/dev-lang/go-1.6.3/work/go-linux-386-bootstrap/bin/go install -v bootstrap/...: exit status 1
 * ERROR: dev-lang/go-1.6.3::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line 133:  Called src_compile
 *   environment, line 1033:  Called die
 * The specific snippet of code:
 *       ./make.bash || die "build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/go-1.6.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/go-1.6.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/go-1.6.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/go-1.6.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/go-1.6.3/work/go/src'
 * S: '/var/tmp/portage/dev-lang/go-1.6.3/work/go'

>>> Failed to emerge dev-lang/go-1.6.3, Log file:


Reproducible: Always




Portage 2.2.28 (python 3.4.5-final-0, default/linux/x86/13.0, gcc-4.8.4, glibc-2.22-r4, 3.2.83 i686)
=================================================================
System uname: Linux-3.2.83-i686-Pentium_III_-Coppermine-with-gentoo-2.2
KiB Mem:     2071592 total,    377844 free
KiB Swap:    4130940 total,   3678592 free
Timestamp of repository gentoo: Sun, 06 Nov 2016 23:00:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.1.5-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r2::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            3.4.6-r2::gentoo, 4.3.6-r1::gentoo, 4.5.4::gentoo, 4.7.3-r1::gentoo, 4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

MyOverlay
    location: /usr/local/portage
    masters: gentoo

twister
    location: /var/lib/layman/twister
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE IBM-J1.6"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -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 xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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="7zip X a52 aac acc acl alsa apache2 apng bash-completion bazaar berkdb bittorrent bzip2 caps cgi chappa clang cli cpudetection cracklib crypt cups cvs cxx dbus dga divx4linux dlz dri dvd dvdread emacs encode esd esound examples extras faac faad fdformat finger fltk fontconfig fortran ftp gd gdbm geoip gif gimp git gles gles2 gnutella gnutls gopher gpg gpm gtk html hwdb iconv idn imagemagick imap imlib ipv6 jadetex javascript jpeg kdeenablefinal libcaca libopts live lzo mad math mbox messages minizip mmx mmxext mng modules motif mp2 mp3 mpeg mpi multinet nas ncat ncurses ndiff nls nntp nping nptl offensive ogg oident openft openmp openssl pam pcre pcre16 perl png pnm policykit pop proxy_http python qt3support readline rtmp scripting seccomp server session sidebar smtp snmp socks5 speex sqlite sse ssl subversion suexec syslog tcl tcpd theora threads tiff tk truetype tty-helpers unicode usb vim-syntax vorbis x264 x86 xa xattr xinetd xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="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 ident proxy proxy_connect proxy_ftp proxy_http auth_digest" 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" CPU_FLAGS_X86="mmx mmxext sse" 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" LINGUAS="fr de es it nl ru sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-11-26 12:02:22 UTC
I'm not sure how well this is going to work... old CPU, old kernel.
Comment 2 William Hubbs gentoo-dev 2016-11-28 19:55:30 UTC
Can you try 1.7.3?

Thanks,

William
Comment 3 Alex Cannon 2016-11-29 18:17:55 UTC
It turns out that the problem was that the program was runnig out of virtual memory because of a ulimit restriction. The the go bootstrap program just crashed without error once the 500MB limit was reached.
Comment 4 William Hubbs gentoo-dev 2016-12-24 18:37:24 UTC
I am closing this as resolved since you were able to find the issue.
However, if there is more that you think I can do on my side, let me
know.

Thanks,

William