早些时候,我在我的机器上遇到了使用Ubuntu的an issue。我已经解决了这个问题。目前我正在尝试配置MPICH的最新稳定版本(MPICH 3.0.4)。但是,在尝试确定基本数据类型的大小时似乎失败了。
checking size of char... 0
checking size of unsigned char... 0
checking size of short... 0
checking size of unsigned short... 0
checking size of int... 0
checking size of unsigned int... 0
checking size of long... 0
checking size of unsigned long... 0
checking size of long long... 0
checking size of unsigned long long... 0
checking size of float... 0
checking size of double... 0
checking size of long double... 0
checking size of void *... 0
checking for ANSI C header files... (cached) no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking size of wchar_t... 0
checking size of float_int... 0
checking size of double_int... 0
checking size of long_int... 0
checking size of short_int... 0
checking size of two_int... 0
checking size of long_double_int... 0
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... yes
configure: WARNING: sys/bitypes.h: present but cannot be compiled
configure: WARNING: sys/bitypes.h: check for missing prerequisite headers?
configure: WARNING: sys/bitypes.h: see the Autoconf documentation
configure: WARNING: sys/bitypes.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/bitypes.h: proceeding with the compiler's result
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: ## Report this to mpich-discuss@mcs.anl.gov ##
configure: WARNING: ## ---------------------------------------- ##
按照建议浏览config.log
文件后,我发现配置脚本找不到sys/types.h
或stdlib.h
。
...
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
...
然而,我找到了他们:/usr/include/stdlib.h
和
/usr/include/sys/types.h
。什么可能导致配置脚本找不到这两个系统库?
答案 0 :(得分:0)
由于时间不在我身边,我决定全新安装Ubuntu 12.04。在这样做之后,一切都运作良好。
答案 1 :(得分:0)
在RHEL5盒子上构建时遇到了同样的错误。这似乎是由于未能找到libtorque.so.2
,该/usr/local/lib
安装在此系统的src/pm/hydra/config.log
中(不会自动搜索库)。线索隐藏在configure:15881: checking size of unsigned int
configure:15886: gcc -o conftest -O2 -I/home/price/Software/mpich-3.0.4/src/mpl/include -I/home/price/Software/mpich-3.0.4/src/mpl/include -I/home/price/Software/mpich-3.0.4/src/openpa/src -I/home/price/Software/mpich-3.0.4/src/openpa/src -I/home/price/Software/mpich-3.0.4/src/mpi/romio/include -lnsl conftest.c -ltorque >&5
configure:15886: $? = 0
configure:15886: ./conftest
./conftest: error while loading shared libraries: libtorque.so.2: cannot open shared object file: No such file or directory
:
/usr/local/lib
解决方案是将LD_LIBRARY_PATH
放入{{1}}。