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]

Re: gcc make bootstrap fails with: /bin/sh: -c: line 1: syntax error near unexpected token `(C'


This is more of a gcc-help topic.  No, gcc and the g++ compiler itself
need to be fully bootstrapped before configuring in libstdc++.  If those
have been done correctly, you should be able to remove completely the
libstdc++ library under objdir and go back to objdir and do 'make
LANGUAGES=c++'  For completeness, you may as well remove all
subdirectories under objdir/i586.... before rebuilding the final
libraries.

Tim Prince
----- Original Message -----
From: "Peter Viitasaari" <pjviitas@flash.lakeheadu.ca>
To: <gcc-bugs@gcc.gnu.org>
Sent: Saturday, July 15, 2000 5:14 PM
Subject: gcc make bootstrap fails with: /bin/sh: -c: line 1: syntax
error near unexpected token `(C'


gcc version: 2.95.2
libstdc++ version: 2.90.6
machine: i586-pc-linux-gnu
directories used: gccsrcdir: /root/installs/gcc-2.95.2
                         libsrcdir:
/root/installs/gcc-2.95.2/libstdc++-2.90.6
                         gccbuilddir: /root/installs/objdir
                         libbuilddir: none needed
                        destdir: /usr
recipe for disaster:
Starting in /root/installs/gcc-2.95.2 do this:

   mv libstdc++ libstdc++-v2
   mv libio libio-v2

   tar xzf ../libstdc++-2.90.6.tar.gz

   ln -s libstdc++-2.90.6 libstdc++

   cd ../objdir
   ../gcc-2.95.2/configure --prefix=/usr
   make bootstrap

Fails with this: (Reproduced with make check)

Script started on Sat Jul 15 16:44:08 2000
[root@pjviitas objdir]# make check
   CFLAGS="-g -O2 ${flags}" \
   CXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE ${flags}" \
   LIBCFLAGS="-g -O2 ${flags}" \



LIBCXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-template
s ${flags}" \
   LDFLAGS=" ${flags}" \
   all); then \
   true; \
 else \
   exit 1; \
 fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[2]: Leaving directory
`/root/installs/objdir/i586-pc-linux-gnu/libiberty'
make[1]: Leaving directory
`/root/installs/objdir/i586-pc-linux-gnu/libiberty'
make[1]: Entering directory
`/root/installs/objdir/i586-pc-linux-gnu/libstdc++'
make  all-recursive
make[2]: Entering directory
`/root/installs/objdir/i586-pc-linux-gnu/libstdc++'
Making all in math
make[3]: Entering directory
`/root/installs/objdir/i586-pc-linux-gnu/libstdc++/math'
/bin/sh ../libtool --mode=compile
(CC_FOR_TARGET) -DHAVE_CONFIG_H -I. -I../../../../gcc-2.95.2/libstdc++/m
ath -I..     (CFLAGS_FOR_TARGET) -c
../../../../gcc-2.95.2/libstdc++/math/signbit.c
/bin/sh: -c: line 1: syntax error near unexpected token `(C'
/bin/sh: -c: line 1: `/bin/sh ../libtool --mode=compile
(CC_FOR_TARGET) -DHAVE_CONFIG_H -I. -I../../../../gcc-2.95.2/libstdc++/m
ath -I..     (CFLAGS_FOR_TARGET) -c
../../../../gcc-2.95.2/libstdc++/math/signbit.c'
make[3]: *** [signbit.lo] Error 2
make[3]: Leaving directory
`/root/installs/objdir/i586-pc-linux-gnu/libstdc++/math'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/installs/objdir/i586-pc-linux-gnu/libstdc++'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/root/installs/objdir/i586-pc-linux-gnu/libstdc++'
make: *** [all-target-libstdc++] Error 2
[root@pjviitas objdir]# exit

Script done on Sat Jul 15 16:44:45 2000

Fix: I am not too sure but it seems like some of the script variables
are not being passed into the libstdc++ makefile.  Is the libstdc++ have
to be made before gcc is bootstapped?

Peter J. Viitasaari
#214A 413 Edward Street North
Thunder Bay, ON P7C 4P6
Telephone: 807-473-3567
E-mail: pjviitas@flash.lakeheadu.ca

Alternate Address:
#301 245A Bay Street
Thunder Bay, ON P7B 6P2
Telephone: 807-476-6304
E-mail: pjviitasaari@netscape.net



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