This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building gfortran from cvs


Paul Brook wrote:
On Sunday 18 January 2004 2:44 am, Bil Kleb wrote:

[..] /bin/sh ../../gcc/gcc/mkconfig.sh config.h make[1]: *** No rule to make target `../../gcc/gcc/../include/ansidecl.h', needed by `c-parse.o'. Stop. make[1]: Leaving directory `/usr/local/pkgs/gcc-ssa/obj/gcc' make: *** [all-gcc] Error 2

ansidecl.h is in /usr/include but not in this gcc CVS tree,


$ find gcc -name ansidecl.h
$

Furthermore, there is no 'include' directory in the toplevel of the gcc CVS
tree I have, only in subdirectories,

$ find gcc -name include
gcc/fortran/include
gcc/fixinc/include

This is really strange. Are you sure your initial checkout didn't fail to complete for some reason?

I just did the following twice,


$ cvs -qz9 -d :pserver:anoncvs@gcc.gnu.org:/cvs/gcc update -PAd \
-r tree-ssa-20020619-branch gcc

and still no joy.

Also, is "make" GNU make? It should be on a RedHat system, but you never know.

$ make -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i386-redhat-linux-gnu $ autoconf -V autoconf (GNU Autoconf) 2.53 $ automake --version automake (GNU automake) 1.6.3 $ libtool --version ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:37)

Later,
--
Bil, NASA, Hampton, Virginia, USA

Gory details:

$ cd /usr/local/pkgs/gcc-ssa

$ cd gcc

$ sudo cvs -qz9 -d :pserver:anoncvs@gcc.gnu.org:/cvs/gcc update -PAd \
-r tree-ssa-20020619-branch gcc

$ cd ../obj

$ sudo rm -rf *

$ sudo ../gcc/configure --prefix=/usr/local/pkgs/gcc-ssa/work \
> --disable-libmudflap --enable-languages=c,f95 --with-gmp=/usr/local
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
     target-boehm-gc fastjar
    (Any other directories should still work fine.)
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile

$ ls
config.cache  config.log  config.status  Makefile  maybedep.tmp  serdep.tmp

$ sudo make
Configuring in gcc
loading cache .././config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether a default linker was specified... no
checking whether a default assembler was specified... no
checking for gcc... gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking whether gcc accepts -Wno-long-long... yes
checking how to run the C preprocessor... gcc -E
checking for inline... inline
checking for long long int... yes
checking for __int64... no
checking for built-in _Bool... yes
checking size of void *... 4
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking for gnatbind... gnatbind
checking whether compiler driver understands Ada... yes
checking for valgrind.h... no
checking whether make sets ${MAKE}... yes
checking for gawk... gawk
checking whether ln works... yes
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for cmp's capabilities... gnucompare
checking for mktemp... yes
checking for makeinfo... makeinfo
checking for modern makeinfo... yes
checking for recent Pod::Man... yes
checking for flex... flex
checking for bison... bison
checking for GNU C library... yes
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working stdbool.h... yes
checking whether string.h and strings.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for limits.h... yes
checking for stddef.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for stdlib.h... yes
checking for time.h... yes
checking for fcntl.h... yes
checking for unistd.h... yes
checking for sys/file.h... yes
checking for sys/time.h... yes
checking for sys/mman.h... yes
checking for sys/resource.h... yes
checking for sys/param.h... yes
checking for sys/times.h... yes
checking for sys/stat.h... yes
checking for direct.h... no
checking for malloc.h... yes
checking for langinfo.h... yes
checking for ldfcn.h... no
checking for locale.h... yes
checking for wchar.h... yes
checking for thread.h... no
checking for pthread.h... yes
checking for CHAR_BIT... yes
checking whether byte ordering is bigendian... no
checking for collect2 libraries... none required
checking for library containing exc_resume... no
checking for library containing ldexp... none required
checking for inttypes.h... yes
checking for times... yes
checking for clock... yes
checking for dup2... yes
checking for kill... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for atoll... yes
checking for atoq... no
checking for sysconf... yes
checking for strsignal... yes
checking for putc_unlocked... yes
checking for fputc_unlocked... yes
checking for fputs_unlocked... yes
checking for fwrite_unlocked... yes
checking for fprintf_unlocked... no
checking for getrusage... yes
checking for nl_langinfo... yes
checking for scandir... yes
checking for alphasort... yes
checking for gettimeofday... yes
checking for mbstowcs... yes
checking for wcswidth... yes
checking for mmap... yes
checking for mincore... yes
checking for setlocale... yes
checking whether mbstowcs works... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking whether the printf functions support %p... yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... yes
checking for iconv.h... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for LC_MESSAGES... yes
checking whether getenv is declared... no
checking whether atol is declared... no
checking whether sbrk is declared... no
checking whether abort is declared... no
checking whether atof is declared... no
checking whether getcwd is declared... no
checking whether getwd is declared... no
checking whether strsignal is declared... no
checking whether putc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether fprintf_unlocked is declared... no
checking whether strstr is declared... no
checking whether errno is declared... no
checking whether snprintf is declared... no
checking whether vasprintf is declared... no
checking whether malloc is declared... no
checking whether realloc is declared... no
checking whether calloc is declared... no
checking whether free is declared... no
checking whether basename is declared... no
checking whether getopt is declared... no
checking whether clock is declared... no
checking whether getrlimit is declared... no
checking whether setrlimit is declared... no
checking whether getrusage is declared... no
checking whether ldgetname is declared... no
checking whether times is declared... no
checking for struct tms... no
checking for clock_t... no
checking for uchar...
checking for .preinit_array/.init_array/.fini_array support... no
checking if mkdir takes one argument... no
checking for main in -lunwind... no
Using `../../gcc/gcc/config/i386/i386.c' for machine-specific logic.
Using `../../gcc/gcc/config/i386/i386.md' as machine description file.
Using the following target machine macro files:
        ../../gcc/gcc/config/i386/i386.h
        ../../gcc/gcc/config/i386/unix.h
        ../../gcc/gcc/config/i386/att.h
        ../../gcc/gcc/config/dbxelf.h
        ../../gcc/gcc/config/elfos.h
        ../../gcc/gcc/config/svr4.h
        ../../gcc/gcc/config/linux.h
        ../../gcc/gcc/config/i386/linux.h
