This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g77 Build Problems

Stan Shebs wrote:

> Several people have gotten g77 to go, there were several
> reports in April.

I succeeded now, too, but only after banging my head against so many
walls that I cannot say any more what was the decisive step to make it
work (well, sort of work). 

In addition to what has been said before (thanks to Logan Donaldson, in
particular), I had to do the following:
- Get crt0.o from /usr/local/lib in darwin (I don't have darwin
installed, but I have it as a disk image) and put it into /usr/local/lib
- get processor_facilities.h and put it into
This file is necessary, but for some strange reason NOT contained in the
architecture module that one gets from Apple's anoncvs. It is contined
in Logan's architecture tgz and also in the darwin-1.3.1 disk image.

I got the cvs sources with the sticky date 2001., except
the file gcc/config/rs6000/, where I checked out the latest
version. It then compiles (make all-libiberty; cd gcc; make bootstrap; cd
..; make all-target-libg2c plus make install in several subdirectories).

There remains one problem: The created gcc uses built-in specs that are
completely off-base: Whereas I configured with --prefix=/usr/local, and
everything installs correctly into
/usr/local/lib/gcc-lib/powerpc-apple-darwin1.3.2/3.1/ etc, gcc looks
elsewhere for its libraries and doesn't find them:

martinc% gcc -v
Using builtin specs.
Configured with: ../Sources/gnu-cvs-gcc/configure  : (reconfigured)  :
(reconfigured) ../Sources/gnu-cvs-gcc/configure --prefix=/usr/local
gcc version 3.1 20010418 (experimental)
martinc% gcc -print-search-dirs
install: /usr/libexec/powerpc-apple-darwin1.3.2/3.1/
programs: =/usr/libexec/powerpc-apple-darwin1.3.2/3.1/:/usr/libexec/powerpc-apple-darwin1.3.2/3.1/:/usr/libexec/powerpc-apple-darwin1.3.2/:/usr/lib/gcc/powerpc-apple-darwin1.3.2/3.1/:/usr/lib/gcc/powerpc-apple-darwin1.3.2/:/usr/libexec/powerpc-apple-darwin1.3.2/3.1/../../../../powerpc-apple-darwin1.3.2/bin/powerpc-apple-darwin1.3.2/3.1/:/usr/libexec/powerpc-apple-darwin1.3.2/3.1/../../../../powerpc-apple-darwin1.3.2/bin/
libraries: =/usr/libexec/powerpc-apple-darwin1.3.2/3.1/:/usr/lib/gcc/powerpc-apple-darwin1.3.2/3.1/:/usr/libexec/powerpc-apple-darwin1.3.2/3.1/../../../../powerpc-apple-darwin1.3.2/lib/powerpc-apple-darwin1.3.2/3.1/:/usr/libexec/powerpc-apple-darwin1.3.2/3.1/../../../../powerpc-apple-darwin1.3.2/lib/:/usr/libexec/powerpc-apple-darwin1.3.2/3.1/../../../powerpc-apple-darwin1.3.2/3.1/:/usr/libexec/powerpc-apple-darwin1.3.2/3.1/../../../:/lib/powerpc-apple-darwin1.3.2/3.1/:/lib/:/usr/lib/powerpc-apple-darwin1.3.2/3.1/:/usr/lib/

There is NO /usr/libexec/powerpc-apple-darwin1.3.2, and in fact most of
these directories don't exist on my system. 
My question:

Where do these absurd built-in specs come from, how can they be changed,
and why doesn't gcc use a specs file?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]