mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] error when compiling gcc


From: hoijui
Subject: [Mingw-cross-env-list] error when compiling gcc
Date: Sun, 30 May 2010 14:11:00 +0200

Hello,
This is with current dev version (cloned from mercurial), but i
remember having had hte exact same problem last time i tried this
script, over a year ago, on a different computer, with different OS.

gcc  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wc++-compat   -DHAVE_CONFIG_H -I. -I.
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/.
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/../include
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/../libcpp/include
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/build/./gmp
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gmp
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/build/./mpfr
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/mpfr
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/mpc/src
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/../libdecnumber
-I/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/../libdecnumber/dpd
-I../libdecnumber     \
        -DBASEVER="\"4.5.0\"" -DDATESTAMP="\"\"" \
        -DREVISION="\"\"" \
        -DDEVPHASE="\"\"" -DPKGVERSION="\"(GCC) \"" \
        -DBUGURL="\"<http://gcc.gnu.org/bugs.html>\"" -c
/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/version.c -o
version.o
gcc: ": No such file or directory
<command-line>: warning: missing terminating " character
/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/version.c:36:
error: missing terminating " character
/home/userX/src/mingw-cross-env/tmp-gcc/gcc-4.5.0/gcc/version.c:36:
error: expected expression before ';' token

when i replace this:
 -DPKGVERSION="\"(GCC) \""
with this:
 -DPKGVERSION="\"(GCC)\""
(removing the space after "(GCC)" )
it works.

I have no idea why, but if you can figure out why. I experimented, and
found out that it happens whenever there is a space character in
there, no matter where in the string.
in tmp-gcc/gcc-4.5.0/gcc/configure, i found this:
PKGVERSION="(GCC) "
which is the origin of that string.

now... i kind of feel helpless here. i can not change the thing in the
temp folder, cause it will be overwritten, i can not repack it into
gcc-4.5.0.tar.bz2, cause the checksum will be different.

robin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]