Fortran make bug?

Jonathan _ Henkelman fnjh2@aurora.uaf.edu
Wed Nov 17 17:05:00 GMT 1999


I am trying to build gcc f77 release 2.95.2.  I have not had a problem
building gcc or g++.  I am running a sun sparc ultra with solaris
2.6.  The error is :

[... I will include a larger chunk at the end ...]

gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/info.c
make: Fatal error: Don't know how to make target `intdoc.h0'
Current working directory /export/home/henkel/apps/gcc/gccobj/gcc/f
*** Error code 1
make: Fatal error: Command failed for target `f771'
Current working directory /export/home/henkel/apps/gcc/gccobj/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'

The configure operands I am using are :

configure --prefix=/export/home/apps/gnu --enable-languages=f77 because
the /usr partition is full.  I have installed both gcc and g++ using the
configure command outlined above without problem.

The build command I am using is :

make languange=f77 bacuse I already have compile gcc as a native compiler.

I have the following directory structure as recommended in the BUILD
documentation (i.e. having a seperate build directory).

/gcc -- /gcc-2.95.2 -- source code
	/gccobj     -- object and compiled version

I am building in the gccobj directory as outlined in the documentation.

I have looked through the make files for a number of hours hoping to be
able to send a fix along, but have not been able to solve the problem. One
thing is that I had a similar problem trying to compile a gcc compiler
(2.8.1) however, when I downloaded the newer version 2.95.2 it
disappeared. I hope that this is useful you as well as to me.  Please
email me for more info if I have left something out.  Thanks, 

Jonathan Henkelman
(907) 474 6038
fnjh2@uaf.edu

A larger chunk of the build output...  All of it actually.

shaggy 32$ make language=f77
make all-recursive
Making all in intl
Making all in lib
Making all in makeinfo
(cd intl && make all)
gcc -c  -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H
-I. -I../../gcc-2.95.2/gcc -I../../gcc-2.95.2/gcc/config
-I../../gcc-2.95.2/gcc/../include \

-DGCC_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include\" \

-DGPLUSPLUS_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../..`echo
/export/home/apps/gnu | sed -e 's|^/export/home/apps/gnu||' -e
's|/[^/]*|/..|g'`/include/g++-3\" \

-DCROSS_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/sys-include\" \

-DTOOL_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/include\" \
  -DLOCAL_INCLUDE_DIR=\"/export/home/apps/gnu/include\" \

-DSTD_PROTO_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2\" \
  ../../gcc-2.95.2/gcc/protoize.c
gcc  -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H  -o protoize
protoize.o getpwd.o intl.o version.o obstack.o alloca.o
../libiberty/libiberty.a
gcc -c  -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H
-I. -I../../gcc-2.95.2/gcc -I../../gcc-2.95.2/gcc/config
-I../../gcc-2.95.2/gcc/../include \

-DGCC_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include\" \

-DGPLUSPLUS_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../..`echo
/export/home/apps/gnu | sed -e 's|^/export/home/apps/gnu||' -e
's|/[^/]*|/..|g'`/include/g++-3\" \

-DCROSS_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/sys-include\" \

-DTOOL_INCLUDE_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/include\" \
  -DLOCAL_INCLUDE_DIR=\"/export/home/apps/gnu/include\" \

-DSTD_PROTO_DIR=\"/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2\" \
  ../../gcc-2.95.2/gcc/unprotoize.c
gcc  -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H  -o unprotoize
unprotoize.o getpwd.o intl.o version.o obstack.o alloca.o
../libiberty/libiberty.a
rm -f SYSCALLS.c tmp-SYSCALLS.s
cat ../../gcc-2.95.2/gcc/sys-types.h ../../gcc-2.95.2/gcc/sys-protos.h >
SYSCALLS.c
/export/home/henkel/apps/gcc/gccobj/gcc/xgcc
-B/export/home/henkel/apps/gcc/gccobj/gcc/
-B/export/home/apps/gnu/sparc-sun-solaris2.6/bin/
-I/export/home/apps/gnu/sparc-sun-solaris2.6/include  -DIN_GCC -DHAIFA
-DSVR4  -g -O2 -I./include     -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include \
  -aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c
rm -f SYSCALLS.c tmp-SYSCALLS.s
gcc -c  -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H
-I. -I../../gcc-2.95.2/gcc -I../../gcc-2.95.2/gcc/config
-I../../gcc-2.95.2/gcc/../include ../../gcc-2.95.2/gcc/gcov.c
gcc  -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H  gcov.o intl.o
obstack.o alloca.o       ../libiberty/libiberty.a -o gcov
echo " toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o
function.o stmt.o except.o expr.o calls.o expmed.o explow.o optabs.o
intl.o varasm.o rtl.o print-rtl.o rtlanal.o emit-rtl.o genrtl.o real.o
dbxout.o sdbout.o dwarfout.o dwarf2out.o xcoffout.o bitmap.o alias.o
gcse.o  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o
varray.o  regclass.o regmove.o local-alloc.o global.o reload.o reload1.o
caller-save.o  insn-peep.o reorg.o haifa-sched.o final.o recog.o
reg-stack.o  insn-opinit.o insn-recog.o insn-extract.o insn-output.o
insn-emit.o lcm.o  profile.o insn-attrtab.o sparc.o getpwd.o  convert.o
mbchar.o dyn-string.o splay-tree.o graph.o sbitmap.o resource.o hash.o" |
sed -e 's, \([a-z0-9]\), ../\1,g' -e 's/\.o/.o/g' >stamp-objlist
touch lang-f77
cd f; make
"AR_FLAGS_FOR_TARGET=rc"  "AR_FOR_TARGET=ar"  "BISON=bison"  "BISONFLAGS="  "CFLAGS=-g
-O2"  "CLIB="  "GCC_FOR_TARGET=/export/home/henkel/apps/gcc/gccobj/gcc/xgcc
-B/export/home/henkel/apps/gcc/gccobj/gcc/
-B/export/home/apps/gnu/sparc-sun-solaris2.6/bin/
-I/export/home/apps/gnu/sparc-sun-solaris2.6/include"  "LDFLAGS="  "LEX=lex"  "LEXFLAGS="  "LN=ln"  "LN_S=ln
-s"  "MAKEINFO=/export/home/henkel/apps/gcc/gccobj/texinfo/makeinfo/makeinfo"  "MAKEINFOFLAGS="  "RANLIB_FOR_TARGET=true"  "RANLIB_TEST_FOR_TARGET=[
-f true ]  || ( [ "sparc-sun-solaris2.6" = "sparc-sun-solaris2.6" ]  && [
-f /usr/bin/ranlib -o -f /bin/ranlib ]
)"  "SHELL=/bin/sh"  "STAGE_PREFIX="  "exeext="  "build_exeext="  "objext=.o"  "exec_prefix=/export/home/apps/gnu"  "prefix=/export/home/apps/gnu"  "local_prefix=/usr/local"  "gxx_include_dir=/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../..`echo
/export/home/apps/gnu | sed -e 's|^/export/home/apps/gnu||' -e
's|/[^/]*|/..|g'`/include/g++-3"  "tooldir=/export/home/apps/gnu/sparc-sun-solaris2.6"  "gcc_tooldir=/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6"  "bindir=/export/home/apps/gnu/bin"  "libsubdir=/export/home/apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2"  "datadir=/export/home/apps/gnu/share"  "distdir=../tmp/\$(subdir)"  "localedir=/export/home/apps/gnu/share/locale" "CC=gcc" \
  HOST_CC="`case 'gcc' in stage*) echo 'gcc' | sed -e
