Winter Knight
Group: Members
Posts: 146
Joined: April 2006 |
|
Posted: June 29 2006,10:12 |
|
I will explain why gcc1-with-libs and (gcc1 May 10, 2006) will not work by itself under DSL-N.
The following files are included with gcc1 (dated Sept 8, 2004) under /usr/lib, but are not included with gcc1-with-libs.dsl (or gcc1 dated May 10, 2006).
crt1.o crti.o crtn.o libc.so libstdc++.so.5 ptchown
I've noticed that even simple programs, like hello world, require crt1.o in order to compile. The lack of inclusion with newer versions isn't a problem with DSL because crt1.o, crti.o, and crtn.o are already included in /usr/lib. However, because DSL-N does not include these files, and gcc1-with-libs.dsl does not include these files, just loading gcc1-with-libs.dsl under DSL-N will not enable you to compile files.
I am not sure exactly where the error should be said to lay.
I have three possible workarounds if you wish to compile programs in DSL-N:
1) Load gcc1-with-libs.dsl. Then load libc6.dsl. libc6.dsl also has the required files. This is the method I recommend if you have the RAM. 256MB or more. If you have less, you may want to save your RAM and go with methods 2 or 3.
2) Load gcc1.dsl, from 2004. Then load the newer gcc1-with-libs.dsl. This requires about as much RAM as just loading gcc1-with-libs.dsl.
3) Copy out the files required from gcc1.dsl or DSL-LiveCD. Load gcc1-with-libs.dsl. Copy the *crt* files to /usr/lib.
|