计算化学公社
标题: 请问Ubuntu 18.04下编译torque 6.1.2出错 [打印本页]
作者Author: qchem 时间: 2018-5-28 07:37
标题: 请问Ubuntu 18.04下编译torque 6.1.2出错
出现下面的错误
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
不加问题更多
作者Author: Warm_Cloud 时间: 2018-5-28 09:04
试试
sudo apt-get install torque-server torque-scheduler
sudo apt-get install torque-common torque-mom libtorque2
sudo apt-get install torque-client
作者Author: qchem 时间: 2018-5-29 08:05
没这些包呀?是要加什么源吗?
作者Author: bluewhale 时间: 2018-5-30 09:41
本帖最后由 bluewhale 于 2018-5-30 10:14 编辑
有可能OS版本过高,编译用的好像是GCC 7,可装一低一些的GCC试一试。
对 Red Hat & SUSE 支持的较好,手册里根本没提对Ubuntu支持!
作者Author: qchem 时间: 2018-5-30 14:14
用
./configure CC=gcc-5 CXX=g++-5
生成的makefile了
前面编译都是用的g++-5,怎么后面又不是了呢
作者Author: bluewhale 时间: 2018-5-30 22:43
编一份原生GCC 5.4试试,e.g.,
./configure --prefix=/opt/gcc-5.4.0 --enable-checking=release --enable-languages=c,c++,fortran
再设好路径。
作者Author: qwoop 时间: 2020-1-5 13:36
亲测pbspro(https://github.com/PBSPro/pbspro.git)在unbuntu19.04下可用,我已经换成它了
作者Author: wypkdhd 时间: 2020-2-7 12:37
请问楼主,pbspro和torque有什么区别呢?
作者Author: qwoop 时间: 2020-2-12 20:09
相同/相近协议的不同软件实现,基本功能和命令都是一样的。我的原来在torque下的脚本可以完美在pbspro下运行。
作者Author: wypkdhd 时间: 2020-2-13 18:00
好的谢谢。
作者Author: wangtaochem 时间: 2020-3-20 19:55
您好!您的这个错误解决了吗?我也遇到了这样的问题。
作者Author: qchem 时间: 2020-3-29 21:50
记不得了,好像是用添加源的方式直接安装的
作者Author: wangtaochem 时间: 2020-3-31 23:04
好的,谢谢了哈!后面改用pbspro安装好了。
欢迎光临 计算化学公社 (http://bbs.keinsci.com/) |
Powered by Discuz! X3.3 |