's|stage|../stage|g';; *) echo 'gcc';; esac`" \
  HOST_CFLAGS=" -DIN_GCC -DHAIFA -DSVR4  -g -O2
-DHAVE_CONFIG_H" HOST_CPPFLAGS="  " \
  ../f771
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/bad.c
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/bit.c
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/bld.c
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/com.c
../../../gcc-2.95.2/gcc/f/com.c: In function
`ffecom_possible_partial_overlap_':
../../../gcc-2.95.2/gcc/f/com.c:1599: warning: unused parameter `expr2'
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/data.c
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include
../../../gcc-2.95.2/gcc/f/equiv.c
gcc -c -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include \
      `echo ../../../gcc-2.95.2/gcc/f/fini.c | sed 's,^\./,,'` -o fini.o
gcc -c -DUSE_HCONFIG -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include \
      `echo ../../../gcc-2.95.2/gcc/f/proj.c | sed 's,^\./,,'` -o proj-h.o
gcc -DIN_GCC -DHAIFA -DSVR4  -g -O2   -DHAVE_CONFIG_H  -o fini fini.o
proj-h.o
./fini `echo ../../../gcc-2.95.2/gcc/f/str-1t.fin | sed 's,^\./,,'`
str-1t.j str-1t.h
./fini `echo ../../../gcc-2.95.2/gcc/f/str-2t.fin | sed 's,^\./,,'`
str-2t.j str-2t.h
./fini `echo ../../../gcc-2.95.2/gcc/f/str-fo.fin | sed 's,^\./,,'`
str-fo.j str-fo.h
./fini `echo ../../../gcc-2.95.2/gcc/f/str-io.fin | sed 's,^\./,,'`
str-io.j str-io.h
./fini `echo ../../../gcc-2.95.2/gcc/f/str-nq.fin | sed 's,^\./,,'`
str-nq.j str-nq.h
./fini `echo ../../../gcc-2.95.2/gcc/f/str-op.fin | sed 's,^\./,,'`
str-op.j str-op.h
./fini `echo ../../../gcc-2.95.2/gcc/f/str-ot.fin | sed 's,^\./,,'`
str-ot.j str-ot.h
touch stamp-str
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/expr.c
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include
../../../gcc-2.95.2/gcc/f/global.c
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include
../../../gcc-2.95.2/gcc/f/implic.c
gcc -c  -DIN_GCC -DSVR4  -g -O2  -W -Wall
-I. -I.. -I../../../gcc-2.95.2/gcc/f
-I../../../gcc-2.95.2/gcc/f/.. -I../../../gcc-2.95.2/gcc/f/../config
-I../../../gcc-2.95.2/gcc/f/../../include ../../../gcc-2.95.2/gcc/f/info.c
make: Fatal error: Don't know how to make target `intdoc.h0'
Current working directory /export/home/henkel/apps/gcc/gccobj/gcc/f
*** Error code 1
make: Fatal error: Command failed for target `f771'
Current working directory /export/home/henkel/apps/gcc/gccobj/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'





More information about the Gcc-bugs mailing list