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