public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Can't update to go-1.4.2
@ 2015-09-04 20:23 Ajai Khattri
  2015-09-04 20:28 ` Fernando Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Ajai Khattri @ 2015-09-04 20:23 UTC (permalink / raw
  To: gentoo-user


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 ~ #


-- 
Aj


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Can't update to go-1.4.2
  2015-09-04 20:23 [gentoo-user] Can't update to go-1.4.2 Ajai Khattri
@ 2015-09-04 20:28 ` Fernando Rodriguez
  2015-09-04 20:42   ` Fernando Rodriguez
  2015-09-09 19:37   ` Ajai Khattri
  0 siblings, 2 replies; 8+ messages in thread
From: Fernando Rodriguez @ 2015-09-04 20:28 UTC (permalink / raw
  To: gentoo-user

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Can't update to go-1.4.2
  2015-09-04 20:28 ` Fernando Rodriguez
@ 2015-09-04 20:42   ` Fernando Rodriguez
  2015-09-09 19:37   ` Ajai Khattri
  1 sibling, 0 replies; 8+ messages in thread
From: Fernando Rodriguez @ 2015-09-04 20:42 UTC (permalink / raw
  To: gentoo-user

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Can't update to go-1.4.2
  2015-09-04 20:28 ` Fernando Rodriguez
  2015-09-04 20:42   ` Fernando Rodriguez
@ 2015-09-09 19:37   ` Ajai Khattri
  2015-09-09 19:49     ` Alan McKinnon
  2015-09-09 23:04     ` Fernando Rodriguez
  1 sibling, 2 replies; 8+ messages in thread
From: Ajai Khattri @ 2015-09-09 19:37 UTC (permalink / raw
  To: gentoo-user

On Fri, 4 Sep 2015, Fernando Rodriguez wrote:

> Post your emerge --info.
> Why do you have  i686-pc-linux-gnu-gcc on a 64-bit machine?

FYI, this is 32bit Gentoo running on a 64bit virtual machine (so it has a 
64bit kernel) because awhile ago I upgraded from a 32bit setup. Was hoping 
I wouldn't have to reinstall the whole OS...

Output from emerge --info:

Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.6.3, 
glibc-2.20-r2, 4.1.5-x86_64-linode61 x86_64)
=================================================================
System uname: 
Linux-4.1.5-x86_64-linode61-x86_64-Intel-R-_Xeon-R-_CPU_E5-2680_v3_@_2.50GHz-with-gentoo-2.2
KiB Mem:     2047052 total,     24452 free
KiB Swap:     524284 total,    523404 free
Timestamp of repository gentoo: Mon, 17 Aug 2015 20:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.4.6::gentoo, 2.5.4-r4::gentoo, 2.6.9::gentoo, 
2.7.9-r1::gentoo, 3.1.4-r3::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 
3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.12.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::<unknown repository>, 2.69::gentoo
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown 
repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 
1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 
1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 
1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.1.2::<unknown repository>, 4.3.4::gentoo, 
4.4.5::gentoo, 4.5.4::gentoo, 4.6.3::gentoo, 4.7.3-r1::gentoo, 
4.8.4::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: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

x-portage
     location: /usr/local/portage
     masters: gentoo
     priority: 0

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d 
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release 
/etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ 
/etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ 
/etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ 
/etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ 
/etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-O2 -mtune=i686 -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"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ 
http://gentoo.llarian.net/ http://mirrors.rit.edu/gentoo/ 
http://gentoo.netnitco.net"
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"
USE="apache2 bash-completion berkdb bzip2 cli cracklib crypt cxx dri gdbm 
iconv ipv6 ithreads modules ncurses nls nptl nptlonly openmp pam pcre 
readline seccomp session ssl tcpd threads unicode x86 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="actions alias auth_basic auth_digest authn_anon authn_dbd 
authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile 
authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd 
deflate dir disk_cache env expires ext_filter file_cache filter headers 
ident imagemap include info log_config logio mem_cache mime mime_magic 
negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http 
rewrite setenvif so speling status unique_id userdir usertrack 
vhost_alias" APACHE2_MPMS="worker" 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 
ssse3" 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-6" PYTHON_SINGLE_TARGET="python2_7" 
PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" 
VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage 
sis tdfx trident vesa via vmware 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, LANG, 
LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



  --
A


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Can't update to go-1.4.2
  2015-09-09 19:37   ` Ajai Khattri
@ 2015-09-09 19:49     ` Alan McKinnon
  2015-09-12 12:41       ` Bruce Schultz
  2015-09-09 23:04     ` Fernando Rodriguez
  1 sibling, 1 reply; 8+ messages in thread
From: Alan McKinnon @ 2015-09-09 19:49 UTC (permalink / raw
  To: gentoo-user

On 09/09/2015 21:37, Ajai Khattri wrote:
> On Fri, 4 Sep 2015, Fernando Rodriguez wrote:
> 
>> Post your emerge --info.
>> Why do you have  i686-pc-linux-gnu-gcc on a 64-bit machine?
> 
> FYI, this is 32bit Gentoo running on a 64bit virtual machine (so it has
> a 64bit kernel) because awhile ago I upgraded from a 32bit setup. Was
> hoping I wouldn't have to reinstall the whole OS...


You have a 64 bit kernel, this is true, but a 32 bit userland.

I don't know how Go does these things but apps don't usually talk to the
kernel directly, they talk to libc. Which in your case is ... 32 bit

Reinstall.

A 32 bit to 64 bit migration may or may not be possible (I never
attempted it) but one thing is sure, it will not be easy.




-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Can't update to go-1.4.2
  2015-09-09 19:37   ` Ajai Khattri
  2015-09-09 19:49     ` Alan McKinnon
@ 2015-09-09 23:04     ` Fernando Rodriguez
  2015-09-09 23:08       ` Fernando Rodriguez
  1 sibling, 1 reply; 8+ messages in thread
From: Fernando Rodriguez @ 2015-09-09 23:04 UTC (permalink / raw
  To: gentoo-user

On Wednesday, September 09, 2015 3:37:36 PM Ajai Khattri wrote:
> On Fri, 4 Sep 2015, Fernando Rodriguez wrote:
> 
> > Post your emerge --info.
> > Why do you have  i686-pc-linux-gnu-gcc on a 64-bit machine?
> 
> FYI, this is 32bit Gentoo running on a 64bit virtual machine (so it has a 
> 64bit kernel) because awhile ago I upgraded from a 32bit setup. Was hoping 
> I wouldn't have to reinstall the whole OS...
> 
> Output from emerge --info:
> 
> Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.6.3, 
> glibc-2.20-r2, 4.1.5-x86_64-linode61 x86_64)
> =================================================================
> System uname: 
> Linux-4.1.5-x86_64-linode61-x86_64-Intel-R-_Xeon-R-
_CPU_E5-2680_v3_@_2.50GHz-with-gentoo-2.2
> KiB Mem:     2047052 total,     24452 free
> KiB Swap:     524284 total,    523404 free
> Timestamp of repository gentoo: Mon, 17 Aug 2015 20:30:01 +0000
> sh bash 4.3_p33-r2
> ld GNU ld (Gentoo 2.24 p1.4) 2.24
> app-shells/bash:          4.3_p33-r2::gentoo
> dev-lang/perl:            5.20.2::gentoo
> dev-lang/python:          2.4.6::gentoo, 2.5.4-r4::gentoo, 2.6.9::gentoo, 
> 2.7.9-r1::gentoo, 3.1.4-r3::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 
> 3.4.1::gentoo
> dev-util/cmake:           3.2.2::gentoo
> dev-util/pkgconfig:       0.28-r2::gentoo
> sys-apps/baselayout:      2.2::gentoo
> sys-apps/openrc:          0.12.4::gentoo
> sys-apps/sandbox:         2.6-r1::gentoo
> sys-devel/autoconf:       2.13::<unknown repository>, 2.69::gentoo
> sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown 
> repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 
> 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 
> 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 
> 1.14.1::gentoo, 1.15::gentoo
> sys-devel/binutils:       2.24-r3::gentoo
> sys-devel/gcc:            4.1.2::<unknown repository>, 4.3.4::gentoo, 
> 4.4.5::gentoo, 4.5.4::gentoo, 4.6.3::gentoo, 4.7.3-r1::gentoo, 
> 4.8.4::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: 3.18::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.20-r2::gentoo
> Repositories:
> 
> gentoo
>      location: /usr/portage
>      sync-type: rsync
>      sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>      priority: -1000
> 
> x-portage
>      location: /usr/local/portage
>      masters: gentoo
>      priority: 0
> 
> ACCEPT_KEYWORDS="x86"
> ACCEPT_LICENSE="* -@EULA"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O2 -mtune=i686 -pipe"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d 
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release 
> /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ 
> /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ 
> /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ 
> /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ 
> /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-O2 -mtune=i686 -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"
> FFLAGS="-O2 -march=i686 -pipe"
> GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ 
> http://gentoo.llarian.net/ http://mirrors.rit.edu/gentoo/ 
> http://gentoo.netnitco.net"
> 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"
> USE="apache2 bash-completion berkdb bzip2 cli cracklib crypt cxx dri gdbm 
> iconv ipv6 ithreads modules ncurses nls nptl nptlonly openmp pam pcre 
> readline seccomp session ssl tcpd threads unicode x86 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="actions alias auth_basic auth_digest authn_anon authn_dbd 
> authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile 
> authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd 
> deflate dir disk_cache env expires ext_filter file_cache filter headers 
> ident imagemap include info log_config logio mem_cache mime mime_magic 
> negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http 
> rewrite setenvif so speling status unique_id userdir usertrack 
> vhost_alias" APACHE2_MPMS="worker" 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 
> ssse3" 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-6" PYTHON_SINGLE_TARGET="python2_7" 
> PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" 
> VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage 
> sis tdfx trident vesa via vmware 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, LANG, 
> LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
> PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
> 
> 
> 
>   --
> A
> 

You may be able to enable the 64bit ABI just for go. I recently did the same 
to enable x32 abi on amd64 for experimenting (which BTW, according to CERN's 
evaluation can save up to 30% memory and 30% cpu usage over amd64 for some 
applications). This is how I did it:

1. From an amd64 stage3 grab the following files and copy them to your system 
(of the libraries you may only need libc.so.6 but I copied them all to be 
safe):

/lib64/libc.so*
/lib64/libm.so*
/lib64/libpthread.so*
/lib64/libdl.so*
/usr/include/gnu/stubs-64.h

2. Add the following to /etc/portage/make.conf:

MULTILIB_ABIS="amd64 x86"

3. Add the following to /etc/portage/profile/use.mask:

-abi_x86_64

4. Rebuild binutils, gcc and glibc (make sure this rebuilds the gcc version 
for the profile that you're using):

# emerge -v sys-devel/binutils sys-devel/gcc sys-libs/glibc

5. Add the following to /etc/portage/env/dev-lang/go and emerge go (if it 
fails to build uncomment the LDFLAGS like, it causes configure failures with 
some packages):

CFLAGS="-m64"
CXXFLAGS="-m64"
#LDFLAGS="-m elf64_x86_64"

This worked for me because the x86_64 gcc can compile x32 code. I believe i686 
can do the same for amd64, it only needs to be rebuilt to get the helper 
libraries (libgcc and friends). Of course, if any other go ebuilds have 
dependencies on other libraries you will have to add the abi_x86_64 use flag 
manually to those libraries (autounmask and the dep solver won't figure it out) 
but you only need to do this for leaf packages that you want to build with an 
alternate ABI. I think you can run "ABI=amd64 emerge ..." to have portage 
solve it but haven't tried it. If you decide to try this let me know if it 
worked.

-- 
Fernando Rodriguez


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Can't update to go-1.4.2
  2015-09-09 23:04     ` Fernando Rodriguez
@ 2015-09-09 23:08       ` Fernando Rodriguez
  0 siblings, 0 replies; 8+ messages in thread
From: Fernando Rodriguez @ 2015-09-09 23:08 UTC (permalink / raw
  To: gentoo-user

On Wednesday, September 09, 2015 7:04:11 PM Fernando Rodriguez wrote:
> On Wednesday, September 09, 2015 3:37:36 PM Ajai Khattri wrote:
> > On Fri, 4 Sep 2015, Fernando Rodriguez wrote:
> > 
> > > Post your emerge --info.
> > > Why do you have  i686-pc-linux-gnu-gcc on a 64-bit machine?
> > 
> > FYI, this is 32bit Gentoo running on a 64bit virtual machine (so it has a 
> > 64bit kernel) because awhile ago I upgraded from a 32bit setup. Was hoping 
> > I wouldn't have to reinstall the whole OS...
> > 
> > Output from emerge --info:
> > 
> > Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.6.3, 
> > glibc-2.20-r2, 4.1.5-x86_64-linode61 x86_64)
> > =================================================================
> > System uname: 
> > Linux-4.1.5-x86_64-linode61-x86_64-Intel-R-_Xeon-R-
> _CPU_E5-2680_v3_@_2.50GHz-with-gentoo-2.2
> > KiB Mem:     2047052 total,     24452 free
> > KiB Swap:     524284 total,    523404 free
> > Timestamp of repository gentoo: Mon, 17 Aug 2015 20:30:01 +0000
> > sh bash 4.3_p33-r2
> > ld GNU ld (Gentoo 2.24 p1.4) 2.24
> > app-shells/bash:          4.3_p33-r2::gentoo
> > dev-lang/perl:            5.20.2::gentoo
> > dev-lang/python:          2.4.6::gentoo, 2.5.4-r4::gentoo, 2.6.9::gentoo, 
> > 2.7.9-r1::gentoo, 3.1.4-r3::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 
> > 3.4.1::gentoo
> > dev-util/cmake:           3.2.2::gentoo
> > dev-util/pkgconfig:       0.28-r2::gentoo
> > sys-apps/baselayout:      2.2::gentoo
> > sys-apps/openrc:          0.12.4::gentoo
> > sys-apps/sandbox:         2.6-r1::gentoo
> > sys-devel/autoconf:       2.13::<unknown repository>, 2.69::gentoo
> > sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown 
> > repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 
> > 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 
> > 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 
> > 1.14.1::gentoo, 1.15::gentoo
> > sys-devel/binutils:       2.24-r3::gentoo
> > sys-devel/gcc:            4.1.2::<unknown repository>, 4.3.4::gentoo, 
> > 4.4.5::gentoo, 4.5.4::gentoo, 4.6.3::gentoo, 4.7.3-r1::gentoo, 
> > 4.8.4::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: 3.18::gentoo (virtual/os-headers)
> > sys-libs/glibc:           2.20-r2::gentoo
> > Repositories:
> > 
> > gentoo
> >      location: /usr/portage
> >      sync-type: rsync
> >      sync-uri: rsync://rsync.gentoo.org/gentoo-portage
> >      priority: -1000
> > 
> > x-portage
> >      location: /usr/local/portage
> >      masters: gentoo
> >      priority: 0
> > 
> > ACCEPT_KEYWORDS="x86"
> > ACCEPT_LICENSE="* -@EULA"
> > CBUILD="i686-pc-linux-gnu"
> > CFLAGS="-O2 -mtune=i686 -pipe"
> > CHOST="i686-pc-linux-gnu"
> > CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
> > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d 
> > /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release 
> > /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ 
> > /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ 
> > /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ 
> > /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ 
> > /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-O2 -mtune=i686 -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"
> > FFLAGS="-O2 -march=i686 -pipe"
> > GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ 
> > http://gentoo.llarian.net/ http://mirrors.rit.edu/gentoo/ 
> > http://gentoo.netnitco.net"
> > 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"
> > USE="apache2 bash-completion berkdb bzip2 cli cracklib crypt cxx dri gdbm 
> > iconv ipv6 ithreads modules ncurses nls nptl nptlonly openmp pam pcre 
> > readline seccomp session ssl tcpd threads unicode x86 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="actions alias auth_basic auth_digest authn_anon authn_dbd 
> > authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile 
> > authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd 
> > deflate dir disk_cache env expires ext_filter file_cache filter headers 
> > ident imagemap include info log_config logio mem_cache mime mime_magic 
> > negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http 
> > rewrite setenvif so speling status unique_id userdir usertrack 
> > vhost_alias" APACHE2_MPMS="worker" 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 
> > ssse3" 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-6" PYTHON_SINGLE_TARGET="python2_7" 
> > PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" 
> > VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage 
> > sis tdfx trident vesa via vmware 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, LANG, 
> > LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
> > PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
> > 
> > 
> > 
> >   --
> > A
> > 
> 
> You may be able to enable the 64bit ABI just for go. I recently did the same 
> to enable x32 abi on amd64 for experimenting (which BTW, according to CERN's 
> evaluation can save up to 30% memory and 30% cpu usage over amd64 for some 
> applications). This is how I did it:
> 
> 1. From an amd64 stage3 grab the following files and copy them to your system 
> (of the libraries you may only need libc.so.6 but I copied them all to be 
> safe):
> 
> /lib64/libc.so*
> /lib64/libm.so*
> /lib64/libpthread.so*
> /lib64/libdl.so*
> /usr/include/gnu/stubs-64.h
> 
> 2. Add the following to /etc/portage/make.conf:
> 
> MULTILIB_ABIS="amd64 x86"

I don't know if order matters here, but make it "x86 amd64" just in case, Mine 
is "amd64 x86 x32".
 
> 3. Add the following to /etc/portage/profile/use.mask:
> 
> -abi_x86_64
> 
> 4. Rebuild binutils, gcc and glibc (make sure this rebuilds the gcc version 
> for the profile that you're using):
> 
> # emerge -v sys-devel/binutils sys-devel/gcc sys-libs/glibc
> 
> 5. Add the following to /etc/portage/env/dev-lang/go and emerge go (if it 
> fails to build uncomment the LDFLAGS like, it causes configure failures with 
> some packages):
> 
> CFLAGS="-m64"
> CXXFLAGS="-m64"
> #LDFLAGS="-m elf64_x86_64"
> 
> This worked for me because the x86_64 gcc can compile x32 code. I believe 
i686 
> can do the same for amd64, it only needs to be rebuilt to get the helper 
> libraries (libgcc and friends). Of course, if any other go ebuilds have 
> dependencies on other libraries you will have to add the abi_x86_64 use flag 
> manually to those libraries (autounmask and the dep solver won't figure it 
out) 
> but you only need to do this for leaf packages that you want to build with 
an 
> alternate ABI. I think you can run "ABI=amd64 emerge ..." to have portage 
> solve it but haven't tried it. If you decide to try this let me know if it 
> worked.
> 
> 

-- 
Fernando Rodriguez


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Can't update to go-1.4.2
  2015-09-09 19:49     ` Alan McKinnon
@ 2015-09-12 12:41       ` Bruce Schultz
  0 siblings, 0 replies; 8+ messages in thread
From: Bruce Schultz @ 2015-09-12 12:41 UTC (permalink / raw
  To: gentoo-user

On 10/09/15 05:49, Alan McKinnon wrote:
> On 09/09/2015 21:37, Ajai Khattri wrote:
>> On Fri, 4 Sep 2015, Fernando Rodriguez wrote:
>>
>>> Post your emerge --info.
>>> Why do you have  i686-pc-linux-gnu-gcc on a 64-bit machine?
>> FYI, this is 32bit Gentoo running on a 64bit virtual machine (so it has
>> a 64bit kernel) because awhile ago I upgraded from a 32bit setup. Was
>> hoping I wouldn't have to reinstall the whole OS...
>
> You have a 64 bit kernel, this is true, but a 32 bit userland.
>
> I don't know how Go does these things but apps don't usually talk to the
> kernel directly, they talk to libc. Which in your case is ... 32 bit
>
> Reinstall.
Not necessary. It builds successfully with the command:

linux32 emerge go

Without the linux32 pre-command, the go build system detects the system 
as "linux/amd64". However, when adding it the system is identified as 
"linux/386".

(But beware that it will probably cause issues when you update in future)

I've been running a system with 64 bit kernel and 32 bit userspace for 
quite a few years and its only the 4th issue I've hit, so while its 
generally not supported, it still works mostly. For reference, the other 
issues I've hit are:
  - kernel ABI incompatibility with autofs (fixed in a later kernel)
  - virtualbox kernel modules needed to be built 64 bit
  - steam has issues detecting system & tries to launch 64 bit binaries 
(I'll try the linux32 trick with that later too)

I'd never had more than passing interest in go, but tonight I've started 
working through the tutorial & I think I'll keep playing with it for a bit.

Cheers
Bruce

--
:b


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-09-12 12:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-04 20:23 [gentoo-user] Can't update to go-1.4.2 Ajai Khattri
2015-09-04 20:28 ` Fernando Rodriguez
2015-09-04 20:42   ` Fernando Rodriguez
2015-09-09 19:37   ` Ajai Khattri
2015-09-09 19:49     ` Alan McKinnon
2015-09-12 12:41       ` Bruce Schultz
2015-09-09 23:04     ` Fernando Rodriguez
2015-09-09 23:08       ` Fernando Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox