24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 866  |  回复: 5
当前主题已经存档。
【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 pengdou 的 20 个金币

pengdou

至尊木虫 (正式写手)

[交流] 【求助】关于siesta3.0并行 编译的问题

请教大家:
我在并行编译siesta3.0时出现以下问题:
Compilation architecture to be used: i686-pc-linux-gnu--Intel
If this is not what you want, create the right
arch.make file using the models in Src/Sys

Hit ^C to abort...
(cd FoX; touch arch.make ; \
         CONFIGURE="/home/doukp/Siesta/parall/siesta-3.0-b/Src/FoX/configure"; \
         $CONFIGURE VPATH="/home/doukp/Siesta/parall/siesta-3.0-b/Src/FoX" \
         FC="/opt/openmpi/bin/mpif90" FCFLAGS="-g -O2" \
         --enable-wcml  || false )
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for linker flag to name executables... -o
checking for Fortran compiler default output file name... conftest
checking whether the Fortran compiler works... configure: error: cannot run Fortran compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [FoX/.config] 错误


但是我串行编译siesta3.0,没出错,这是怎么回事啊
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pengdou

至尊木虫 (正式写手)

附arch.mke文件

我的arch.makes是
FPP=
FPP_OUTPUT=
FC=/opt/openmpi/bin/mpif90
RANLIB=ranlib

SYS=nag

SP_KIND=4
DP_KIND=8
KINDS=$(SP_KIND) $(DP_KIND)

FFLAGS=-g -O2
FPPFLAGS= -DFC_HAVE_FLUSH -DFC_HAVE_ABORT
LDFLAGS=

ARFLAGS_EXTRA=

FCFLAGS_fixed_f=
FCFLAGS_free_f90=
FPPFLAGS_fixed_F=
FPPFLAGS_free_F90=

#BLAS_LIBS=-lmkl_ia32  -lguide -lpthread
#LAPACK_LIBS=-L/opt/intel/mkl/10.0.2.018 b/32
#BLACS_LIBS=
#SCALAPACK_LIBS=

#SCA=-L/opt/intel/mkl/10.0.2.018 b/32 -lscalapack -lblacs -lmkl_ia32 -llapack -lguide
#SCA=-L/opt/intel/mkl/10.0.2.018 b/32 -lscalapack -lblacs -lmkl_ia32  -lguide
SCA=-L/opt/intel/mkl/10.0.2.018 b/32 -lmkl_scalapack -lmkl_blacs_openmpi -lmkl_ia32  -lguide -lpthread

#COMP_LIBS=dc_lapack.a liblapack.a libblas.a

NETCDF_LIBS=
NETCDF_INTERFACE=

LIBS=$(SCA) $(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(NETCDF_LIBS)

#SIESTA needs an F90 interface to MPI
#This will give you SIESTA's own implementation
#If your compiler vendor offers an alternative, you may change
#to it here.
MPI_INTERFACE=libmpi_f90.a
MPI_INCLUDE=/opt/openmpi/include
DEFS_MPI=-DMPI
DEFS= $(DEFS_MPI)

#Dependency rules are created by autoconf according to whether
#discrete preprocessing is necessary or not.
.F.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_fixed_F)  $(DEFS) $<
.F90.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_free_F90) $(DEFS) $<
.f.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_fixed_f)  $<
.f90.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_free_f90)  $<
2楼2010-01-13 20:03:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pengdou

至尊木虫 (正式写手)

config.log

In config.log,it show:

