Newbie : GCC, Monolithic kernel
tom
tmarinis99
Mon May 17 11:38:39 PDT 2004
Long reply; my apologies
"m.w.chang" <mwchang at netvigator.com> wrote:
>no. not 'make'. `make bootstrap`
>linux-sxs.org has an article on compiling gcc. read it first.
>it worked for me.
Uhm, Sorry to ask, but where is this article? I've looked at the
SXS site in Alberta, but I'm afraid I'm somewhat lost looking in
there. [digi something or other.. ]
>> 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.
>
>linux-sxs' article didn't used these 5 options....the rest are similar.
>
>> --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
I included these options for specific reasons. They are;
- specifying the runtime libraries for the fact I would like
to build several versions of GCC in parallel, without wiping
out the libiraries of each.
If I decide I do not need a compiler, I simply wipe out the reference
in ld.so.conf, and remove the variable from the enviroment PATH.
Then I rm -rf /usr/local/gcc-<version> , and it's gone forever.
- gettext : I speak another language ( Greek ), and therefore
I like to create man pages to help me out.
- with gnu as, ld : Caldera uses these two from the GNU site, and
not specifying where they are in the build will break the compiler.
As per the GNU GCC config instructions, not specifying the location,
or at least including statement --with-gnu-as and --with-gnu-ld, the
compiler will auto fail.
( again, I failed to specify I'm using 3.1.1 COL workstation as
the current working distro on my box now. )
- enable threads=posix ? I thought this is okay to specify for
a linux distro.
>I rather follow traditions and install everything below /usr.
Forgive me. I am not formally trained, and I am inexperienced
unix user.
I remember in my previous note the install path of the compiler as
/usr/local/gcc-<version>/ .
Please tell me, which is the proper directory should I install
the new compiler in?
>you can always reinsatll the old gcc without ill effects after removing
>the new version.
Are you sure? I wish to have both compilers, and not de-install
any of them.
> also, learn to use checkinstall-1.5.2, It's a great
>tool to build rpm using the output of `make install`.
So, building a rpm is better? Compiling from source is not
the way to go anymore?
>> 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.
>
>ldconfig -v
Thank you. I didn't know what command instructed that file.
>> Since I did not know the command to re-read the ld.so. cache,
>
>i don't think reboot can force a ldconfig -v .. not sure.. maybe your
>linux distribution do things differently.
I don't think it does.
Thank you Mike? for the info.
---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