From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 65C5D1385DD for ; Fri, 4 Sep 2015 20:43:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF51C1426A; Fri, 4 Sep 2015 20:43:26 +0000 (UTC) Received: from BLU004-OMC1S29.hotmail.com (blu004-omc1s29.hotmail.com [65.55.116.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C34EF141F3 for ; Fri, 4 Sep 2015 20:43:25 +0000 (UTC) Received: from BLU437-SMTP27 ([65.55.116.8]) by BLU004-OMC1S29.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 4 Sep 2015 13:43:24 -0700 X-TMN: [qPjihZw7mS6GxF1O7h9Mq8bVvh0pJbt6] X-Originating-Email: [frodriguez.developer@outlook.com] Message-ID: From: Fernando Rodriguez To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can't update to go-1.4.2 Date: Fri, 4 Sep 2015 16:42:42 -0400 User-Agent: KMail/4.14.8 (Linux/3.18.20; KDE/4.14.8; x86_64; ; ) In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 04 Sep 2015 20:43:24.0008 (UTC) FILETIME=[57CC3680:01D0E752] X-Archives-Salt: 58900d6d-397f-47a1-9d15-7fa1f6f7a11f X-Archives-Hash: 4f13141bd9d6af8c7946944b9fc8a0e1 On Friday, September 04, 2015 4:28:43 PM Fernando Rodriguez wrote: > 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? Looks like you installed from the wrong tarball... There's this[1] you can use to change your CHOST but I don't think it'll work to go from 32 to 64 bits. You may need to (at your own risk) build a 64-bit kernel (on another machine or with a cross compiler), reboot to it, unpack a 64 tarball except config files, update CHOST on make.conf, and rebuild everything. And you will likely run into problems along the way. [1] https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable -- Fernando Rodriguez