.....
configure:2078: result: conftest
configure:2083: checking whether the Fortran compiler works
configure:2093: ./conftest
./conftest: error while loading shared libraries: libmpi_f90.so.0: cannot open shared object file: No such file or directory
configure:2096: $? = 127
configure:2105: error: cannot run Fortran compiled programs.
If you meant to cross compile, use `--host'.
......
3楼2010-01-13 21:18:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fuzp

铁杆木虫 (正式写手)

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
pengdou(金币+10,VIP+0):谢谢捧场 1-14 09:07
aylayl08(金币+2,VIP+0):谢谢提示 1-14 09:09
从错误上看,checking whether the Fortran compiler works... configure: error: cannot run Fortran compiled programs.
应该是你的编译器不正常,既然提示说 libmpi_f90.so.0找不到,那就看看这个有没有。
也可以换库文件看看。BLAS_LIBS, LAPACK_LIBS, BLACS_LIBS, SCALAPACK_LIBS这些,可以试试系统自带的库。
4楼2010-01-14 08:54:28
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pengdou

至尊木虫 (正式写手)

找到错误了


aylayl08(金币+1,VIP+0):感谢反馈信息 1-14 19:40
错误有两个:
1是环境变量没有设置好,没有添加openmpi的lib,
后来又发现openmpi也装的有问题,重新装过之后,就都解决了,呵呵
5楼2010-01-14 09:09:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hadone

银虫 (小有名气)

你这个编译用的是动态函数库?有没有用静态函数库的实例呢?谢谢。
6楼2010-03-24 19:23:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 pengdou 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 269电子信息求调剂,可转专业 +5 独酌wl 2026-04-06 5/250 2026-04-06 17:23 by 土木硕士招生
[考研] 301求调剂 +13 121. 2026-04-04 13/650 2026-04-06 14:20 by lqwchd
[考研] 320分人工智能调剂 +8 振—TZ 2026-04-03 8/400 2026-04-05 22:33 by 范式思维
[考研] 22408 总分320,一篇论文二作,两个国三,求调剂 +3 Leomulufu 2026-04-04 5/250 2026-04-05 19:04 by chongya
[考研] 307分材料专业求调剂 +7 Hll胡 2026-04-05 7/350 2026-04-05 18:47 by 无际的草原
[考研] 材料0856 英一数二 323 求调剂 +14 袁sy 2026-04-01 14/700 2026-04-05 18:18 by cql1109
[考研] 一志愿西北农林畜牧专硕336分求调剂 +3 5ourr 2026-04-03 3/150 2026-04-05 10:40 by JOKER0401
[考研] 材料调剂 +9 革微桂 2026-04-04 9/450 2026-04-05 08:27 by 544594351
[考研] 一志愿郑大0705求调剂 +3 橘十一 2026-04-02 4/200 2026-04-05 00:05 by chongya
[考研] 材料295 +13 小英11 2026-04-03 14/700 2026-04-04 09:02 by 来看流星雨10
[考研] 322求调剂 +6 FZAC123 2026-04-03 6/300 2026-04-03 22:23 by 科研小专家
[考研] 071000生物学调剂 +8 知昭蔓 2026-04-02 8/400 2026-04-03 10:36 by macy2011
[考研] 311求调剂一志愿合肥工业大学 +15 秋二十二 2026-03-30 15/750 2026-04-03 10:19 by linyelide
[考研] 330求调剂 +3 白神呜呼呼 2026-04-02 3/150 2026-04-03 10:15 by 蓝云思雨
[考研] 22408 266求调剂 +3 masss11222 2026-04-02 3/150 2026-04-02 18:11 by 笔落锦州
[考研] 调剂 +3 好好读书。 2026-04-01 6/300 2026-04-02 15:49 by liumengping
[考研] 08工科求调剂290分 +5 1314捧花 2026-04-02 8/400 2026-04-02 13:16 by 乔哒哒哒
[考研] 272求调剂,接受跨专业调剂! +4 闲鱼卢 2026-03-31 4/200 2026-04-02 11:18 by guyan1000
[考研] 一志愿346上海大学生物学 +3 上海大学346调剂 2026-04-01 3/150 2026-04-02 08:36 by w虫虫123
[考研] 求调剂 生物学 377分 +6 zzll03 2026-03-31 6/300 2026-03-31 17:33 by 唐沐儿
信息提示
请填处理意见