Hello.

gcc-4.2-20061007 and gcc-4.2-20061014 failed to build on MinGW.
Does anybody see the same and understand?
I used the options for configure that was --prefix=/mingw and --enabled-languages.
My platform is WindowsXP, with MinGW and MSYS.

Thank you.

YT

Case 1, C only:

...
/home/usr/build/./prev-gcc/xgcc -B/home/usr/build/./prev-gcc/ -B/mingw/i686-pc-m ingw32/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overleng th-strings -Wold-style-definition -Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.2-20061014/gcc -I../../gcc-4.2-20061014 /gcc/. -I../../gcc-4.2-20061014/gcc/../include -I./../intl -I../../gcc-4.2-20061 014/gcc/../libcpp/include -I../../gcc-4.2-20061014/gcc/../libdecnumber -I../lib decnumber ../../gcc-4.2-20061014/gcc/tree-pretty-print.c -o tree-pretty-print
.o
cc1.exe: warnings being treated as errors
../../gcc-4.2-20061014/gcc/tree-pretty-print.c: In function 'dump_bb_header': ../../gcc-4.2-20061014/gcc/tree-pretty-print.c:2652: キルケ・ ISO C 、マ the 'I' prin
tf flag 、アノユ、ア、゙、サ、
../../gcc-4.2-20061014/gcc/tree-pretty-print.c:2652: キルケ・ format '%I64d' expect
s type 'int', but argument 3 has type 'gcov_type'
make[3]: *** [tree-pretty-print.o] Error 1
make[3]: Leaving directory `/home/usr/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/usr/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/usr/build'
make: *** [all] Error 2

Maybe, I think that hwint.h is a cause.
For ad-hoc correction, insert these #undef/#define to the end of hwint.h.

#undef HOST_WIDE_INT
#define HOST_WIDE_INT long long
#undef HOST_WIDEST_INT_PRINT_DEC
#define HOST_WIDEST_INT_PRINT_DEC "%lld"

And restart make.

...
/home/usr/build/./prev-gcc/xgcc -B/home/usr/build/./prev-gcc/ -B/mingw/i686-pc-m ingw32/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overleng th-strings -Wold-style-definition -Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.2-20061014/gcc -I. ./../gcc-4.2-20061014/gcc/build -I../../gcc-4.2-20061014/gcc/../include -I./../i ntl -I../../gcc-4.2-20061014/gcc/../libcpp/include -I../../gcc-4.2-20061014/gcc /../libdecnumber -I../libdecnumber -o build/genmodes.o ../../gcc-4.2-20061014
/gcc/genmodes.c
../../gcc-4.2-20061014/gcc/genmodes.c:1: internal compiler error: in stabstr_O,
at dbxout.c:754
エーチエ、ハ・ミ・ーハテ、ニイシ、オ、、。」
ナャタレ、ハ、鬢ミ・ラ・・ラ・愠サ・ケク螟ホ・ス。シ・ケ、ト、ア、ニ、ッ、タ、オ、、。」
<URL:http://gcc.gnu.org/bugs.html> 、ォ、・ミハヒ。、ャス、、ニ、「、熙゙、ケ。」
make[3]: *** [build/genmodes.o] Error 1
make[3]: Leaving directory `/home/usr/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/usr/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/usr/build'
make: *** [all] Error 2

An internal compiler error.

As for the reason for the garbage characters, the character-code is different.
It seems EUC-Code, but Windows-console can not display it.

Case 2, including Ada:

When --enable-languages=c,ada, the making process stopped short of Case 1.

...
gnatbind -C -I- -I. -Iada -I../../gcc-4.2-20061014/gcc/ada -o ada/b_gnat1.c -n a
da/gnat1drv.ali
fatal error: file gnat1drv.ali is incorrectly formatted
make sure you are using consistent versions of gcc/gnatbind
10.
     |
make[3]: *** [ada/b_gnat1.c] Error 4
make[3]: Leaving directory `/home/usr/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/usr/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/usr/build'
make: *** [all] Error 2

Maybe, it should use (/mingw)/bin/gnatbind, instead of gnatbind in current building directory.

Reply via email to