1 |
On 04-03-2018 21:26:45 +0100, Askar Bektassov (Аскар Бектасов) wrote: |
2 |
> Hi Fabian, |
3 |
> |
4 |
> Sorry for late reply. I changed make.conf as suggested, but still no luck. |
5 |
> |
6 |
> I observe that in the $EPREFIX/usr/lib/llvm/5/bin folder I only have symlinks |
7 |
> to x86_64-apple-darwin15-clang* files. So, I assume that unless I change the |
8 |
> symlinks, I am bound to use x86_64-apple-darwin15-clang* compiler. As a side |
9 |
> note, I tried installing gcc-apple as well, but it fails during configuration, |
10 |
> complaining about ld. |
11 |
|
12 |
On macOS, you MUST use clang. If you don't use it, you're on your own. |
13 |
Many of the system headers can only be used with recent Clang. |
14 |
|
15 |
> askarbektassov@Askars-iMac ~/Gentoo/usr/lib/llvm/5/bin $ emerge gcc-apple |
16 |
|
17 |
> gcc-config > .gcc-config |
18 |
> |
19 |
> x86_64-apple-darwin15-clang -march=native -O2 -pipe -Wall -Wextra |
20 |
> '-DEPREFIX="/Users/askarbektassov/Gentoo"' -Wl,-dead_strip_dylibs wrapper.c |
21 |
> -o wrapper |
22 |
> |
23 |
> chmod a+rx .gcc-config |
24 |
> |
25 |
> wrapper.c:281:14: warning: unused parameter 'argc' [-Wunused-parameter] |
26 |
> |
27 |
> int main(int argc, char *argv[]) |
28 |
> |
29 |
> ^ |
30 |
> |
31 |
> 1 warning generated. |
32 |
> |
33 |
> ld: failed to locate the real ld! |
34 |
|
35 |
Did you, or did you not change something in your make.conf? If so, what |
36 |
exactly did you change? I suspect you changed something vital. |
37 |
|
38 |
Fabian |
39 |
|
40 |
-- |
41 |
Fabian Groffen |
42 |
Gentoo on a different level |