Thread: BUG #15362: llbeta3: ./configure;in x86_64-w64-mingw32-gcc 8.2.0 wrong options "-V" and "-qversion"
BUG #15362: llbeta3: ./configure;in x86_64-w64-mingw32-gcc 8.2.0 wrong options "-V" and "-qversion"
From
PG Bug reporting form
Date:
The following bug has been logged on the website: Bug reference: 15362 Logged by: Andre Mikulec Email address: andre_mikulec@hotmail.com PostgreSQL version: 11beta3 Operating system: Windows 10 64bit latest Description: Hi, I am using the latest postgresql from the mirror "https://github.com/postgres/postgres" Latest commit 4ddd8f5 I am trying to configure "llbeta3" using AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build /w/R-3.5._/postgres/configure --host=x86_64-w64-mingw32 --prefix=$PWD --enable-debug --disable-rpath --enable-depend --without-zlib Using tail -f config.log vim config.log I am seeing these results gcc version 8.2.0 (Rev1, Built by MSYS2 project) configure:3963: $? = 0 configure:3952: x86_64-w64-mingw32-gcc -V >&5 x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-V' x86_64-w64-mingw32-gcc.exe: fatal error: no input files compilation terminated. configure:3963: $? = 1 configure:3952: x86_64-w64-mingw32-gcc -qversion >&5 x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-qversion'; did you mean '--version'? x86_64-w64-mingw32-gcc.exe: fatal error: no input files compilation terminated. Option "-V" (CAPITAL V) seems to not being used correctly. AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build $ x86_64-w64-mingw32-gcc -V x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-V' x86_64-w64-mingw32-gcc.exe: fatal error: no input files compilation terminated. Option "-qversion" seems to not exist. AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build $ x86_64-w64-mingw32-gcc -qversion x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-qversion'; did you mean '--version'? x86_64-w64-mingw32-gcc.exe: fatal error: no input files compilation terminated. "--version" still works AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build $ x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc.exe (Rev1, Built by MSYS2 project) 8.2.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. About "-V", the docs ( https://linux.die.net/man/1/gcc ) say " Specifying Target Machine and Compiler Version -V and -b options work by running the <machine>-gcc-<version> executable -V version The argument version specifies which version of GCC to run " So, the usage is not to query information, the usage seems to be to "set" information. About "-qversion", the docs ( https://linux.die.net/man/1/gcc ) say . . . nothing! Thanks, Andre Mikulec Andre_Mikulec@Hotmail.com
Re: BUG #15362: llbeta3: ./configure; in x86_64-w64-mingw32-gcc8.2.0 wrong options "-V" and "-qversion"
From
Alvaro Herrera
Date:
On 2018-Sep-03, PG Bug reporting form wrote: > AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build > /w/R-3.5._/postgres/configure --host=x86_64-w64-mingw32 --prefix=$PWD > --enable-debug --disable-rpath --enable-depend --without-zlib > > Using > tail -f config.log > vim config.log > I am seeing these results This is normal. 'configure' tests all known compiler switches that report a version number, for all possible compilers. If your compiler fail some of those tests, that's expected, as long as there is *some* switch that works. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services