Gentoo Archives: gentoo-user

From: Fernando Rodriguez <frodriguez.developer@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't update to go-1.4.2
Date: Fri, 04 Sep 2015 20:43:42
Message-Id: BLU437-SMTP271205BDC5DC472452078C8D570@phx.gbl
In Reply to: Re: [gentoo-user] Can't update to go-1.4.2 by Fernando Rodriguez
1 On Friday, September 04, 2015 4:28:43 PM Fernando Rodriguez wrote:
2 > On Friday, September 04, 2015 4:23:57 PM Ajai Khattri wrote:
3 > >
4 > > I know that Go 1.5 is limited to 64bit CPUs but im running on a 64bit CPU
5 > > and Im trying to update Go from 1.0 to the latest stable (which is 1.4.2
6 > > anyway):
7 > >
8 > > dev ~ # emerge -uDatv dev-lang/go
9 > >
10 > > * IMPORTANT: 8 news items need reading for repository 'gentoo'.
11 > > * Use eselect news read to view new items.
12 > >
13 > >
14 > > These are the packages that would be merged, in reverse order:
15 > >
16 > > Calculating dependencies... done!
17 > > [ebuild U ] dev-lang/go-1.4.2::gentoo [1.0.1::gentoo]
18 > > USE="(-bash-completion%*) (-emacs%) (-pax_kernel%) (-vim-syntax%*)
19 > > (-zsh-completion%)" 0 KiB
20 > >
21 > > Total: 1 package (1 upgrade), Size of downloads: 0 KiB
22 > >
23 > > Would you like to merge these packages? [Yes/No]
24 > >
25 > > >>> Verifying ebuild manifests
26 > >
27 > > >>> Emerging (1 of 1) dev-lang/go-1.4.2::gentoo
28 > > * go1.4.2.src.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...
29 [
30 > > ok ]
31 > > >>> Unpacking source...
32 > > >>> Unpacking go1.4.2.src.tar.gz to
33 > > /var/tmp/portage/dev-lang/go-1.4.2/work
34 > > >>> Source unpacked in /var/tmp/portage/dev-lang/go-1.4.2/work
35 > > >>> Preparing source in /var/tmp/portage/dev-lang/go-1.4.2/work/go ...
36 > > >>> Source prepared.
37 > > >>> Configuring source in /var/tmp/portage/dev-lang/go-1.4.2/work/go ...
38 > > >>> Source configured.
39 > > >>> Compiling source in /var/tmp/portage/dev-lang/go-1.4.2/work/go ...
40 > > # Building C bootstrap tool.
41 > > cmd/dist
42 > >
43 > > # Building compilers and Go bootstrap tool for host, linux/amd64.
44 > > lib9
45 > > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/atoi.c:1:0: error: CPU
46 > > you selected does not support x86-64 instruction set
47 > > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_p9dir.c:1:0: error:
48 > > CPU you selected does not support x86-64 instruction
49 > > set/var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/await.c:1:0: error:
50 > > CPU you selected does not support x86-64 instruction set
51 > >
52 > > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall
53 > > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces
54 > > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment
55 > > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0
56 > > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT
57 > > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/atoi.o
58 > > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/atoi.c
59 > > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_exits.c:1:0: error:
60 > > CPU you selected does not support x86-64 instruction set
61 > > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall
62 > > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces
63 > > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment
64 > > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0
65 > > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT
66 > > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/_exits.o
67 > > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_exits.c
68 > > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall
69 > > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces
70 > > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment
71 > > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0
72 > > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT
73 > > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/await.o
74 > > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/await.c
75 > > go tool dist: FAILED: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall
76 > > -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces
77 > > -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment
78 > > -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0
79 > > -c -m64 -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/include -DPLAN9PORT
80 > > -I /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9 -o $WORK/_p9dir.o
81 > > /var/tmp/portage/dev-lang/go-1.4.2/work/go/src/lib9/_p9dir.c
82 > > * ERROR: dev-lang/go-1.4.2::gentoo failed (compile phase):
83 > > * build failed
84 > > *
85 > > * Call stack:
86 > > * ebuild.sh, line 93: Called src_compile
87 > > * environment, line 1886: Called die
88 > > * The specific snippet of code:
89 > > * ./make.bash || die "build failed"
90 > > *
91 > > * If you need support, post the output of `emerge --info
92 > > '=dev-lang/go-1.4.2::gentoo'`,
93 > > * the complete build log and the output of `emerge -pqv
94 > > '=dev-lang/go-1.4.2::gentoo'`.
95 > > * The complete build log is located at
96 > > '/var/tmp/portage/dev-lang/go-1.4.2/temp/build.log'.
97 > > * The ebuild environment file is located at
98 > > '/var/tmp/portage/dev-lang/go-1.4.2/temp/environment'.
99 > > * Working directory: '/var/tmp/portage/dev-lang/go-1.4.2/work/go/src'
100 > > * S: '/var/tmp/portage/dev-lang/go-1.4.2/work/go'
101 > >
102 > > >>> Failed to emerge dev-lang/go-1.4.2, Log file:
103 > >
104 > > >>> '/var/tmp/portage/dev-lang/go-1.4.2/temp/build.log'
105 > >
106 > > * Messages for package dev-lang/go-1.4.2:
107 > >
108 > > * ERROR: dev-lang/go-1.4.2::gentoo failed (compile phase):
109 > > * build failed
110 > > *
111 > > * Call stack:
112 > > * ebuild.sh, line 93: Called src_compile
113 > > * environment, line 1886: Called die
114 > > * The specific snippet of code:
115 > > * ./make.bash || die "build failed"
116 > > *
117 > > * If you need support, post the output of `emerge --info
118 > > '=dev-lang/go-1.4.2::gentoo'`,
119 > > * the complete build log and the output of `emerge -pqv
120 > > '=dev-lang/go-1.4.2::gentoo'`.
121 > > * The complete build log is located at
122 > > '/var/tmp/portage/dev-lang/go-1.4.2/temp/build.log'.
123 > > * The ebuild environment file is located at
124 > > '/var/tmp/portage/dev-lang/go-1.4.2/temp/environment'.
125 > > * Working directory: '/var/tmp/portage/dev-lang/go-1.4.2/work/go/src'
126 > > * S: '/var/tmp/portage/dev-lang/go-1.4.2/work/go'
127 > > dev ~ #
128 > >
129 > >
130 > >
131 > > Not sure how the ebuild is picking CPU, but Im on a 64bit CPU anyway:
132 > >
133 > > dev ~ # lscpu
134 > > Architecture: x86_64
135 > > CPU op-mode(s): 32-bit, 64-bit
136 > > Byte Order: Little Endian
137 > > CPU(s): 2
138 > > On-line CPU(s) list: 0,1
139 > > Thread(s) per core: 1
140 > > Core(s) per socket: 1
141 > > Socket(s): 2
142 > > NUMA node(s): 1
143 > > Vendor ID: GenuineIntel
144 > > CPU family: 6
145 > > Model: 63
146 > > Model name: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
147 > > Stepping: 2
148 > > CPU MHz: 2499.996
149 > > BogoMIPS: 5001.32
150 > > Hypervisor vendor: KVM
151 > > Virtualization type: full
152 > > L1d cache: 32K
153 > > L1i cache: 32K
154 > > L2 cache: 256K
155 > > L3 cache: 30720K
156 > > NUMA node0 CPU(s): 0,1
157 > > dev ~ #
158 >
159 > Post your emerge --info.
160 > Why do you have i686-pc-linux-gnu-gcc on a 64-bit machine?
161
162 Looks like you installed from the wrong tarball...
163 There's this[1] you can use to change your CHOST but I don't think it'll work
164 to go from 32 to 64 bits.
165 You may need to (at your own risk) build a 64-bit kernel (on another machine
166 or with a cross compiler), reboot to it, unpack a 64 tarball except config
167 files, update CHOST on make.conf, and rebuild everything. And you will likely
168 run into problems along the way.
169
170 [1] https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable
171 --
172 Fernando Rodriguez