1 |
Çäðàâñòâóéòå, Ñóïîòíèöêèé. |
2 |
|
3 |
Âû ïèñàëè 6 îêòÿáðÿ 2005 ã., 7:40:52: |
4 |
СС> configure: error: C compiler cannot create executables |
5 |
Íà ôîðóìå gentoo â òîïèêå GF20: C compiler cannot create executables |
6 |
( http://forums.gentoo.org/viewtopic-t-294109.html ) |
7 |
|
8 |
Q: Why am I getting the following error? |
9 |
|
10 |
Code: |
11 |
configure: error: C compiler cannot create executables |
12 |
|
13 |
|
14 |
A: The first thing to check when you get this error is the spelling of your CFLAGS. You should also check whether they're supported by your version of gcc (man gcc will help you here). If you still can't see anything wrong, remove them all and add them back one-by-one until you find the problematic flag. |
15 |
|
16 |
Make sure the -march= value you're using is supported by your version of gcc. -march=k8, and -march=pentium-m for instance will only work with gcc 3.4, and not with gcc 3.3. |
17 |
|
18 |
You may also be experiencing toolchain problems. Make sure that when you run gcc-config -l or binutils-config -l they point to valid profiles, and set them appropriately if necessary (for instance, type gcc-config 1 to select the first gcc version in the list). |
19 |
( http://forums.gentoo.org/viewtopic.php?t=27486 ) |
20 |
|
21 |
You may also find some more solutions in this topic: "C compiler cannot create executables" !??! |
22 |
|
23 |
_________________ |
24 |
We will be restoring normality as soon as we are sure what is normal anyway. Thankyou. |
25 |
|
26 |
Ñóòü: |
27 |
1. Ïðîâåðèòü ôëàãè - îäíà èç âîçìîæíûõ ïðîáëåì ýòî ìèíóñ âî ôëàãàõ |
28 |
2. Ïðîâåðèòü, ÷òî íèæåèäóùèå êîìàíäû óêàçûâàþò íà ñóùåñòâóþùèå ïðîôàéëû: |
29 |
gcc-config -l or binutils-config -l |
30 |
|
31 |
-- |
32 |
Ñ óâàæåíèåì, |
33 |
Kanogin mailto:kanogin@×××××.ru |
34 |
|
35 |
|
36 |
-- |
37 |
gentoo-user-ru@g.o mailing list |