Gentoo Archives: gentoo-user

From: Karl Krach <mailinglists@××××××××××.la>
To: gentoo-user@l.g.o
Subject: [gentoo-user] wrong GCC-configuration? (./specs: Is a directory)
Date: Wed, 21 Mar 2007 17:16:32
Message-Id: 46016741.9060208@blueSpirit.la
1 Hi!
2
3 I tried to emerge k3b and got suck while installing the necessary
4 app-cdr/cdrdao-1.2.1-r1 package:
5
6 [...]
7 checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
8 checking for C compiler default output file name... configure:
9 error: *C compiler cannot create executables*
10 See `config.log' for more details.
11 [...]
12 !!! ERROR: app-cdr/cdrdao-1.2.1-r1 failed.
13
14 In the config.log the interesting part is
15
16 configure:2357: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
17 Reading specs from ./specs
18 x86_64-pc-linux-gnu-gcc: *./specs: Is a directory*
19 configure:2360: $? = 1
20 configure:2362: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
21 x86_64-pc-linux-gnu-gcc: '-V' option must have argument
22 configure:2365: $? = 1
23 configure:2388: checking for C compiler default output file name
24 configure:2391: x86_64-pc-linux-gnu-gcc -march=k8 -pipe
25 -O2 -fno-inline conftest.c >&5
26 x86_64-pc-linux-gnu-gcc: *./specs: Is a directory*
27 configure:2394: $? = 1
28 [...]
29 configure:2433: error: C compiler cannot create executables
30
31 What I figured out: My problem is, that my GCC reads the specs from the
32 current directory (if available). To demonstrate this:
33
34 bluespirit tmp # ls
35 bluespirit tmp # gcc -v
36 *Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/specs*
37 Target: x86_64-pc-linux-gnu
38 [...]
39 gcc version 4.1.1 (Gentoo 4.1.1-r3)
40 bluespirit tmp # touch specs
41 bluespirit tmp # gcc -v
42 *Reading specs from ./specs*
43 gcc: unrecognized option '-v'
44 gcc: unrecognized option '-mtune=k8'
45 Target: x86_64-pc-linux-gnu
46 [...]
47 gcc version 4.1.1 (Gentoo 4.1.1-r3)
48 bluespirit tmp # rm specs
49 bluespirit tmp # mkdir specs
50 bluespirit tmp # gcc -v
51 *Reading specs from ./specs*
52 gcc: ./specs: Is a directory
53 bluespirit tmp # unset GCC_SPECS
54 bluespirit tmp # gcc -v
55 *Reading specs from ./specs*
56 gcc: ./specs: Is a directory
57 bluespirit tmp #
58
59 How can I teach my GCC to use ONLY the given specs - and ignore the
60 directory specs (whichs exists in the cdrdao-folder). In my opinion I
61 use the gentoo settings for the gcc - so I'm wondering, why this error
62 is so rarely in the web.
63
64 Thanks in advance,
65 Charly

Attachments

File name MIME type
emerge.info.txt text/plain
gcc.v.txt text/plain