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

From: Andre Mikulec <andre_mikulec(at)hotmail(dot)com>
To: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Bug: x86_64-w64-mingw32 REL_11_STABLE with features: UpdateStatisticsForTypeChange internal compiler error
Date: 2018-09-05 15:22:27
Message-ID: BYAPR15MB22160A7A3E99229734CB97BA9C020@BYAPR15MB2216.namprd15.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)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(at)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(at)ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
$ make -C src/backend/commands
retuns the same

I examined.
AnonymousUser(at)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(at)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(at)alvh(dot)no-ip(dot)org>
Date: Mon Sep 3 12:58:42 2018 -0300
***

Thanks,
Andre Mikulec
Andre_Mikulec(at)Hotmail(dot)com

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>

Attachment Content-Type Size
config.log application/octet-stream 1.0 MB
config.status application/octet-stream 42.9 KB

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-09-05 17:53:55 Re: Bug: x86_64-w64-mingw32 REL_11_STABLE with features: UpdateStatisticsForTypeChange internal compiler error
Previous Message Mario Emmenlauer 2018-09-05 07:46:47 Re: BUG #15363: Logging unexpectedly goes to system event log instead of stderr