This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

19980803 on alphaev56-dec-osf4.0d, make fails



Assorted interesting things happened while building the 
newest snapshot.  The end result was that I could build 
a working gcc, but couldn't build g++ at all.  I ran into
four problems which I tried to work around.  Unresolved
problems seem to stem from Makefiles with syntax errors.


Background
----------
- My default shell is bash
- I did an "export CC=gcc", my gcc version is 2.8.1
- The default make is the one supplied by Dec; I don't
  have a version of Gnu make installed anywhere.
- The process I used for installation is (where $FOO
  is an arbitrary previously-empty directory):
  1. ftp and untar the snapshop into $FOO/egcs-19980727
  2. mkdir $FOO/build; cd $FOO/build
  3. ../egcs-19980803/configure --prefix=$FOO  
  4. make bootstrap-lean
 
 
Problem 1
---------
This one I reported with the previous snapshot, but
I found out a bit more this time.

The make of texutils/makeinfo fails because for
some reason it doesn't create the .deps directory.
I don't know why it doesn't create that directory;
I haven't seen this with anything else being built
by the snapshot.

I did a "mdir .deps" in $FOO/build/texinfo/makeinfo
and did another "make bootstrap-lean" in $FOO/build
to continue.
 
 
Problem 2
---------
Deep into the build a Makefile is being created that
has a syntax error, somewhere in or just past the 
libF77 build (I think near the end of completing the
build of the stage1 compiler).  The only "workaround"
I could find was to ignore the error, and do another
"make bootstrap-lean" in $FOO/build to continue.

Here is the last bit of screen output (I've replaced the 
expanded --prefix directory with the much shorter $FOO
to improve readability):

======================================================
... above this point, other Makefile output; most
    recently was libI77
