Problems Configuring GCC
wezy726
wezy726@email.msn.com
Mon Mar 5 06:37:00 GMT 2001
Greetings, all.ÃÂ I am trying to build
gcc-2.95.2 along with a slew of other programming utils in an attempt to make a
"linux from scratch" system.ÃÂ In order to do this, I figured I would try
gcc's ability to make other needed programs if there is a link to them in the
top level gcc src tree.ÃÂ My problem is not with the actual compilation
(yet); the configure script breaks when trying to configure gzip.
Starting from a plain RadHat 7.0 dist, here's what
I did:
ÃÂ
Create a suitable directory to install new system
(henceforth called LFS).
ÃÂ
Populate LFS with dir structure (/bin, /usr, et
al), basic static binaries (make, gcc-2.96-69(RedHat's latest gcc spin-off),
binutils, texinfo, gawk, sed, grep, flex, fileutils, textutils, shellutils,
bash, bzip2, diffutils), and libraries (glibc-2.2.1 w/ linuxthreads add-on and
linux-2.4.2 w/ crypto patch)
ÃÂ
Unpack gcc, gzip, autoconf, automake, bash,
binutils, bison, bzip2, fileutils, findutils, flex, gawk, gettext, grep,
libtool, m4, make, patch, perl, sed, sh-utils, tar, texinfo, and textutils into
LFS/usr/src
ÃÂ
Place symbolic links to the directories created in
the gcc-2.95.2 dir.ÃÂ The links are named what they link to sans
version.
i.e. gcc-2.95.2/gzip is a symbolic link to
../gzip-1.2.4a
ÃÂ
I then chrooted to LFS, what follows are my command
lines:
ÃÂ
mkdir /usr/src/objdir
ÃÂ
cd /usr/src/objdir
ÃÂ
../gcc*/configure --enable-shared --with-gnu-as
--with-gnu-ld i686-pc-linux-gnu
ÃÂ
The configure script runs and, of course, vomits
everything to the screen.
The last three lines before breaking
are:
ÃÂ
Configuring gzip...
configure:
gcc-version-trigger=/usr/src/gcc-2.95.2/gcc/version.c: invalid package
name
Configure in /usr/src/objdir/gzip failed,
exiting.
ÃÂ
The version.c file (as you probably know) contains
the single line:
ÃÂ
char *version_string = "2.95.2 19991024
(release)";
ÃÂ
This is where I get stumped...ÃÂ Any insight
into this matter will be greatly appreciated.
ÃÂ
PS --ÃÂ In case you are wondering, every
program I listed is the latest version from metalab.unc.edu except the RedHat
gcc, but that isÃÂ not being usedÃÂ after one successful pass through the
compilation process.
ÃÂ
PPS -- I realize now that there is a patch
necessary to compile gcc-2.95.2 using glibc-2.2.1 which I hve not applied.ÃÂ
However, the system broke before compilation begun so I do not think the patch
is the problem here.
More information about the Gcc-help
mailing list