LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-22-2008, 05:16 AM   #16
Rodrex Lee
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0

me able to complie gcc-2.95.3,but when i am trying to compile linux0.0.1 with gcc-2.95.3,it is giving me the following error message:--

Kindly have a look over it & reply me asap.

In file included from vsprintf.c:7:
../include/string.h:337: warning: conflicting types for built-in function `memcpy'
../include/string.h:364: warning: conflicting types for built-in function `memcmp'
../include/string.h:396: warning: conflicting types for built-in function `memset'
vsprintf.c: In function `number':
vsprintf.c:52: warning: suggest explicit braces to avoid ambiguous `else'
vsprintf.c:67: warning: suggest explicit braces to avoid ambiguous `else'
vsprintf.c: In function `vsprintf':
../include/string.h:271: Invalid `asm' statement:
../include/string.h:271: fixed or forbidden register 5 (di) was spilled for class DIREG.
make[1]: *** [vsprintf.o] Error 1
make[1]: Leaving directory `/usr/src/linux0.0.1/kernel'
make: *** [kernel/kernel.o] Error 2
 
Old 10-22-2008, 05:52 AM   #17
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I do not see the point, lol, maybe you might learn something about Linus.. hes mind set and the evolution of the Linux kernel? If that is the case it may be worth it.. still I find it kinda cool.
 
Old 10-22-2008, 09:02 AM   #18
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
As I mentioned, I think you'll need to try compiling a later version of the kernel which was actually working. the 0.0.0 version must be compiled with en even earlier version of compiler and even then may not work at all. There were a couple of distros built on the 0.0.99 version though, While not the first version, that's still ancient enough hopefully.

I'd suggest you go looking here(for 1-diskx or 2-diskx:
http://www.angelfire.com/linux/floorzat/2diskXwin.htm
and here(for xwoaf -X windows on a floppy):
http://www.modest-proposals.com/

The latter of these two has a complete build set with kernel sources and howto to create your own. Quite a learning experience as I can attest...
 
Old 10-22-2008, 02:20 PM   #19
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Quote:
Originally Posted by gnashley View Post
There were a couple of distros built on the 0.0.99 version though, While not the first version, that's still ancient enough hopefully.
I have Slackware 1.1.2 working in a virtual machine (VMware), which uses the 0.99 kernel.
I don't remember exactly which compiler it has (can check tonight at home).

If you're interested, we can think of a way to send this VM to you so that you can experiment with it.
 
Old 10-22-2008, 04:33 PM   #20
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Just checked the documentation for Slackware 1.1.2. It says this about the D series of disks:
Quote:
./d1 - ./d6 Program development. GCC/G++/Objective C 2.5.8, make (GNU and
BSD), byacc and GNU bison, flex, the 4.5.19 C libraries, gdb,
kernel source for 0.99pl15, SVGAlib, ncurses, clisp, f2c, p2c,
m4, perl, rcs.
Like I said, I have it installed & working (including X w/ fvwm) with the 0.99.15 kernel + sources.
Never tried to compile the 0.0.1 kernel though, but I did download the sources once out of curiosity...
 
Old 10-22-2008, 04:57 PM   #21
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Before going crazy and installing a new compiler, modify the makefile to use the additional gcc option -std=c89. If that doesn't work, get a new compiler (or see below.) And like others implied, just because there's a version doesn't mean it works.
ta0kira

PS Maybe add -ffreestanding, also.

PPS Maybe you should do this, instead (taking away -std=c89):
Code:
gcc -E -traditional filename.c | gcc -ffreestanding -xc - <original options> -o filename.c
-traditional will give you pre-standard compiler emulation, but it requires -E, which sends preprocessed output to standard output; therefore, you must receive it with another call to gcc. It will take some hacking to get it to work, but hopefully less time than the hour it takes to build gcc + additional hacking on top of that.

Last edited by ta0kira; 10-22-2008 at 05:19 PM.
 
Old 11-03-2008, 01:55 AM   #22
Rodrex Lee
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
Angry

ok.......now me switching to complie kernel 0.99.15,but do it will require gcc-2.95.3 or some lower

Also,from where i will get the slackware 1.1.2 distro?I tried the below link:--
http://mirror.rol.ru/slackware/slackware-1.1.2/d1/
but in that,i am getting some gcc libs n all,so in nutshell me not getting how to use slackware 1.1.2.

Also,Niels.Horn,i want that u please tel me the compiler & regarding virtual machine(i am used to it).

Thanks in advance & hope to get 0.99 kernel working soon.
 
Old 11-03-2008, 03:28 AM   #23
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
You can get Slackware 1.1.2 from ftp://sunsite.unc.edu/pub/historic-l...ackware/1.1.2/

It comes standard with the 2.5.8 compiler and libc 4.5.19.

In the subdir libc444 you'll find disks to install 2.4.5 compiler with libc 4.4.4.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling c++ in linux deapee Programming 14 08-07-2012 11:05 AM
Compiling a program for X-Linux 4.1 steaktc Programming 7 11-01-2005 07:36 AM
Compiling Linux modules alltime Programming 5 10-14-2005 03:50 AM
Compiling C in Linux Neorio Linux - Software 1 09-18-2003 08:47 PM
Compiling C++ in Linux TexasDex Linux - Software 14 04-03-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration