Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878489 - dev-lang/go-1.19.2 fails to build
Summary: dev-lang/go-1.19.2 fails to build
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 02:08 UTC by dbobdies
Modified: 2023-08-14 18:20 UTC (History)
2 users (show)

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


Attachments
the typical requested command output all in one file (gocompilefailure.log,79.67 KB, text/x-log)
2022-10-28 02:08 UTC, dbobdies
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dbobdies 2022-10-28 02:08:59 UTC
Created attachment 825663 [details]
the typical requested command output all in one file

it just plain old fails to build i am on the "default/linux/amd64/17.1/hardened (stable)" profile.
Comment 1 dbobdies 2022-10-28 02:15:44 UTC
for convenience sake even if it is in the file *i had to remove the url's to be able to post this
emerge --info '=dev-lang/go-1.19.2::gentoo'
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/hardened, gcc-11.3.0, glibc-2.35-r8, 5.15.74-gentoo-dist-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.74-gentoo-dist-hardened-x86_64-Intel-R-_Core-TM-_i7-8565U_CPU_@_1.80GHz-with-glibc2.35
KiB Mem:    16199476 total,    735544 free
KiB Swap:   14150652 total,  11604988 free
Timestamp of repository gentoo: Wed, 26 Oct 2022 00:30:01 +0000
Head commit of repository gentoo: 35c5ad765e20f14e514f79b77d633a4c2e220d4d
Timestamp of repository frr-gentoo: Wed, 19 Oct 2022 17:46:50 +0000
Head commit of repository frr-gentoo: f6e2995daa0b423999d63336e9a92a1f5318bf18

Timestamp of repository pentoo: Tue, 25 Oct 2022 04:01:55 +0000
Head commit of repository pentoo: b5ca641cc52e3475b8fab523766e205f9be88dcd

Timestamp of repository torbrowser: Fri, 21 Oct 2022 23:01:53 +0000
Head commit of repository torbrowser: 5b5499df9ec3364c0a0e33a66f5077dc07cfbd3f

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.8.15::gentoo, 3.9.15::gentoo, 3.10.8::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/cmake:            3.24.2::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: 
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

frr-gentoo
    location: /var/db/repos/frr-gentoo
    sync-type: git
    sync-uri: 
    masters: gentoo

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: 
    masters: gentoo

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: 
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -mtune=skylake -pipe -O2 -march=skylake    "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
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"
CXXFLAGS=" -mtune=skylake -pipe -O2 -march=skylake    "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --backtrack 1000 --with-bdeps y --complete-graph y --tree --unordered-display --alert --color y --keep-going y "
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS=" -mtune=skylake -pipe -O2 -march=skylake    "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=" -mtune=skylake -pipe -O2 -march=skylake    "
GENTOO_MIRRORS="   "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X acl activefilter alsa amd64 apparmor archive atm autotype bash-completion bcrypt bpf browser bzip2 caps capstone clang cli clippy connection-sharing crypt cryptsetup dbus dmabuf dnssec dri dtrace echo-cancel efi egl elogind eme-free ffmpeg filecaps firewalld firmware flac fortran gdbm georeplication glusterfs gnome gphoto2 gr-audio gtk gui hackrf hardened hpn hwloc i2p-hardening iconv icu infiniband io-uring ipv6 iscsi jpeg jpeg2k lcms ldns libglvnd libinput libtirpc libvirt lkrn lz4 lzo man modemmanager mpfr multilib nautilus ncurses networkmanager nftables nls notification nptl numa office opengl openmp pam parted pcap pcre pie pipewire pipewire-alsa png policykit qrcode radius rdma readline resolvconf sasl scanner screencast seccomp slirp snappy sound-server spell spellcheck split-usr sqlite ssh ssl ssp svg system-zlib systemtap telepathy test-rust text tiff tor-hardening udev unicode usb usbredir v4l vaapi vde verify-sig virgl virtualbox wallpapers wayland widgets wireshark-plugins xattr xcsecurity xml xmss xtpax xxhash zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="x86_64 arm" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby27" 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 proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-28 02:16:49 UTC
Do you have a VCS in /usr/ or something like that?
Comment 3 Mike Gilbert gentoo-dev 2022-10-29 14:59:39 UTC
(In reply to dbobdies from comment #0)
> Created attachment 825663 [details]
> the typical requested command output all in one file

In the future, please attach files separately. Having it all in one file makes it difficult to review.
Comment 4 dbobdies 2022-10-29 15:47:30 UTC
(In reply to Sam James from comment #2)
> Do you have a VCS in /usr/ or something like that?

No i dont have anything like VCS in /usr/

this is the output of ls in the usr directory:
bin  include  lib  lib64  libexec  local  sbin  share  src  tmp  x86_64-pc-linux-gnu
Comment 5 Mike Gilbert gentoo-dev 2022-10-29 17:23:38 UTC
(In reply to dbobdies from comment #4)

By "VCS", he really means "git". The ".git" directory would not appear in an ls listing unless you run "ls -a".
Comment 6 Mike Gilbert gentoo-dev 2022-10-29 17:29:13 UTC
It's likely you would see this error if you have a .git directory in any of the following locations:

/.git
/var/.git
/var/tmp/.git
Comment 7 dbobdies 2022-10-30 21:46:04 UTC
(In reply to Mike Gilbert from comment #6)
> It's likely you would see this error if you have a .git directory in any of
> the following locations:
> 
> /.git
> /var/.git
> /var/tmp/.git


i do have a git directory in root. how does this cause an error? and how do i fix it do i just delete .git? 
Is there a way to still have this working with .git in the root directory?
Comment 8 dbobdies 2022-10-31 19:32:27 UTC
(In reply to dbobdies from comment #7)
> (In reply to Mike Gilbert from comment #6)
> > It's likely you would see this error if you have a .git directory in any of
> > the following locations:
> > 
> > /.git
> > /var/.git
> > /var/tmp/.git
> 
> 
> i do have a git directory in root. how does this cause an error? and how do
> i fix it do i just delete .git? 
> Is there a way to still have this working with .git in the root directory?

i temporarily moved the .git to another folder and go emerged without issue. so that was the cause of the issue. If this is an issue that will come up in future go releases perhaps this should be fixed ?

i would be willing to fix it but i have no clue or experience on how to do that
Comment 9 Massimo Burcheri 2022-12-08 11:59:46 UTC
Same here using git with etckeeper but starting with /.git and not /etc/.git.
I was running into similar issues when I had /.hg, thought things get better when migrating to git.
Same annoying workaround always is to temporarily move /.git.

When emerge is building in a sandbox by default which seems to be the case according to
portageq envvar FEATURES |grep sandbox
shouldn't that sandbox be isolated from anything outside?
Comment 10 William Hubbs gentoo-dev 2023-08-14 18:20:18 UTC
This version is no longer in the tree.