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

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

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


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] error when compiling gcc
Date: Mon, 31 May 2010 01:37:39 +1000

On 30 May 2010 22:11, hoijui <address@hidden> wrote:
> 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

That seems to be exactly the same as one of my logs, though it doesn't
cause an error.

> 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.

That must have taken some time to track down, though I don't think
it's the root of the problem.

> 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.

You could change the checksum.. just kidding. Can you send the full log file

 /home/userX/src/mingw-cross-env/log/gcc

you may need to compress it first. Also, could you send the output of:

gcc -v

Thanks,

Tony



reply via email to

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