public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem building g77 configured with gnu as and ld
@ 2007-01-03 22:53 Shin, John Y CONTRACTOR WRAIR-Wash DC
  0 siblings, 0 replies; 2+ messages in thread
From: Shin, John Y CONTRACTOR WRAIR-Wash DC @ 2007-01-03 22:53 UTC (permalink / raw)
  To: gcc-help

I'm trying to build g77 from gcc 3.4.6 on an Octane 2 SGI machine
running IRIX 6.5.25f with binutils 2.17.  A program I'm trying to
compile requires g77 configured with gnu as and ld, but the pre-built
binaries I have were configured to use the standard MIPS as and ld, so I
have to build my own g77.  I configured and attempted to build g77 from
gcc-3.4.6 as follows:

1. ../gcc-3.4.6/configure --prefix=/usr/local/gcc-3.4.6_INSTALL
--with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld
--with-ld=/usr/local/bin/ld --with-gmp=/usr/local/lib
--with-mpfr=/usr/local/lib --enable-languages=f77

2. make bootstrap

This gives the following error:

config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
        if [ x"" != x ] && [ ! -d pic ]; then \
          mkdir pic; \
        else true; fi
        touch stamp-picdir
        if [ x"" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -02 -I.
-I../../gcc-3.4.6/libiberty/../include  -W -Wall -Wtraditional -pedantic
regex.c -o pic/regex.o; \
        else true; fi
        gcc -c -DHAVE_CONFIG_H -g -02 -I.
-I../../gcc-3.4.6/libiberty/../include  -W -Wall -Wtraditional -pedantic
regex.c -o regex.o
gcc: regex.c: No such file or directory
gcc: no input files
*** Error code 1 (bu21)
*** Error code 1 (bu21)

However, when I check gcc-3.4.6/libiberty, it contains regex.c. What
could be causing this problem?

Much thanks,

John Shin

Walter Reed Army Institute of Research
Division of Molecular Pharmacology
Department of Biochemistry
503 Robert Grant Ave.
Silver Spring, MD 20910
Tel: 301-319-9054 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem building g77 configured with gnu as and ld
@ 2007-01-04  4:50 Bud Davis
  0 siblings, 0 replies; 2+ messages in thread
From: Bud Davis @ 2007-01-04  4:50 UTC (permalink / raw)
  To: gcc-help, John.Shin

suggestions:

make sure you are using gnu make.  what i usually do
is 'alias make gmake' in my .cshrc file.

you shouldn't need gmp and mpfr.  g77 and c don't need
them.

i would suggest you build the simplest first, then
build with the gnu assembler and linker.  gcc / g77
should make with the SGI C compiler or gcc:

../bin/configure --prefix=~testgcc/bin
--enable-languages =c,f77

should make a workable compiler; which is not what you
want but it will make the problem space a little
smaller to start with.

during the 3.4.6 time SGI was an actively supported
platform; what you are attempting should work.  g77
changed very little between 3.2 and 3.4; so you might
try an older source release and see if it 'magically'
builds easier....the older one may work fine.

HTH,
bud davis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-04  4:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-03 22:53 Problem building g77 configured with gnu as and ld Shin, John Y CONTRACTOR WRAIR-Wash DC
2007-01-04  4:50 Bud Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).