From: Stephen L. <ste...@st...> - 2014-04-30 00:57:10
|
I'm getting configure failures that appear to be caused by g++ not returning status to the msys64 shell correctly. For example: checking whether plain char is signed... no config.log shows: configure:7042: checking whether plain char is signed configure:7060: g++ -c -I/Msys2/msys64/include -I/Msys2/msys64/mingw64/include -g -O2 -Wall conftest.cpp >&5 conftest.cpp: In function 'int main()': conftest.cpp:20:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable] static int test_array [1 - 2 * !(((int)(char)-1) < 0)]; ^ configure:7060: $? = 0 configure: failed program was: But g++ did not fail; it only reported a warning. Running the same g++ command directly in the msys64 shell, followed by 'echo $?', gives 0. But adding 'echo $?' to the configure script gives 1. So something is different when run by the configure script. Several similar tests are failing similarly, but others are passing. -- -- Stephe |