undefined reference to H5PTopen

问题简介

Centos 7 上执行命令

rpmbuild -ta slurm-21.08.8.tar.bz2

遇到如下的问题

sh5util.o: In function _extract_series_table': /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1080: undefined reference to H5PTopen'
sh5util.o: In function _extract_totals': /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:936: undefined reference to H5PTget_num_packets'
/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:940: undefined reference to H5PTget_next' sh5util.o: In function _extract_series_table':
/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1090: undefined reference to H5PTget_num_packets' /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1095: undefined reference to H5PTget_next'
/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1117: undefined reference to H5PTclose' /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1126: undefined reference to H5PTclose'
/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1127: undefined reference to H5PTclose' sh5util.o: In function _extract_item_step':
/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1552: undefined reference to H5PTopen' /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1556: undefined reference to H5PTget_num_packets'
sh5util.o: In function _item_analysis_uint': /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1276: undefined reference to H5PTget_next'
sh5util.o: In function _item_analysis_double': /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1377: undefined reference to H5PTget_next'
sh5util.o: In function _extract_item_step': /storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1591: undefined reference to H5PTclose'
/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c:1606: undefined reference to `H5PTclose'
collect2: error: ld returned 1 exit status
Makefile:590: recipe for target 'sh5util' failed
make[6]: *** [sh5util] Error 1
make[6]: Leaving directory '/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5/sh5util'
Makefile:734: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/storage/slurm-17.11.12/src/plugins/acct_gather_profile/hdf5'
Makefile:540: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/storage/slurm-17.11.12/src/plugins/acct_gather_profile'
Makefile:569: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/storage/slurm-17.11.12/src/plugins'
Makefile:569: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/storage/slurm-17.11.12/src'
Makefile:696: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/storage/slurm-17.11.12'
Makefile:595: recipe for target 'all' failed
make: *** [all] Error 2

I am also attaching the full trace for reference.

解决方式

参见Issue
也是发现自己使用conda环境,因此,自己通过conda deactivate 然后编译成功了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值