当前位置: 技术问答>linux和unix
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror)
来源: 互联网 发布时间:2017-05-27
本文导语: Compiler error reporting is too harsh for ./configure (perhaps remove -Werror) 编译的时候出现这个错误,请问要如何移除 GCC的 -Wall 功能?这个功能是将警告当作错误处理。 | this is usually what it doe...
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror)
编译的时候出现这个错误,请问要如何移除 GCC的 -Wall 功能?这个功能是将警告当作错误处理。
编译的时候出现这个错误,请问要如何移除 GCC的 -Wall 功能?这个功能是将警告当作错误处理。
|
this is usually what it does
u can tell it tries to do a simple compilation against a testing c file. You will need to figure out what exactly CFLAGS contains, removing -Werror is just a hint, a possibility. What it does is that it treats all warning as error, which is definitely harsh for any environment...
if try $CC -c $CFLAGS $test.c; then
:
else
echo "Compiler error reporting is too harsh for $0 (perhaps remove -Werror)." | tee -a configure.log
leave 1
fi
u can tell it tries to do a simple compilation against a testing c file. You will need to figure out what exactly CFLAGS contains, removing -Werror is just a hint, a possibility. What it does is that it treats all warning as error, which is definitely harsh for any environment...