1 |
On Jan 9, 2008 9:13 AM, Richard Torres <rtorres827@×××××.com> wrote: |
2 |
|
3 |
> It's all a blur. It was trying to re-emerge something related to gcc and |
4 |
> python was blocking it so I unmerged it. |
5 |
> I've got python back using quickpkg like you suggested. Now I'm working on |
6 |
> getting gcc to work. I did a quickpkg on gcc but emerge still fails with a |
7 |
> 'C compiler cannot create executables' error. |
8 |
> I'm pretty sure I'm using a working version. |
9 |
|
10 |
|
11 |
It may not be the C compiler at all. To check this copy the following code |
12 |
into a file called test.c: |
13 |
|
14 |
|
15 |
|
16 |
#include <stdio.h> |
17 |
|
18 |
int main(void) |
19 |
{ |
20 |
printf("Hello World!\n"); |
21 |
return 0; |
22 |
} |
23 |
|
24 |
|
25 |
And then run the following commands: |
26 |
|
27 |
gcc test.c -o test |
28 |
./test |
29 |
|
30 |
If you see a Hello World! output, then your C compiler is working fine. If |
31 |
this is the case, then you need to do as the original error message |
32 |
specifies - check the config.log file. It should be located at |
33 |
/var/tmp/portage/dev-lang/php-5.2.5-r1/work/php-5.2.5/config.log |
34 |
|
35 |
config.log files can be a little confusing to read through if you're not |
36 |
used to them, but you'll just want to start at the bottom and work your way |
37 |
up, until you find any error messages - or, you can post your |
38 |
config.logfile, and someone can help you out with it. |
39 |
|
40 |
HTH- |
41 |
|
42 |
James |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
> |
50 |
> |
51 |
> gcc-config -l |
52 |
> [1] i686-pc-linux-gnu-3.3.4 |
53 |
> [2] i686-pc-linux-gnu-3.4.4 * |
54 |
> [3] i686-pc-linux-gnu-3.4.4-hardened |
55 |
> [4] i686-pc-linux-gnu-3.4.4-hardenednopie |
56 |
> [5] i686-pc-linux-gnu-3.4.4-hardenednopiessp |
57 |
> [6] i686-pc-linux-gnu-3.4.4-hardenednossp |
58 |
> |
59 |
> Thanks-a-bunch |
60 |
> |
61 |
> -----Original Message----- |
62 |
> From: Alan McKinnon [mailto:alan.mckinnon@×××××.com] |
63 |
> Sent: Sunday, January 06, 2008 1:51 AM |
64 |
> To: gentoo-user@l.g.o |
65 |
> Subject: Re: [gentoo-user] unable to emerge anything... |
66 |
> |
67 |
> On Saturday 05 January 2008, Richard Torres wrote: |
68 |
> > Alan, |
69 |
> > Thanks for that. It's funny you should mention python, I just |
70 |
> > inadvertently unmerged it (doh...). I've got another gentoo box |
71 |
> > running a newer version of gcc and a newer kernel. Do you think I can |
72 |
> > get what I need out of it? |
73 |
> |
74 |
> Yes, you should be able to use that. Python is SLOTted, so even if your |
75 |
> other box is using a different SLOT, you can emerge the version you |
76 |
> need, quickpkg it, copy it over to the first machine and unpack it |
77 |
> there. |
78 |
> |
79 |
> quickpkg's are just tarballs so you can even use good old tar and |
80 |
> bunzip2 if you managed to go to the next step of dohness and unmerge |
81 |
> portage as well :-) |
82 |
> |
83 |
> btw, how did you manage to unmerge python? That's in system and portage |
84 |
> usually goes to great lengths to prevent you doing just that |
85 |
> |
86 |
> alan |
87 |
> |
88 |
> |
89 |
> > |
90 |
> > Thanks for your help, |
91 |
> > -Richard |
92 |
> > |
93 |
> > ----- Original Message ---- |
94 |
> > From: Alan McKinnon <alan.mckinnon@×××××.com> |
95 |
> > To: gentoo-user@l.g.o |
96 |
> > Sent: Saturday, January 5, 2008 2:25:52 AM |
97 |
> > Subject: Re: [gentoo-user] unable to emerge anything... |
98 |
> > |
99 |
> > On Saturday 05 January 2008, Richard Torres wrote: |
100 |
> > > I'm getting pretty much the same error (C compiler cannot create |
101 |
> > > executables). I'm pretty sure it's because gcc-3.3.4 is installed. |
102 |
> > > I've tried upgrading gcc by emerging but get the same error |
103 |
> > > (catch-22 situation). Here's the last part of the error log which |
104 |
> > > is the same with anything I try to emerge. |
105 |
> > |
106 |
> > A quickpkg of gcc might help you out of this, it's about 7M or so so |
107 |
> > small enough to mail to you. Perhaps some kind soul here with similar |
108 |
> > settings to you can send their tbz2 of gcc-3.3.6.x |
109 |
> > |
110 |
> > Alternatively, you might be able to unpack a working gcc tarball from |
111 |
> > a |
112 |
> > |
113 |
> > stage 3 onto your system and use that |
114 |
> > |
115 |
> > It doesn't help you right now, but I've managed to screw up enough |
116 |
> > gentoo systems enough times that I now keep quickpkg copies of known |
117 |
> > good working critical packages in $PKGDIR - minimally gcc, glibc, |
118 |
> > python, portage, tar and a shell |
119 |
> > |
120 |
> > alan |
121 |
> > |
122 |
> > -- |
123 |
> > Alan McKinnon |
124 |
> > alan dot mckinnon at gmail dot com |
125 |
> |
126 |
> |
127 |
> |
128 |
> -- |
129 |
> Alan McKinnon |
130 |
> alan dot mckinnon at gmail dot com |
131 |
> -- |
132 |
> gentoo-user@l.g.o mailing list |
133 |
> |
134 |
> -- |
135 |
> gentoo-user@l.g.o mailing list |
136 |
> |
137 |
> |