Using host-default.o for host machine hooks.
checking whether NLS is requested... no
checking what assembler to use... /usr/bin/as
checking what linker to use... /usr/bin/ld
checking what nm to use... nm
checking what objdump to use... objdump
checking assembler for .balign and .p2align... yes
checking assembler for .p2align with maximum skip... yes
checking assembler for working .subsection -1... yes
checking assembler for .weak... yes
checking assembler for .hidden... yes
checking linker for .hidden support... yes
checking assembler for .sleb128 and .uleb128... yes
checking assembler for eh_frame optimization... yes
checking assembler for section merging support... yes
checking assembler for thread-local storage support... no
checking assembler for filds and fists mnemonics... yes
checking assembler for cmov syntax... no
checking assembler for GOTOFF in data... yes
checking assembler for dwarf2 debug_line support... yes
checking assembler for buggy dwarf2 .file directive... no
checking assembler for --gdwarf2 option... yes
checking assembler for --gstabs option... yes
checking linker read-only and read-write section mixing... read-write
checking linker PT_GNU_EH_FRAME support... yes
checking linker position independent executable support... no
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... no
checking for correct version of gmp.h... yes
checking for mpf_init in -lgmp... yes
Links are now set up to build a native compiler for i686-pc-linux-gnu.
updating cache .././config.cache
creating ./config.status
creating Makefile
creating fixinc/Makefile
creating gccbug
creating mklibgcc
creating mkheaders
creating auto-host.h
make[1]: Entering directory `/usr/local/pkgs/gcc-ssa/obj/gcc'
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
sed -e "/^@@ifobjc.*/,/^@@end_ifobjc.*/d" \
  -e "/^@@ifc.*/d" -e "/^@@end_ifc.*/d" \
  ../../gcc/gcc/c-parse.in >>tmp-c-parse.y
/bin/sh ../../gcc/gcc/move-if-change tmp-c-parse.y /usr/local/pkgs/gcc-ssa/obj/gcc/c-parse.y
cd /usr/local/pkgs/gcc-ssa/obj/gcc && \
if bison  -o c-p$$.c c-parse.y; then \
  test -f c-p$$.output && mv -f c-p$$.output c-parse.output ; \
  mv -f c-p$$.c c-parse.c ; \
else \
  rm -f c-p$$.* ; \
  false ; \
fi
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../gcc/gcc/mkconfig.sh config.h
make[1]: *** No rule to make target `../../gcc/gcc/../include/ansidecl.h', needed by `c-parse.o'.  Stop.
make[1]: Leaving directory `/usr/local/pkgs/gcc-ssa/obj/gcc'
make: *** [all-gcc] Error 2


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