Newbie : GCC, Monolithic kernel
tom
tmarinis99
Mon May 17 11:38:37 PDT 2004
"m.w.chang" <mwchang at netvigator.com> wrote:
>make bootstrap should have a step that do the tsets. read
>the install/INSTALL file.
long reply :(
I did not read this anywhere yet. It seemed to be spelled out
pretty well on the installing GCC configuration page as simply;
configure
make
make install.
I'll try this. I'm just trying to do this so I don't
wipe out the older compiler on the COL 3.1.1. It comes with
2.95.2. Hopefully, the old directory is still there, since
I have a fast cron job that wipes that area fairly regularly.
2.95.3 permits to experiment with the newer types of kernels, which
I am going to try soon.
>From the pages from the GNU site, I read over the configuration
material, and performed the install this way;
Download gcc-2.95.3-everything.tar.gz from primary site;
Copied the file to /usr/src directory;
]# gzip -cd gcc-2.95.3-everything.tar.gz | tar -xvf -
]# chown -R username:users /usr/src/gcc-2.95.3
]# cd /tmp
]# mkdir gcc-obj
]# cd /tmp/gcc-obj
]# ../gcc-2.95.3/configure --prefix=/usr/local/gcc-2.95.3
--includedir=/usr/local/gcc-2.95.3/include
--libdir=/usr/local/gcc-2.95.3/lib
--with-gxx-include-dir=/usr/local/gcc-2.95.3/include/g++
--enable-version-specific-runtime-libs
--with-included-gettext
--with-gnu-as=/usr/i386-linux/bin
--with-gnu-ld=/usr/i386-linux/bin
--enable-threads=posix
--enable-shared
]# make
]# make install
---
After this, I changed 2 files;
I editted the /etc/config.d/shells/bashrc
file, and altered the statement for the enviroment from
/usr/local/bin, to /usr/local/gcc-2.95.3/bin.
I also altered the /etc/ld.so.conf file, and
added the following libraries created by my compiler
addtion, from above...
/usr/local/gcc-2.95.3/lib
/usr/local/gcc-2.95.3/lib/gcc-i686/ etc.,
Since I did not know the command to re-read the ld.so. cache,
since if I logged out, the profile would automatically change
when I logged back in. So I rebooted.
>From the command prompt, I get
]# gcc --version
2.95.3
Seemed pretty straight forward to me, after attempting to understand
all the options available for the configuration of the compiler.
---
The reason for all this is to create a compiler, without destroying
the old one. I have a labtop that has COL 2.4, with limited
memory and drive space, and I want to compile 2.2.x kernels on this
computer, and then tranfer them to the labtop.
[ both are Pentium 2 processors ].
The newer compiler is slightly faster ( 450 Mhz ), and has more
ram ( 512 M ). I though the speed and memory would speed it
up a bit, since the other computer has only 64M.
---tm---
Linux Registration Number; 184093,
http://counter.li.org
__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
More information about the Linux-users
mailing list