Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546020 - dev-lang/go-1.4.1 fails to build on arm
Summary: dev-lang/go-1.4.1 fails to build on arm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-09 04:49 UTC by Jonathan Fraser
Modified: 2015-06-02 16:12 UTC (History)
2 users (show)

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 Jonathan Fraser 2015-04-09 04:49:00 UTC
emerge fails while compiling the runtime 

Portage 2.2.14 (python 2.7.9-final-0, default/linux/arm/13.0/armv7a, gcc-4.8.3, glibc-2.19-r1, 3.18.0-xilinx-06501-gfbe180b-dirty armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.0-xilinx-06501-gfbe180b-dirty-armv7l-with-gentoo-2.2
KiB Mem:      511244 total,    230008 free
KiB Swap:    4194300 total,   4191932 free
Timestamp of tree: Thu, 09 Apr 2015 00:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.20.2
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.6
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mcpu=cortex-a9 -ftree-vectorize -mfpu=neon -mfloat-abi=hard -mvectorize-with-neon-quad -pipe -fomit-frame-pointer"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mcpu=cortex-a9 -ftree-vectorize -mfpu=neon -mfloat-abi=hard -mvectorize-with-neon-quad -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
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 -march=armv7-a"
GENTOO_MIRRORS="rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://mirror.the-best-hosting.net ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync2.ca.gentoo.org/gentoo-portage"
USE="acl arm armv5te armv6 armv6t2 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 libav modules ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode zlib" 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="exynos fbdev omap omapfb 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jason Zaman gentoo-dev 2015-04-09 16:12:50 UTC
can you attach your build.log too.
Comment 2 Jonathan Fraser 2015-04-10 01:17:56 UTC
 * Package:    dev-lang/go-1.4.1
 * Repository: gentoo
 * Maintainer: williamh@gentoo.org
 * USE:        arm elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking go1.4.1.src.tar.gz to /var/tmp/portage/dev-lang/go-1.4.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/go-1.4.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/go-1.4.1/work/go ...
 * Applying go-1.2-no-Werror.patch ...                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/go-1.4.1/work/go ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/go-1.4.1/work/go ...
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/arm.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/5l
cmd/5a
cmd/5c
cmd/5g
runtime
go tool dist: FAILED: /var/tmp/portage/dev-lang/go-1.4.1/work/go/pkg/tool/linux_arm/5c -D GOOS_linux -D GOARCH_arm -I $WORK -I /var/tmp/portage/dev-lang/go-1.4.1/work/go/pkg/linux_arm -q -n -o $WORK/runtimedefs malloc.c
 * ERROR: dev-lang/go-1.4.1::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 1866:  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.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/go-1.4.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/go-1.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/go-1.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/go-1.4.1/work/go/src'
 * S: '/var/tmp/portage/dev-lang/go-1.4.1/work/go'
Comment 3 Jonathan Fraser 2015-04-10 01:19:18 UTC
new information, it is not all arm as it builds just fine on my raspberry pi, although that is an armv6 while the one that fails is an armv7. Moreover, if I call ./make.bash manually on the armv7 it compiles fine.
Comment 4 Jonathan Fraser 2015-04-12 06:09:14 UTC
compile files appears to be related to the -ftree-vectorize optimization (this is an 03 optimization so meh) It builds correctly without it but throws a large amount of warnings about the binaries.

 * QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  http://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see http://hardened.gentoo.org/gnu-stack.xml
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@g.o.
 * !WX --- --- usr/lib/go/src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj
 * !WX --- --- usr/lib/go/src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj
Comment 5 William Hubbs gentoo-dev 2015-06-02 16:12:49 UTC
dev-lang/go-1.4.2 has been marked stable on arm.
Please open a new bug if you have issues with that version building.