https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68048

            Bug ID: 68048
           Summary: Unable to compile
                    ./host-x86_64-pc-linux-gnu/gcc/version.c! Can't pass
                    preprocessor strings!
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ghasemi.arash at gmail dot com
  Target Milestone: ---

Summary:

I checkout the latest svn trunk and "configure" is successful with the
following string:
==========================================================================
./configure --prefix=/home/me/gcc-cerberus/install_dir_cerberus/
--with-gmp=/home/me/gcc-trunk/gmp-6.0.0/install_dir/
--with-mpfr=/home/me/gcc-trunk/mpfr-3.1.3/install_dir/
--with-mpc=/home/me/gcc-trunk/mpc-1.0.3/install_dir/
--enable-languages=c,c++,fortran --disable-multilib
==========================================================================

But "make" failed when it reaches to compile "version.c". Please see the
following message:

==========================================================================
g++ -std=gnu++98 -c   -g -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild
-I../.././gcc -I../.././gcc/build -I../.././gcc/../include 
-I../.././gcc/../libcpp/include  \
        -DBASEVER="\"6.0.0\"" -DDATESTAMP="\" 20151022\"" \
        -DREVISION="\"\"" \
        -DDEVPHASE="\" (experimental)\"" -DPKGVERSION="\"(GCC) \"" \
        -DBUGURL="\"<http://gcc.gnu.org/bugs.html>\"" -o build/version.o
../.././gcc/version.c
g++.orig: error: 20151022": No such file or directory
g++.orig: error: (experimental)": No such file or directory
g++.orig: error: ": No such file or directory
make[3]: *** [build/version.o] Error 1
make[3]: Leaving directory `/home/me/gcc-cerberus/host-x86_64-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/me/gcc-cerberus'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/me/gcc-cerberus'
make: *** [all] Error 2
==========================================================================

Some possibilities:

   I think I successfully compiled and installed mpc, mpfr, and gmp libraries
and the "configure" stage of GCC recognizes them. So I suspected to
adding/removing the other options, i.e --enable-languages=c,c++,fortran and
--disable-multilib, and in either case I get exactly same error.

   Please note that either shell or GNU make on my system think that
-DDATESTAMP="\" 20151022\"" is a file and it doesn't know that it is the
preprocessor input for compilation! So where is the problem? Please help me
ASAP. Thanks!

Reply via email to