On Friday, September 04, 2015 4:23:57 PM Ajai Khattri wrote: > > I know that Go 1.5 is limited to 64bit CPUs but im running on a 64bit CPU > and Im trying to update Go from 1.0 to the latest stable (which is 1.4.2 > anyway): > > dev ~ # emerge -uDatv dev-lang/go > > * IMPORTANT: 8 news items need reading for repository 'gentoo'. > * Use eselect news read to view new items. > > > These are the packages that would be merged, in reverse order: > > Calculating dependencies... done! > [ebuild U ] dev-lang/go-1.4.2::gentoo [1.0.1::gentoo] > USE="(-bash-completion%*) (-emacs%) (-pax_kernel%) (-vim-syntax%*) > (-zsh-completion%)" 0 KiB > > Total: 1 package (1 upgrade), Size of downloads: 0 KiB > > Would you like to merge these packages? [Yes/No] > > >>> Verifying ebuild manifests > > >>> Emerging (1 of 1) dev-lang/go-1.4.2::gentoo > * go1.4.2.src.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ > ok ] > >>> Unpacking source... > >>> Unpacking go1.4.2.src.tar.gz to > /var/tmp/portage/dev-lang/go-1.4.2/work > >>> Source unpacked in /var/tmp/portage/dev-lang/go-1.4.2/work > >>> Preparing source in /var/tmp/portage/dev-lang/go-1.4.2/work/go ... > >>> Source prepared. > >>> Configuring source in /var/tmp/portage/dev-lang/go-1.4.2/work/go ... > >>> Source configured. > >>> Compiling source in /var/tmp/portage/dev-lang/go-1.4.2/work/go ... > # Building C bootstrap tool. > cmd/dist > > # Building compilers and Go bootstrap tool for host, linux/amd64. > lib9 > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/atoi.c:1:0: error: CPU > you selected does not support x86-64 instruction set > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_p9dir.c:1:0: error: > CPU you selected does not support x86-64 instruction > set/var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/await.c:1:0: error: > CPU you selected does not support x86-64 instruction set > > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0 > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/atoi.o > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/atoi.c > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_exits.c:1:0: error: > CPU you selected does not support x86-64 instruction set > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0 > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/_exits.o > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_exits.c > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0 > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/await.o > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/await.c > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0 > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/_p9dir.o > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_p9dir.c > * ERROR: dev-lang/go-1.4.2::gentoo failed (compile phase): > * build failed > * > * Call stack: > * ebuild.sh, line 93: Called src_compile > * environment, line 1886: 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.2::gentoo'`, > * the complete build log and the output of `emerge -pqv > '=dev-lang/go-1.4.2::gentoo'`. > * The complete build log is located at > '/var/tmp/portage/dev-lang/go-1.4.2/temp/build.log'. > * The ebuild environment file is located at > '/var/tmp/portage/dev-lang/go-1.4.2/temp/environment'. > * Working directory: '/var/tmp/portage/dev-lang/go-1.4.2/work/go/src' > * S: '/var/tmp/portage/dev-lang/go-1.4.2/work/go' > > >>> Failed to emerge dev-lang/go-1.4.2, Log file: > > >>> '/var/tmp/portage/dev-lang/go-1.4.2/temp/build.log' > > * Messages for package dev-lang/go-1.4.2: > > * ERROR: dev-lang/go-1.4.2::gentoo failed (compile phase): > * build failed > * > * Call stack: > * ebuild.sh, line 93: Called src_compile > * environment, line 1886: 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.2::gentoo'`, > * the complete build log and the output of `emerge -pqv > '=dev-lang/go-1.4.2::gentoo'`. > * The complete build log is located at > '/var/tmp/portage/dev-lang/go-1.4.2/temp/build.log'. > * The ebuild environment file is located at > '/var/tmp/portage/dev-lang/go-1.4.2/temp/environment'. > * Working directory: '/var/tmp/portage/dev-lang/go-1.4.2/work/go/src' > * S: '/var/tmp/portage/dev-lang/go-1.4.2/work/go' > dev ~ # > > > > Not sure how the ebuild is picking CPU, but Im on a 64bit CPU anyway: > > dev ~ # lscpu > Architecture: x86_64 > CPU op-mode(s): 32-bit, 64-bit > Byte Order: Little Endian > CPU(s): 2 > On-line CPU(s) list: 0,1 > Thread(s) per core: 1 > Core(s) per socket: 1 > Socket(s): 2 > NUMA node(s): 1 > Vendor ID: GenuineIntel > CPU family: 6 > Model: 63 > Model name: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz > Stepping: 2 > CPU MHz: 2499.996 > BogoMIPS: 5001.32 > Hypervisor vendor: KVM > Virtualization type: full > L1d cache: 32K > L1i cache: 32K > L2 cache: 256K > L3 cache: 30720K > NUMA node0 CPU(s): 0,1 > dev ~ #
Post your emerge --info. Why do you have i686-pc-linux-gnu-gcc on a 64-bit machine? -- Fernando Rodriguez