1 |
Hi Fabian, |
2 |
|
3 |
I do not recall changing make.conf file, before I started getting issues, which seem to have exhibited after my last “emerge world -uDN”. |
4 |
|
5 |
At that time, I upgraded llvm/clang 3.9.1 to 5.0.1 and I remember I run into some blocking packages. After a bit of tinkering, the thing just worked. However, as soon the upgrade completed, I had the bright idea of upgrading the profile with eselect. |
6 |
|
7 |
Then, the mystery. I might have run couple of times “emerge world -uDN” without encountering problems, but then at certain point emerge started complaining about the missing compiler. If nothing works, I can recover the last working prefix from time machine and try the upgrade once again. |
8 |
|
9 |
Below, my current make.conf file. |
10 |
|
11 |
Askars-iMac:portage askarbektassov$ cat make.conf |
12 |
# System compiler on Darwin Prefix is Clang, do not remove this |
13 |
#CC=x86_64-apple-darwin15-clang |
14 |
#CXX=x86_64-apple-darwin15-clang++ |
15 |
#BUILD_CC=x86_64-apple-darwin15-clang |
16 |
#BUILD_CXX=x86_64-apple-darwin15-clang++ |
17 |
|
18 |
# As per grobian@g.o suggestion on 27/02/2018 |
19 |
CC=${CHOST}-clang |
20 |
CXX=${CHOST}-clang++ |
21 |
BUILD_CC=${CHOST}-clang |
22 |
BUILD_CXX=${CHOST}-clang++ |
23 |
|
24 |
# Added by bootstrap-prefix.sh for x86_64-apple-darwin15 |
25 |
USE="unicode nls" |
26 |
CFLAGS="${CFLAGS} -O2 -pipe" |
27 |
CXXFLAGS="${CFLAGS}" |
28 |
MAKEOPTS="-j5" |
29 |
CONFIG_SHELL="/Users/askarbektassov/Gentoo/bin/bash" |
30 |
|
31 |
# This disables /usr-split, removing this will break |
32 |
PREFIX_DISABLE_GEN_USR_LDSCRIPT=yes |
33 |
Askars-iMac:portage askarbektassov$ |
34 |
-- |
35 |
Askar Bektassov (Аскар Бектасов) |
36 |
Sent from tablet, please excuse my brevity and typos |
37 |
|
38 |
> On 4 Mar 2018, at 21:34, Fabian Groffen <grobian@g.o> wrote: |
39 |
> |
40 |
>> On 04-03-2018 21:26:45 +0100, Askar Bektassov (Аскар Бектасов) wrote: |
41 |
>> Hi Fabian, |
42 |
>> |
43 |
>> Sorry for late reply. I changed make.conf as suggested, but still no luck. |
44 |
>> |
45 |
>> I observe that in the $EPREFIX/usr/lib/llvm/5/bin folder I only have symlinks |
46 |
>> to x86_64-apple-darwin15-clang* files. So, I assume that unless I change the |
47 |
>> symlinks, I am bound to use x86_64-apple-darwin15-clang* compiler. As a side |
48 |
>> note, I tried installing gcc-apple as well, but it fails during configuration, |
49 |
>> complaining about ld. |
50 |
> |
51 |
> On macOS, you MUST use clang. If you don't use it, you're on your own. |
52 |
> Many of the system headers can only be used with recent Clang. |
53 |
> |
54 |
>> askarbektassov@Askars-iMac ~/Gentoo/usr/lib/llvm/5/bin $ emerge gcc-apple |
55 |
> |
56 |
>> gcc-config > .gcc-config |
57 |
>> |
58 |
>> x86_64-apple-darwin15-clang -march=native -O2 -pipe -Wall -Wextra |
59 |
>> '-DEPREFIX="/Users/askarbektassov/Gentoo"' -Wl,-dead_strip_dylibs wrapper.c |
60 |
>> -o wrapper |
61 |
>> |
62 |
>> chmod a+rx .gcc-config |
63 |
>> |
64 |
>> wrapper.c:281:14: warning: unused parameter 'argc' [-Wunused-parameter] |
65 |
>> |
66 |
>> int main(int argc, char *argv[]) |
67 |
>> |
68 |
>> ^ |
69 |
>> |
70 |
>> 1 warning generated. |
71 |
>> |
72 |
>> ld: failed to locate the real ld! |
73 |
> |
74 |
> Did you, or did you not change something in your make.conf? If so, what |
75 |
> exactly did you change? I suspect you changed something vital. |
76 |
> |
77 |
> Fabian |
78 |
> |
79 |
> -- |
80 |
> Fabian Groffen |
81 |
> Gentoo on a different level |