Gentoo Archives: gentoo-alt

From: "Askar Bektassov (Аскар Бектасов)" <askar.bektassov@×××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] No gcc found, after eselect profile
Date: Sun, 04 Mar 2018 20:27:29
Message-Id: CAJkPO_SUt7fOQOPdAHXGhuJWd0pyPM9KWgSt0Ba0=s+jrm09Rw@mail.gmail.com
In Reply to: Re: [gentoo-alt] No gcc found, after eselect profile by "Askar Bektassov (Аскар Бектасов)"
1 Hi Fabian,
2
3 Sorry for late reply. I changed make.conf as suggested, but still no luck.
4
5 I observe that in the $EPREFIX/usr/lib/llvm/5/bin folder I only have
6 symlinks to x86_64-apple-darwin15-clang* files. So, I assume that unless I
7 change the symlinks, I am bound to use x86_64-apple-darwin15-clang*
8 compiler. As a side note, I tried installing gcc-apple as well, but it
9 fails during configuration, complaining about ld.
10
11 askarbektassov@Askars-iMac ~/Gentoo/usr/lib/llvm/5/bin $ emerge gcc-apple
12 Calculating dependencies... done!
13
14 >>> Verifying ebuild manifests
15 >>> Running pre-merge checks for sys-devel/gcc-apple-4.2.1_p5666-r2
16
17 >>> Emerging (1 of 7) sys-devel/gcc-config-1.9.1::gentoo_prefix
18 * gcc-config-1.9.1.tar.xz BLAKE2B SHA512 size ;-) ...
19
20 [ ok ]
21 >>> Unpacking source...
22 >>> Unpacking gcc-config-1.9.1.tar.xz to
23 /Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work
24 >>> Source unpacked in
25 /Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work
26 >>> Preparing source in
27 /Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work/gcc-config-1.9.1
28 ...
29 * Applying gcc-config-1.8-copy-gcc-libs-darwin.patch ...
30
31 [ ok ]
32 * Applying gcc-config-1.9-cygwin.patch ...
33
34 [ ok ]
35 * Applying gcc-config-1.9-usrbinenv-bash.patch ...
36
37 [ ok ]
38 >>> Source prepared.
39 >>> Configuring source in
40 /Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work/gcc-config-1.9.1
41 ...
42 >>> Source configured.
43 >>> Compiling source in
44 /Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work/gcc-config-1.9.1
45 ...
46 make SHELL=/Users/askarbektassov/Gentoo/bin/bash -j5
47 CC=x86_64-apple-darwin15-clang EPREFIX=/Users/askarbektassov/Gentoo
48 PV=1.9.1 SUBLIBDIR=lib
49 sed \
50 -e 's:@GENTOO_EPREFIX@:/Users/askarbektassov/Gentoo:g' \
51 -e 's:@GENTOO_LIBDIR@:lib:g' \
52 -e 's:@PV@:1.9.1:g' \
53 gcc-config > .gcc-config
54 x86_64-apple-darwin15-clang -march=native -O2 -pipe -Wall -Wextra
55 '-DEPREFIX="/Users/askarbektassov/Gentoo"' -Wl,-dead_strip_dylibs
56 wrapper.c -o wrapper
57 chmod a+rx .gcc-config
58 wrapper.c:281:14: warning: unused parameter 'argc' [-Wunused-parameter]
59 int main(int argc, char *argv[])
60 ^
61 1 warning generated.
62 ld: failed to locate the real ld!
63 clang-5.0: error: linker command failed with exit code 1 (use -v to see
64 invocation)
65 make: *** [<builtin>: wrapper] Error 1
66 * ERROR: sys-devel/gcc-config-1.9.1::gentoo_prefix failed (compile phase):
67 * emake failed
68 *
69 * If you need support, post the output of `emerge --info
70 '=sys-devel/gcc-config-1.9.1::gentoo_prefix'`,
71 * the complete build log and the output of `emerge -pqv
72 '=sys-devel/gcc-config-1.9.1::gentoo_prefix'`.
73 * The complete build log is located at
74 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/temp/build.log'.
75 * The ebuild environment file is located at
76 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/temp/environment'.
77 * Working directory:
78 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work/gcc-config-1.9.1'
79 * S:
80 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work/gcc-config-1.9.1'
81
82 >>> Failed to emerge sys-devel/gcc-config-1.9.1, Log file:
83
84 >>>
85 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/temp/build.log'
86
87 * Messages for package sys-devel/gcc-config-1.9.1:
88
89 * ERROR: sys-devel/gcc-config-1.9.1::gentoo_prefix failed (compile phase):
90 * emake failed
91 *
92 * If you need support, post the output of `emerge --info
93 '=sys-devel/gcc-config-1.9.1::gentoo_prefix'`,
94 * the complete build log and the output of `emerge -pqv
95 '=sys-devel/gcc-config-1.9.1::gentoo_prefix'`.
96 * The complete build log is located at
97 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/temp/build.log'.
98 * The ebuild environment file is located at
99 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/temp/environment'.
100 * Working directory:
101 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work/gcc-config-1.9.1'
102 * S:
103 '/Users/askarbektassov/Gentoo/var/tmp/portage/sys-devel/gcc-config-1.9.1/work/gcc-config-1.9.1'
104 --
105 Askar Bektassov (Аскар Бектасов)
106 Sent from webmail
107
108 For more info, LinkedIn <http://www.linkedin.com/in/askarbektassov>
109
110 On Tue, Feb 27, 2018 at 10:00 AM, Askar Bektassov (Аскар Бектасов) <
111 askar.bektassov@×××××.com> wrote:
112
113 > Hi Fabian,
114 >
115 > Thanks a lot, will be happy to try that when I get home! Will let you know.
116 >
117 > All the best,
118 >
119 > --
120 > Askar Bektassov (Аскар Бектасов)
121 > Sent from webmail
122 >
123 > For more info, LinkedIn <http://www.linkedin.com/in/askarbektassov>
124 >
125 > On Tue, Feb 27, 2018 at 9:56 AM, Fabian Groffen <grobian@g.o>
126 > wrote:
127 >
128 >> On 26-02-2018 22:45:50 +0100, Askar Bektassov (Аскар Бектасов) wrote:
129 >> > Hi folks,
130 >> >
131 >> > Not sure what I have done, but now emerge does not fine the compiler.
132 >>
133 >> On your mac the compile is called "clang". Once upon a time, Portage
134 >> showed this, but that change got rejected, so it acts like it's missing,
135 >> but in fact all is fine.
136 >>
137 >> Look at $EPREFIX/etc/portage/make.conf, you will find a few lines
138 >> setting CC and CXX and the like to ${CHOST}-clang values. This is how
139 >> it is made to work.
140 >>
141 >> Unrelated, but you can still emerge gcc-apple to get 4.2.1 version of
142 >> Apple's GCC (the latest) which fully operates with gcc-config and has
143 >> fortran support.
144 >>
145 >> Fabian
146 >>
147 >> >
148 >> > askarbektassov@Askars-iMac ~ $ emerge --info
149 >> >
150 >> > !!! No gcc found. You probably need to 'source /etc/profile'
151 >> >
152 >> > !!! to update the environment of this terminal and possibly
153 >> >
154 >> > !!! other terminals also.
155 >> >
156 >> > Portage 2.3.18-prefix (python 3.5.4-final-0,
157 >> prefix/darwin/macos/10.13/x64,
158 >> > [unavailable], unavailable, 17.4.0 x86_64)
159 >> >
160 >> > =================================================================
161 >> >
162 >> > System uname: Darwin-17.4.0-x86_64-i386-64bit
163 >> >
164 >> > Timestamp of repository gentoo_prefix: Mon, 26 Feb 2018 21:27:47 +0000
165 >> >
166 >> > sh bash 4.3_p48-r1
167 >> >
168 >> > app-shells/bash: 4.3_p48-r1::gentoo_prefix
169 >> >
170 >> > dev-lang/perl: 5.26.1-r1::gentoo_prefix
171 >> >
172 >> > dev-lang/python: 2.7.14::gentoo_prefix, 3.5.4::gentoo_prefix
173 >> >
174 >> > dev-util/cmake: 3.10.2::gentoo_prefix
175 >> >
176 >> > dev-util/pkgconfig: 0.29.2::gentoo_prefix
177 >> >
178 >> > sys-devel/autoconf: 2.69-r4::gentoo_prefix
179 >> >
180 >> > sys-devel/automake: 1.15.1-r1::gentoo_prefix
181 >> >
182 >> > sys-devel/libtool: 2.4.6-r4::gentoo_prefix
183 >> >
184 >> > sys-devel/make: 4.2.1-r1::gentoo_prefix
185 >> >
186 >> > Repositories:
187 >> >
188 >> > gentoo_prefix
189 >> >
190 >> > location: /Users/askarbektassov/Gentoo/usr/portage
191 >> >
192 >> > sync-type: rsync
193 >> >
194 >> > sync-uri: rsync://[1]rsync.prefix.bitzol
195 >> der.nl/gentoo-portage-prefix
196 >> >
197 >> > priority: -1000
198 >> >
199 >> > sync-rsync-extra-opts:
200 >> >
201 >> > ACCEPT_KEYWORDS="~x64-macos"
202 >> >
203 >> > ACCEPT_LICENSE="* -@EULA"
204 >> >
205 >> > CBUILD="x86_64-apple-darwin17"
206 >> >
207 >> > CC="x86_64-apple-darwin15-clang"
208 >> >
209 >> > CFLAGS="-march=native -O2 -pipe"
210 >> >
211 >> > CHOST="x86_64-apple-darwin17"
212 >> >
213 >> > CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
214 >> >
215 >> > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
216 >> > /etc/gentoo-release /etc/terminfo"
217 >> >
218 >> > CXX="x86_64-apple-darwin15-clang++"
219 >> >
220 >> > CXXFLAGS="-march=native -O2 -pipe"
221 >> >
222 >> > DISTDIR="/Users/askarbektassov/Gentoo/usr/portage/distfiles"
223 >> >
224 >> > FCFLAGS=""
225 >> >
226 >> > FEATURES="assume-digests binpkg-logs collision-protect
227 >> > config-protect-if-modified distlocks ebuild-locks fixlafiles
228 >> force-prefix
229 >> > merge-sync multilib-strict news nostrip parallel-fetch preserve-libs
230 >> > protect-owned sfperms strict unknown-features-warn unmerge-logs
231 >> unmerge-orphans
232 >> > unprivileged"
233 >> >
234 >> > FFLAGS=""
235 >> >
236 >> > GENTOO_MIRRORS="[2]http://distfiles.gentoo.org"
237 >> >
238 >> > LANG="en_US.UTF-8"
239 >> >
240 >> > LDFLAGS="-Wl,-dead_strip_dylibs"
241 >> >
242 >> > MAKEOPTS="-j5"
243 >> >
244 >> > PKGDIR="/Users/askarbektassov/Gentoo/usr/portage/packages"
245 >> >
246 >> > PORTAGE_CONFIGROOT="/Users/askarbektassov/Gentoo/"
247 >> >
248 >> > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
249 >> > --omit-dir-times --compress --force --whole-file --delete --stats
250 >> > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
251 >> > --exclude=/packages --exclude=/.git"
252 >> >
253 >> > PORTAGE_TMPDIR="/Users/askarbektassov/Gentoo/var/tmp"
254 >> >
255 >> > USE="aqua coreaudio cxx ipv6 modules ncurses nls objc objc++ prefix
256 >> prefix-guest
257 >> > readline ssl unicode x64-macos zlib" ABI_X86="64"
258 >> APACHE2_MODULES="authn_core
259 >> > authz_core socache_shmcb unixd actions alias auth_basic authn_alias
260 >> authn_anon
261 >> > authn_dbm authn_default authn_file authz_dbm authz_default
262 >> authz_groupfile
263 >> > authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs
264 >> dav_lock
265 >> > deflate dir disk_cache env expires ext_filter file_cache filter headers
266 >> include
267 >> > info log_config logio mem_cache mime mime_magic negotiation rewrite
268 >> setenvif
269 >> > speling status unique_id userdir usertrack vhost_alias"
270 >> CALLIGRA_FEATURES="kexi
271 >> > words flow plan sheets stage tables krita karbon braindump author"
272 >> > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
273 >> > CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="Darwin"
274 >> GPSD_PROTOCOLS="ashtech aivdm
275 >> > earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301
276 >> nmea ntrip
277 >> > navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq
278 >> superstar2
279 >> > timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse"
280 >> > KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
281 >> lcdm001
282 >> > mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
283 >> > presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice"
284 >> PHP_TARGETS="php5-6
285 >> > php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5"
286 >> > PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby24"
287 >> USERLAND="GNU"
288 >> > XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p
289 >> iface
290 >> > geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark
291 >> dhcpmac
292 >> > delude chaos account"
293 >> >
294 >> > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
295 >> LINGUAS,
296 >> > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
297 >> > PORTAGE_RSYNC_EXTRA_OPTS
298 >> >
299 >> > askarbektassov@Askars-iMac ~ $ eselect profile list
300 >> >
301 >> > Available profile symlink targets:
302 >> >
303 >> > [1] gentoo_prefix:prefix/darwin/macos/10.5/x64 (dev)
304 >> >
305 >> > [2] gentoo_prefix:prefix/darwin/macos/10.6/x64 (dev)
306 >> >
307 >> > [3] gentoo_prefix:prefix/darwin/macos/10.7/x64 (dev)
308 >> >
309 >> > [4] gentoo_prefix:prefix/darwin/macos/10.8/x64 (dev)
310 >> >
311 >> > [5] gentoo_prefix:prefix/darwin/macos/10.9/x64 (dev)
312 >> >
313 >> > [6] gentoo_prefix:prefix/darwin/macos/10.10/x64 (dev)
314 >> >
315 >> > [7] gentoo_prefix:prefix/darwin/macos/10.11/x64 (dev) *
316 >> >
317 >> > [8] gentoo_prefix:prefix/darwin/macos/10.12/x64 (dev)
318 >> >
319 >> > [9] gentoo_prefix:prefix/darwin/macos/10.13/x64 (dev)
320 >> >
321 >> > askarbektassov@Askars-iMac ~ $ binutils-config -c
322 >> >
323 >> > x86_64-apple-darwin15-8.2.1
324 >> >
325 >> > askarbektassov@Askars-iMac ~ $ binutils-config -l
326 >> >
327 >> > [1] x86_64-apple-darwin17-8.2.1 *
328 >> >
329 >> > The above two lines, make me think that I have messed up some
330 >> configuration
331 >> > which may have broken / changes symlinks. In any case, all packages
332 >> seem still
333 >> > to be installed.
334 >> >
335 >> > askarbektassov@Askars-iMac ~ $ emerge system -pv
336 >> >
337 >> > These are the packages that would be merged, in order:
338 >> >
339 >> > Calculating dependencies... done!
340 >> >
341 >> > [ebuild R ] app-arch/bzip2-1.0.6-r8:0/1::gentoo_prefix
342 >> USE="-static
343 >> > -static-libs" 0 KiB
344 >> >
345 >> > [ebuild R ] sys-devel/gnuconfig-20180101::gentoo_prefix 0 KiB
346 >> >
347 >> > [ebuild U ] sys-devel/patch-2.7.6-r1::gentoo_prefix
348 >> [2.7.6::gentoo_prefix]
349 >> > USE="-static {-test} -xattr" 0 KiB
350 >> >
351 >> > [ebuild R ] sys-libs/csu-85::gentoo_prefix 0 KiB
352 >> >
353 >> > [ebuild R ] sys-apps/which-2.21::gentoo_prefix 0 KiB
354 >> >
355 >> > [ebuild R ] app-arch/gzip-1.9::gentoo_prefix USE="-pic -static"
356 >> 0 KiB
357 >> >
358 >> > [ebuild R ] sys-process/pkill-darwin-1.0::gentoo_prefix 0 KiB
359 >> >
360 >> > [ebuild U ] sys-apps/less-530::gentoo_prefix [529::gentoo_prefix]
361 >> > USE="unicode -pcre" 0 KiB
362 >> >
363 >> > [ebuild R ] sys-apps/darwin-miscutils-12::gentoo_prefix 0 KiB
364 >> >
365 >> > [ebuild R ] virtual/pager-0::gentoo_prefix 0 KiB
366 >> >
367 >> > [ebuild R ] sys-devel/binutils-apple-8.2.1-r1:8::gentoo_prefix
368 >> > USE="-classic -lto -tapi {-test}" 0 KiB
369 >> >
370 >> > [ebuild R ] app-arch/xz-utils-5.2.3::gentoo_prefix
371 >> USE="extra-filters nls
372 >> > threads -static-libs" 0 KiB
373 >> >
374 >> > [ebuild R ] sys-apps/file-5.32::gentoo_prefix USE="zlib -python
375 >> > -static-libs" PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-python3_4)
376 >> > -python3_6" 0 KiB
377 >> >
378 >> > [ebuild R ] sys-apps/baselayout-prefix-2.2-r5::gentoo_prefix 0
379 >> KiB
380 >> >
381 >> > [ebuild U ] sys-apps/coreutils-8.29::gentoo_prefix
382 >> [8.28-r1::gentoo_prefix]
383 >> > USE="nls (-acl) (-caps) -gmp -hostname -kill -multicall (-selinux)
384 >> -static
385 >> > {-test} -vanilla -xattr (-stdbuf%*) (-uptime%)" 0 KiB
386 >> >
387 >> > [ebuild R ] virtual/service-manager-0::gentoo_prefix
388 >> USE="(prefix)" 0 KiB
389 >> >
390 >> > [ebuild R ] virtual/man-0-r1::gentoo_prefix 0 KiB
391 >> >
392 >> > [ebuild R ] virtual/editor-0::gentoo_prefix 0 KiB
393 >> >
394 >> > [ebuild R ] virtual/ssh-0::gentoo_prefix USE="-minimal" 0 KiB
395 >> >
396 >> > [ebuild R ] sys-apps/sed-4.2.2::gentoo_prefix USE="nls (-acl)
397 >> (-selinux)
398 >> > -static" 0 KiB
399 >> >
400 >> > [ebuild R ] app-arch/tar-1.30::gentoo_prefix USE="nls (-acl)
401 >> -minimal
402 >> > (-selinux) -static -xattr" 0 KiB
403 >> >
404 >> > [ebuild U ] sys-devel/make-4.2.1-r2::gentoo_prefix
405 >> > [4.2.1-r1::gentoo_prefix] USE="nls -guile -static" 0 KiB
406 >> >
407 >> > [ebuild U ] sys-apps/gawk-4.2.1::gentoo_prefix
408 >> [4.2.0::gentoo_prefix]
409 >> > USE="nls readline -mpfr" 2,916 KiB
410 >> >
411 >> > [ebuild R ] sys-apps/diffutils-3.6::gentoo_prefix USE="nls
412 >> -static" 0 KiB
413 >> >
414 >> > [ebuild R ] sys-apps/findutils-4.6.0-r1::gentoo_prefix USE="nls
415 >> (-selinux)
416 >> > -static {-test}" 0 KiB
417 >> >
418 >> > [ebuild R ] app-shells/bash-4.3_p48-r1::gentoo_prefix USE="net
419 >> nls
420 >> > (readline) -afs -bashlogger -examples -mem-scramble -plugins" 0 KiB
421 >> >
422 >> > [ebuild R ] virtual/package-manager-0::gentoo_prefix 0 KiB
423 >> >
424 >> > [ebuild R ] net-misc/rsync-3.1.3::gentoo_prefix USE="ipv6 (-acl)
425 >> -examples
426 >> > -iconv -static -stunnel -xattr" 0 KiB
427 >> >
428 >> > [ebuild R ] net-misc/wget-1.19.4::gentoo_prefix USE="ipv6 nls
429 >> ssl zlib
430 >> > -debug -gnutls -idn -libressl -ntlm -pcre -static {-test} -uuid" 0 KiB
431 >> >
432 >> > [ebuild R ] sys-apps/grep-3.1::gentoo_prefix USE="nls -pcre
433 >> -static" 0 KiB
434 >> >
435 >> > [ebuild R ] sys-devel/clang-5.0.1:5::gentoo_prefix
436 >> USE="static-analyzer
437 >> > -debug -default-compiler-rt -default-libcxx -doc {-test} -xml (-z3)"
438 >> > LLVM_TARGETS="BPF (X86) -AArch64 -AMDGPU -ARM -Hexagon -Lanai -MSP430
439 >> -Mips
440 >> > -NVPTX -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 0 KiB
441 >> >
442 >> > Total: 31 packages (5 upgrades, 26 reinstalls), Size of downloads:
443 >> 2,916 KiB
444 >> >
445 >> > Any clue?
446 >> >
447 >> > --
448 >> > Askar Bektassov (Аскар Бектасов)
449 >> >
450 >> > Sent from webmail
451 >> >
452 >> > For more info, [3]LinkedIn
453 >> >
454 >> >
455 >> >
456 >> > References:
457 >> > 1. http://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
458 >> > 2. http://distfiles.gentoo.org
459 >> > 3. http://www.linkedin.com/in/askarbektassov
460 >> >
461 >> > read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
462 >> --
463 >> Fabian Groffen
464 >> Gentoo on a different level
465 >>
466 >
467 >

Replies

Subject Author
Re: [gentoo-alt] No gcc found, after eselect profile Fabian Groffen <grobian@g.o>