From: ujlh@pool.info.sunyit.edu (James Henrickson) Subject: Re: README (Re: Compiling the Linux kernel) Date: 2 Jul 1992 17:31:48 GMT
In article <5275@mccuts.uts.mcc.ac.uk> LeBlanc@mcc.ac.uk writes:
>In article <1992Jul1.000045.26132@m.cs.uiuc.edu> najem@m.cs.uiuc.edu (Zeyad H. Najem) writes:
>>hlu@yoda.eecs.wsu.edu (H.J. Lu) writes:
>>>I bet you didn't install 0.96bp2inc.tar.Z AND modify all the Makefiles
>>>to get rid of "-nostdinc -Ixxx".
>>
>>You lose. I did install the 0.96bp2inc.tar.Z AND modified all the
>>makefiles to get rid of the nostdinc -Ixxx.
>
>Actually, if I might add a note to this, I don't think removing the
>"-nostdinc -I..." is a good idea. I am constantly messing about with
>test versions of the compiler and of the kernel, and I have never
>had problems compiling bits. The kernel's include files may change
>from version to version, and if you use the distributed Makefiles,
>you should have all the appropriate definitions. The problem
>originally described in this thread may, in fact, be caused if you
>are using an older version of the files in /usr/include.
>
> -- Owen
> LeBlanc@mcc.ac.uk
I installed gcc2.2.2 last night, and untarred everything into a temporary
directory first, so I could see what was going on. The first thing I noticed
was what appeared to be missing header files if I followed the directions
and deleted the linux include files. So, I copied the linux include files
into their corresponding /usr/include directories and THEN went through the
gcc 2.2.2 installation. I backed up my linux includes and made a symbolic
link from /usr/src/linux/include to /usr/include so I wouldn't have to edit
all of the kernel makefiles.
Following the installation instructions, I untarred 2.2.2db.tar.Z before
doing 2.2.2lib.tar.Z, 2.2.2misc.tar.Z, and binutils.tar.Z. By now, it was
close to 6 AM and I was getting (just a little!) tired. It appeared as
though some header files from one of these tar files were overwritten when
I untarred another one later. Running short on disk space and relying on
memory (my memory) only, I thought that the overwritten files were replaced
with ones that had an older modification time. Can anyone confirm this?
I'm wondering if I'm just imagining things or if the tar files are listed
in the wrong order in the installation instructions.
I haven't tried recompiling the kernel yet, but I was happy to see the
traditional "hello world" program compile and run nicely.
HJ: Does 2.2.2 contain header files that I don't need? I noticed that I
have much less disk space left, and saw a header file for the 68000. Just
wondering.
Thanks to Linux, gcc, and X, my DOS partition is getting chopped in half
this weekend. Some day it will be gone completely. :-) Good work, guys.
-- Jim H. * * James L. Henrickson ujlh@sunyit.edu * "Yet another Jim in the Linux world." :-)