1 |
On 3/23/06, Grobian <grobian@g.o> wrote: |
2 |
> On 23-03-2006 04:14:17 +0000, m h wrote: |
3 |
> > On 3/23/06, Kito <kito@g.o> wrote: |
4 |
> > > > To get around the gcc issue, gcc3.3.6 was installed. |
5 |
> > > |
6 |
> > > Ok, so we'll bump the gcc versions in the prefix tree. I'd like to |
7 |
> > > 4.x in there anyway as well. |
8 |
> > |
9 |
> > This was NOT a version bump. The version in the tree was 3.4.4... |
10 |
> |
11 |
> ... which works fine on amd64 here... |
12 |
> |
13 |
> (Ok, I screwed it up, but that's my own fault.) |
14 |
> |
15 |
> I do have a question though. |
16 |
> |
17 |
> Did you install binutils, gcc, linux-headers and glibc from portage now? |
18 |
> The current stuff appears to work, but I think it has some paths set |
19 |
> wrong, therefore using still headers from / instead of ${PREFIX}. |
20 |
|
21 |
I've installed everything but glibc. |
22 |
|
23 |
> |
24 |
> I'm on a fix here, if I can get my gcc recompiled (I screwed up the |
25 |
> linker: ${PREFIX}/usr/bin/ld: crt1.o: No such file: No such file or directory) |
26 |
> |
27 |
|
28 |
I'm actually having linker issues with apache. For some reason it is |
29 |
trying to look for libz in /lib instead of ${PREFIX}/usr/lib (even |
30 |
though I've told apache that's the location of zlib). Even when I |
31 |
compile a simple c program that includes zlib.h |
32 |
|
33 |
/* end confdefs.h. */ |
34 |
#include <zlib.h> |
35 |
int |
36 |
main () |
37 |
{ |
38 |
int i = Z_OK; |
39 |
; |
40 |
return 0; |
41 |
} |
42 |
|
43 |
Compile it: |
44 |
gcc -o foo -O2 -mcpu=i686 -pipe -pthread -I. |
45 |
-L/data1/tmp/Mar21/usr/lib foo.c -lz |
46 |
|
47 |
I get: |
48 |
/usr/bin/ld: cannot find /lib/libz.so |
49 |
collect2: ld returned 1 exit status |
50 |
|
51 |
Very weird..... |
52 |
|
53 |
> > > > The next issue was complaints about "-fno-stack-protector" available |
54 |
> > > > on gcc. The was no gcc binary in $PREFIX, so I resolved this by |
55 |
> > > > adding a gcc symlink in $PREFIX to ${PREFIX}/usr/bin/gcc-3.3.6. |
56 |
> > > |
57 |
> > > This should be solved by using gcc-config, which sets the appropriate |
58 |
> > > symlinks. Its probably broken in prefix though, haven't tested it yet. |
59 |
> |
60 |
> Yeah, but this tool doesn't work (yet). We need it, because maintaining |
61 |
> the symlinks yourself is a tedious job. |
62 |
> |
63 |
|
64 |
gcc is the only symlink (for binaries) I have right now. Maybe that's |
65 |
indicative of the linker problem... |
66 |
|
67 |
> > > > I hit the missing libpython2.4.so issue again, so I added |
68 |
> > > > ${PREFIX}/usr/lib/ to LD_LIBRARY_PATH. |
69 |
> > > |
70 |
> > > Hmm, so Diego was right...this obviously needs to be fixed. did |
71 |
> > > running env-update work as expected? |
72 |
> |
73 |
> It probably runs fine, but as long as you don't use bash, tcsh or zsh |
74 |
> from the prefix, it won't source it. You need to emerge one of those |
75 |
> shells (at least for tcsh I am 100% sure ;) ) and execute it, because |
76 |
> they are properly patched/configured to use the prefix to look for |
77 |
> system-wide init files. Only with such shell you get the contents of |
78 |
> "env-update", a.k.a. env.d/* |
79 |
|
80 |
I've installed prefix bash. |
81 |
> |
82 |
> > > > That along with a few ebuild foo.ebuild digest, and manually |
83 |
> > > > downloading a few tarballs and putting them in distfiles allowed me to |
84 |
> > > > finish emerge -av system. |
85 |
> > > |
86 |
> > > Why the manual downloads? |
87 |
> > |
88 |
> > Don't know but some of the tarballs weren't found in the default |
89 |
> > places. (I don't think it was an exhaustive search, but after I see 5 |
90 |
> > or so failed attempts I just google for "Index of" and the tarball |
91 |
> > name, and download it and put it in distfiles. |
92 |
> |
93 |
> Hmmm, ok, maybe the mirror select thinghy would come in handy here. I |
94 |
> noticed this myself too, that it quite often hangs on slow servers or |
95 |
> just can't find the file on many mirrors it tries. |
96 |
> |
97 |
> > > > Next task, get apache working. Stay tuned.... |
98 |
> |
99 |
> wow! That's freaky! (I'm just working on openssh -> but that triggered |
100 |
> a bug in the current gcc/binutils combination) |
101 |
> |
102 |
> Anyway, I'm interested in how easy you can make it work! |
103 |
> |
104 |
> |
105 |
Stuck on the linker issue right now.... |
106 |
|
107 |
-- |
108 |
gentoo-osx@g.o mailing list |