Page 1 of 1

help me with linux 0.01?

Posted: Fri May 09, 2003 7:11 am
by yan
sorry,sirs:

now i have a trouble with linux source 0.01.
i can't compile it into image file in windows 2000 with djgpp.
i used:
C:\linux>make
gas -c -o boot/head.o boot/head.s
make.exe: *** [boot/head.o] Error -1
anyone to help?

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 7:40 am
by Xeon
You don't have the gas program.

Don't try to compile it, it's probably near impossible to compile in a more compete Unix-type environment such as Cygwin.

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 7:54 am
by yan
and what mean by the error message:
C:\linux>make
gas -c -o boot/head.o boot/head.s
make.exe: *** [boot/head.o] Error -1

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 8:51 am
by yan
sir,sorry for trouble u again
when i tried in cygwin,i got the same result,anything wrong?

$ make
gas -c -o boot/head.o boot/head.s
make.exe: *** [boot/head.o] Error -1

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 8:52 am
by Tim
Cygwin uses as, not gas. The program is the same, just the name is different.

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 9:00 am
by yan
any other methods to compile linux 0.01 under windows 2000?
please tell me sir.

thank Xeon!
thank Tim Robinson!

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 12:17 pm
by Tim
Well... as I said, Cygwin includes gas but calls it as. It's the same program, just called a different name. If you refer to it by a different name, you'll get the same program.

Is that clear enough?

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 12:17 pm
by Whatever5k
The problem with compiling and linking the linux-0.01 source is, that is really out of date. as will not be happy with what Linus has written some time ago. So you probably need to get an old version of gas/as, too - which is indeed bothering.

Re:help me with linux 0.01?

Posted: Fri May 09, 2003 10:20 pm
by yan
sir Tim Robinson,

thanks very much.

i did find as.exe at C:\djgpp\bin(but not in C:\cygwin\bin neither gas),then i rename it to gas.exe.later,i ran 'make' at C:\linux again,and had a result:
*gas -c -o boot/head.o boot/head.s
*C:\djgpp\bin/gas.exe: unrecognized option `-c'
*make.exe: *** [boot/head.o] Error 1
why djgpp's as/or gas didn't have '-c' option?and another way next?

Re:help me with linux 0.01?

Posted: Sat May 10, 2003 1:01 am
by Whatever5k
Have a look at my previous post: you probably need to get an old version of as/gas to compile the linux-0.01 source.

Re:help me with linux 0.01?

Posted: Sat May 10, 2003 10:32 am
by Curufir
Actually that version of Linux gets compiled with tools from the orginal Minix. IIRC it also requires a partition with the original Minix filesystem.

To get it to compile with a modern version of gcc/gas you'd essentially have to alter most of it. Far better to use it as a reference than try to compile it.

Re:help me with linux 0.01?

Posted: Sat May 10, 2003 7:33 pm
by yan
thank abless!
thank Curufir!

i wonder
if i want to study os and i want to choose linux source as my target,i've a win2000 system,
what edition(the source should be few,so i wanna a lower edition,but i don't know which edition is fit) of linux source i can take(i mean i wanna to choose djgpp as compiler,but i don't know if it's possible)?

my English is not as good as u think,sorry for it.
thanks!