Bug: x86_64-w64-mingw32 REL_11_STABLE with features:UpdateStatisticsForTypeChange internal compiler error

Поиск
Список
Период
Сортировка
От Andre Mikulec
Тема Bug: x86_64-w64-mingw32 REL_11_STABLE with features:UpdateStatisticsForTypeChange internal compiler error
Дата
Msg-id BYAPR15MB22160A7A3E99229734CB97BA9C020@BYAPR15MB2216.namprd15.prod.outlook.com
обсуждение исходный текст
Ответы Re: Bug: x86_64-w64-mingw32 REL_11_STABLE with features: UpdateStatisticsForTypeChange internal compiler error
Список pgsql-bugs

Hi,

When trying compile PostgreSQL REL_11_STABLE using x86_64-w64-mingw32 using

/w/R-3.5._/postgres/configure --host=x86_64-w64-mingw32 --prefix=$PWD/build CFLAGS="-O -fno-omit-frame-pointer" --disable-rpath --enable-depend --enable-cassert --enable-debug  --with-icu ICU_CFLAGS="-I/w/icu-61.1/icu4c/dist/include" ICU_LIBS="-L/w/icu-61.1/icu4c/dist/lib -licui18n -licuuc -licudata" --with-openssl --with-libxml --with-libxslt --with-tcl --with-python --with-perl --with-includes=/w/zlib-1.2.8-win32-x86_64/include:/w/openssl-1.0.2e-win32-x86_64/include:/w/libxml2-2.9.3-win32-x86_64/include/libxml2:/w/libxslt-1.1.28-win32-x86_64/include --with-libraries=/w/zlib-1.2.8-win32-x86_64/lib:/w/openssl-1.0.2e-win32-x86_64/lib:/w/libxml2-2.9.3-win32-x86_64/lib:/w/libxslt-1.1.28-win32-x86_64/lib

I am getting this error:

"
W:/R-3.5._/postgres/src/backend/commands/statscmds.c: In function 'UpdateStatisticsForTypeChange':
W:/R-3.5._/postgres/src/backend/commands/statscmds.c:435:1: internal compiler error: in based_loc_descr, at dwarf2out.c:14272
 }
 ^
"

Note: I can build without any errors using just

/w/R-3.5._/postgres/configure --host=x86_64-w64-mingw32 --prefix=$PWD/build --disable-rpath --enable-depend --enable-debug

I examined "W:/R-3.5._/postgres/src/backend/commands/statscmds.c" at line 41.
The only thing I can think of is that maybe the code should include a "return void;"?

The following is my method and results.

AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
/w/R-3.5._/postgres/configure --host=x86_64-w64-mingw32 --prefix=$PWD/build CFLAGS="-O -fno-omit-frame-pointer" --disable-rpath --enable-depend --enable-cassert --enable-debug  --with-icu ICU_CFLAGS="-I/w/icu-61.1/icu4c/dist/include" ICU_LIBS="-L/w/icu-61.1/icu4c/dist/lib -licui18n -licuuc -licudata" --with-openssl --with-libxml --with-libxslt --with-tcl --with-python --with-perl --with-includes=/w/zlib-1.2.8-win32-x86_64/include:/w/openssl-1.0.2e-win32-x86_64/include:/w/libxml2-2.9.3-win32-x86_64/include/libxml2:/w/libxslt-1.1.28-win32-x86_64/include --with-libraries=/w/zlib-1.2.8-win32-x86_64/lib:/w/openssl-1.0.2e-win32-x86_64/lib:/w/libxml2-2.9.3-win32-x86_64/lib:/w/libxslt-1.1.28-win32-x86_64/lib

AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
make --debug

   File 'statscmds.o' does not exist.
  Must remake target 'statscmds.o'.
x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O -fno-omit-frame-pointer -I../../../src/include -I/w/R-3.5._/postgres/src/include -I/w/icu-61.1/icu4c/dist/include -I/w/R-3.5._/postgres/src/include/port/win32 -DEXEC_BACKEND  -I/w/zlib-1.2.8-win32-x86_64/include -I/w/openssl-1.0.2e-win32-x86_64/include -I/w/libxml2-2.9.3-win32-x86_64/include/libxml2 -I/w/libxslt-1.1.28-win32-x86_64/include "-I/w/R-3.5._/postgres/src/include/port/win32" -DBUILDING_DLL  -c -o statscmds.o /w/R-3.5._/postgres/src/backend/commands/statscmds.c -MMD -MP -MF .deps/statscmds.Po
during RTL pass: final
W:/R-3.5._/postgres/src/backend/commands/statscmds.c: In function 'UpdateStatisticsForTypeChange':
W:/R-3.5._/postgres/src/backend/commands/statscmds.c:435:1: internal compiler error: in based_loc_descr, at dwarf2out.c:14272
 }
 ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/msys2> for instructions.
make[3]: *** [../../../src/Makefile.global:878: statscmds.o] Error 1
make[3]: Leaving directory '/w/R-3.5._/postgres/build/src/backend/commands'
make[2]: *** [/w/R-3.5._/postgres/src/backend/common.mk:39: commands-recursive] Error 2
make[2]: Leaving directory '/w/R-3.5._/postgres/build/src/backend'
make[1]: *** [Makefile:42: all-backend-recurse] Error 2
make[1]: Leaving directory '/w/R-3.5._/postgres/build/src'
make: *** [GNUmakefile:11: all-src-recurse] Error 2

I tried manually. . . .

AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
$ make -C src/backend/commands
retuns the same

I examined.
AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
$ view /w/R-3.5._/postgres/src/backend/commands/statscmds.c

Attached are my config.log and config.status.

From the postgresql mirror https://github.com/postgres/postgres
I am using this commit.
(This is probably no longer the head)
***
AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres (REL_11_STABLE)
$ git log
commit bd47c4a9d4ec55e26e841754ce62c23ca9008e87 (HEAD -> REL_11_STABLE, origin/REL_11_STABLE)
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date:   Mon Sep 3 12:58:42 2018 -0300
***

Thanks,
Andre Mikulec
Andre_Mikulec@Hotmail.com


Virus-free. www.avg.com
Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Mario Emmenlauer
Дата:
Сообщение: Re: BUG #15363: Logging unexpectedly goes to system event log insteadof stderr
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug: x86_64-w64-mingw32 REL_11_STABLE with features: UpdateStatisticsForTypeChange internal compiler error