出现下面的错误
numa_chip.cpp: In member function ‘void Chip::initialize_allocations(const Json::Value&, std::vector<std::__cxx11::basic_string<char> >&)’: numa_chip.cpp:479:3: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if(layout.size() == 0) ^~ numa_chip.cpp:482:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ for (int i = 0; i < layout.size();i++) ^~~ mv -f .deps/numa_pci_device.Tpo .deps/numa_pci_device.Po g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I../../../src/include `xml2-config --cflags` -I/usr/local/include -g -fstack-protector -Wformat -Wformat-security -DFORTIFY_SOURCE=2 -W -Wall -Wextra -Wno-unused-parameter -Wno-long-long -Wpedantic -Werror -Wno-sign-compare -MT numa_socket.o -MD -MP -MF .deps/numa_socket.Tpo -c -o numa_socket.o numa_socket.cpp mv -f .deps/numa_core.Tpo .deps/numa_core.Po g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I../../../src/include `xml2-config --cflags` -I/usr/local/include -g -fstack-protector -Wformat -Wformat-security -DFORTIFY_SOURCE=2 -W -Wall -Wextra -Wno-unused-parameter -Wno-long-long -Wpedantic -Werror -Wno-sign-compare -MT allocation.o -MD -MP -MF .deps/allocation.Tpo -c -o allocation.o allocation.cpp mv -f .deps/machine.Tpo .deps/machine.Po g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I../../../src/include `xml2-config --cflags` -I/usr/local/include -g -fstack-protector -Wformat -Wformat-security -DFORTIFY_SOURCE=2 -W -Wall -Wextra -Wno-unused-parameter -Wno-long-long -Wpedantic -Werror -Wno-sign-compare -MT jsoncpp.o -MD -MP -MF .deps/jsoncpp.Tpo -c -o jsoncpp.o jsoncpp.cpp cc1plus: all warnings being treated as errors Makefile:512: recipe for target 'numa_chip.o' failed make[4]: *** [numa_chip.o] Error 1 make[4]: *** Waiting for unfinished jobs.... jsoncpp.cpp:222:14: error: ‘template<class> class std::auto_ptr’ is deprecated [-Werror=deprecated-declarations] typedef std::auto_ptr<CharReader> CharReaderPtr; ^~~~~~~~ In file included from /usr/include/c++/7/memory:80:0, from jsoncpp.cpp:205: /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ jsoncpp.cpp:3781:14: error: ‘template<class> class std::auto_ptr’ is deprecated [-Werror=deprecated-declarations] typedef std::auto_ptr<StreamWriter> StreamWriterPtr; ^~~~~~~~ In file included from /usr/include/c++/7/memory:80:0, from jsoncpp.cpp:205: /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ mv -f .deps/allocation.Tpo .deps/allocation.Po jsoncpp.cpp: In member function ‘bool Json::OurReader::readToken(Json::OurReader::Token&)’: jsoncpp.cpp:1274:5: error: this statement may fall through [-Werror=implicit-fallthrough=] if (features_.allowSingleQuotes_) { ^~ jsoncpp.cpp:1279:3: note: here case '/': ^~~~ mv -f .deps/numa_socket.Tpo .deps/numa_socket.Po cc1plus: all warnings being treated as errors Makefile:512: recipe for target 'jsoncpp.o' failed make[4]: *** [jsoncpp.o] Error 1 make[4]: Leaving directory '/home/lsx/soft/torque-6.1.2/src/lib/Libutils' Makefile:548: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/home/lsx/soft/torque-6.1.2/src/lib/Libutils' Makefile:392: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/home/lsx/soft/torque-6.1.2/src/lib' Makefile:403: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/lsx/soft/torque-6.1.2/src' Makefile:586: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1
要怎么办呀?有没有编译好的包可以装呢?
谢谢!
已经加了 -fpermissive
不加问题更多
|