======================================================
updating cache .././config.cache
creating ./config.status
creating Makefile
configuring in libF77
running /bin/sh ../../../../egcs-19980803/libf2c/libF77/configure  --host=alphaev56-dec-osf4.0d --build=alphaev56-dec-osf4.0d --enable-multilib --with-gcc-version-trigger=$FOO/egcs-19980803/gcc/version.c --prefix=$FOO --with-target-subdir=alphaev56-dec-osf4.0d --cache-file=.././config.cache --srcdir=../../../../egcs-19980803/libf2c/libF77
loading cache .././config.cache
checking for gcc... (cached) $FOO/build/gcc/xgcc -B$FOO/build/gcc/
checking whether the C compiler ($FOO/build/gcc/xgcc -B$FOO/build/gcc/ -g ) works... yes
checking whether the C compiler ($FOO/build/gcc/xgcc -B$FOO/build/gcc/ -g ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether $FOO/build/gcc/xgcc -B$FOO/build/gcc/ accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... (cached) $FOO/build/gcc/xgcc -B$FOO/build/gcc/ -E
checking for stdio.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for posix... (cached) yes
checking for GNU library... (cached) no
checking return type of signal handlers... void
checking for drem in -lm... yes
updating cache .././config.cache
creating ./config.status
creating Makefile
Make: Makefile, line 63: syntax error.  Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
%
======================================================
 
 
Problem 3
---------
I ran into another Makefile syntax error.  I know the
stage2 compiler had been built; I suspect that the
stage3 compiler had also been built.  It looks like
the problem appeared while building the test suite.

I tried doing another "make bootstrap-lean" in $FOO/build
to proceed, but from the output of the makefile, it looks
like it doesn't know that the later stages of the compiler
had been built.  I aborted the Make and instead tried a
"make install" in $FOO/build.


Here is the last bit of screen output (I've replaced the 
expanded --prefix directory with the much shorter $FOO
to improve readability):

======================================================
... assorted stuff about making runtime libraries
======================================================
cd tests; make all ...
cd dbz; make all ...
cd stdio; make all ...
cd testsuite; make all ...
cd ../libio ; make "SHELL=/bin/sh"  "INSTALL=/bin/sh $FOO/egcs-19980803/install-sh -c"  "INSTALL_DATA=/bin/sh $FOO/egcs-19980803/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin/sh $FOO/egcs-19980803/install-sh -c "  "prefix=$FOO"  "exec_prefix=$FOO"  "tooldir=$FOO/alphaev56-dec-osf4.0d"  "gxx_include_dir=$FOO/include/g++"
"libsubdir=$FOO/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.53"  "gcc_version=egcs-2.91.53"  "gcc_version_trigger=$FOO/egcs-19980803/gcc/version.c"  "AR=ar"  "AR_FLAGS=rc"
 "CC=$FOO/build/gcc/xgcc -B$FOO/build/gcc/"  "CXX=$FOO/build/gcc/xgcc -B$FOO/build/gcc/"  "CFLAGS=-g"  "CXXFLAGS=-g -O2"  "NM=nm"  "RANLIB=ranlib"  "LIBCFLAGS=-g"
  "LIBCXXFLAGS=-g -O2 -fno-implicit-templates"  "LOADLIBES="  "LDFLAGS="  "MAKEINFO=$FOO/build/texinfo/makeinfo/makeinfo "  "SHLIB=libstdc++.so.2.9.0"  "SHCURSES="  "RUNTESTFLAGS=" iostream.list
`iostream.list' is up to date.
if [ -z "" ]; then  true;  else  rootpre=`pwd`/; export rootpre;  srcrootpre=`cd
 ../../../egcs-19980803/libstdc++; pwd`/; export srcrootpre;  lib=`echo ${rootpr
e} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`;  compiler="$FOO/build/gcc/xgcc -B$FOO/build/gcc/";
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do  dir=`echo $i | sed -
e 's/;.*$//'`;  if [ "${dir}" = "." ]; then  true;  else  if [ -d ../${dir}/${li
b} ]; then  flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;  if (cd ../${d
ir}/${lib}; make "SHELL=/bin/sh"  "INSTALL=/bin/sh $FOO/egcs-19980803/install-sh -c"  "INSTALL_DATA=/bin/sh $FOO/egcs-19980803/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin/sh $FOO/egcs-19980803/install-sh -c "  "prefix=$FOO"  "exec_prefix=$FOO"  "tooldir=$FOO/alphaev56-dec-osf4.0d"  "gxx_include_dir=$FOO/include/g++"  "libsubdir=$FOO/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.53"  "gcc_version=egcs-2.91.53"  "gcc_version_trigger=$FOO/egcs-19980803/gcc/version.c"  "AR=ar"  "AR_FLAGS=rc"  "CC=$FOO/build/gcc/xgcc -B$FOO/build/gcc/"  "CXX=$FOO/build/gcc/xgcc -B$FOO/build/gcc/"  "CFLAGS=-g"  "CXXFLAGS=-g -O2"  "NM=nm"  "RANLIB=ranlib"  "LIBCFLAGS=-g"  "LIBCXXFLAGS=-g -O2 -f
no-implicit-templates"  "LOADLIBES="  "LDFLAGS="  "MAKEINFO=$FOO/build/texinfo/makeinfo/makeinfo "  "SHLIB=libstdc++.so.2.9.0"
  "SHCURSES="  "RUNTESTFLAGS="  CFLAGS="-g ${flags}"  CXXFLAGS="-g -O2 ${flags}"
  LIBCFLAGS="-g ${flags}"  LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}"
  LDFLAGS=" ${flags}"  all); then  true;  else  exit 1;  fi;  else true;  fi;  f
i;  done;  fi
cd tests; make all ...
cd testsuite; make all ...
Make: Makefile, line 63: syntax error.  Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
%
======================================================

Problem 4
---------
After attempting the "make install", I received another
one of those "line 63: syntax error" messages.  I found
that gcc had apparently been installed, but not g++.
I tried doing a "make install LANGUAGES="c++", but
the make stopped I think at exactly the same point
with no obvious improvement in the situation.

Here is the last bit of screen output (I've replaced the 
expanded --prefix directory with the much shorter $FOO
to improve readability):

======================================================
... assorted Make activity, something to do with
    libiberty and libstdc++
======================================================
if [ -z "" ]; then  true;  else  rootpre=`pwd`/; export rootpre;  srcrootpre=`cd
 ../../../egcs-19980803/libstdc++; pwd`/; export srcrootpre;  lib=`echo ${rootpr
e} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`;  compiler="$FOO/build/gcc/xgcc -B$FOO/build/gcc/";
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do  dir=`echo $i | sed -
e 's/;.*$//'`;  if [ "${dir}" = "." ]; then  true;  else  if [ -d ../${dir}/${li
b} ]; then  flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;  if (cd ../${d
ir}/${lib}; make "SHELL=/bin/sh"  "INSTALL=/bin/sh $FOO/egcs-19980803/install-sh -c"  "INSTALL_DATA=/bin/sh $FOO/egcs-19980803/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin/sh $FOO/egcs-19980803/install-sh -c "  "prefix=$FOO"  "exec_prefix=$FOO"  "tooldir=$FOO/alphaev56-dec-osf4.0d"  "gxx_include_dir=$FOO/include/g++"  "libsubdir=$FOO/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.53"  "gcc_version=egcs-2.91.53"  "gcc_version_trigger=$FOO/egcs-19980803/gcc/version.c"  "AR=ar"  "AR_FLAGS=rc"  "CC=$FOO/build/gcc/xgcc -B$FOO/build/gcc/"  "CXX=$FOO/build/gcc/xgcc -B$FOO/build/gcc/"  "CFLAGS=-g"  "CXXFLAGS=-g -O2"  "NM=nm"  "RANLIB=ranlib"  "LIBCFLAGS=-g"  "LIBCXXFLAGS=-g -O2 -fno-implicit-templates"  "LOADLIBES="  "LDFLAGS="  "MAKEINFO=$FOO/build/texinfo/makeinfo/makeinfo "  "SHLIB=libstdc++.so.2.9.0"
  "SHCURSES="  "RUNTESTFLAGS="  CFLAGS="-g ${flags}"  CXXFLAGS="-g -O2 ${flags}"
  LIBCFLAGS="-g ${flags}"  LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}"
  LDFLAGS=" ${flags}"  install); then  true;  else  exit 1;  fi;  else true;  fi
;  fi;  done;  fi
Make: Makefile, line 63: syntax error.  Stop.
*** Exit 1
Stop.
%
======================================================
 
 
 
 
====================================================
= Reid M. Pinchback                                =
= I/T Delivery, MIT                                =
=                                                  =
= Email:   reidmp@mit.edu                          =
= URL:     http://web.mit.edu/reidmp/www/home.html =
====================================================



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