SCECcode / bbp

SCEC Broadband Platform
BSD 3-Clause "New" or "Revised" License
44 stars 29 forks source link

Having trouble installing - compiler issue #49

Open Dewan-cpu opened 8 months ago

Dewan-cpu commented 8 months ago

Hello Dev Team,

I am having an issue with installation, it appears to be an issue with the Fortran compiler (please see below). I am running Umbunto 22.04.3 lts Jammy Jellyfish. I used the easy installation script. I tried FCFLAGS and FFLAG from a similar issue but with a different program ex. (not entirely sure if I entered these correctly; https://forum.mmm.ucar.edu/threads/how-to-fix-rank-mismatch-between-actual-argument-at-1-and-actual-argument-at-2-scalar-and-rank-1.14995/); Thank you for your help.:

export fallow_argument=-fallow-argument-mismatch export boz_argument=-fallow-invalid-boz export FFLAGS="$fallow_argument $boz_argument -m64" export FCFLAGS="$fallow_argument $boz_argument -m64"


./easy_install_bbp_22.4.0.sh

====== Welcome to Broadband Platform 22.4.0 installation script ======

Using destination directory: /home/dewan/Desktop/bbp

==> Creating directory tree...

====== Setting up FFTW 3.3.8 library,... it takes a minute..... ======

===> Downloading... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4013k 0 4013k 0 0 1244k 0 --:--:-- 0:00:03 --:--:-- 1244k ===> Uncompressing file... ===> Checking md5sum... ===> Building single-precision library... ===> Building double-precision library... ===> Cleaning up... ==> FFTW Built successfully!

====== Setting up Broadband Platform 22.4.0 Source Distribution ======

==> Compiling... (it may take a few minutes)

** ERROR: BBP build failed, for more details please check: ** ERROR: /home/dewan/Desktop/bbp/bbp-22.4.0/bbp/src/bbp-build.log

LOG FILE- gfortran -O3 -c -o GOF_MO.o GOF_MO.f GOF_MO.f:526:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 526 | call GOF(PGAxR, PGAxS, 1, 1, 1, PGAfitX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:527:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 527 | call GOF(PGAyR, PGAyS, 1, 1, 1, PGAfitY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:528:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 528 | call GOF(PGAzR, PGAzS, 1, 1, 1, PGAfitZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:531:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 531 | call GOF(PGVxR, PGVxS, 1, 1, 1, PGVfitX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:532:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 532 | call GOF(PGVyR, PGVyS, 1, 1, 1, PGVfitY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:533:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 533 | call GOF(PGVzR, PGVzS, 1, 1, 1, PGVfitZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:536:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 536 | call GOF(PGDxR, PGDxS, 1, 1, 1, PGDfitX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:537:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 537 | call GOF(PGDyR, PGDyS, 1, 1, 1, PGDfitY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:538:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 538 | call GOF(PGDzR, PGDzS, 1, 1, 1, PGDfitZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:574:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 574 | call GOF(MAXVAL(SRSX), MAXVAL(SRRX), 1, 1, 1, PSAfitX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:575:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 575 | call GOF(MAXVAL(SRSY), MAXVAL(SRRY), 1, 1, 1, PSAfitY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:576:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2
...... 576 | call GOF(MAXVAL(VSRR), MAXVAL(VSRS), 1, 1, 1, PSAfitZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:643:15:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 643 | call GOF(DHR, DHS, 1, 1, 1, DFX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:660:15:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 660 | call GOF(DHR, DHS, 1, 1, 1, DFY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:677:15:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 677 | call GOF(DHR, DHS, 1, 1, 1, DFZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) make[2]: [makefile:36: GOF_MO.o] Error 1 make[2]: Leaving directory '/home/dewan/Desktop/bbp/bbp-22.4.0/bbp/src/sdsu/MOGof' make[1]: [makefile:5: all] Error 2 make[1]: Leaving directory '/home/dewan/Desktop/bbp/bbp-22.4.0/bbp/src/sdsu' make: *** [makefile:3: all] Error 2

MHZH123 commented 6 months ago

Have you solved this problem

dtiger10 commented 6 months ago

Have you solved this problem @MHZH123

We have not solved this issue.

Dewan-cpu commented 6 months ago

A courtesy reminder: still waiting for support.

fabiolsilva commented 6 months ago

Hi,

Thanks for reporting this issue with the Broadband Platform.

It looks like the error messages you are seeing are related to compiling some of the SDSU Goodness of Fit codes with Ubuntu 22.04 (Jammy Jellyfish). The problem is likely due to the newer compiler version used in Ubuntu 22.04. Could you confirm what version of the gfortran compiler is installed on your system? You can get the version by typing "gfortran --version".

One option would be to try using gcc/gfortran 8.4 to compile the code (for example, you can try running Ubuntu 20.04 Focal Fossa with gcc 8.4 inside a container). Another idea, if you are not planning on using the SDSU Goodness-of-Fit module, would be to comment out a line on the sdsu makefile (should be line 5 in bbp/src/sdsu/makefile). This should disable the compilation of this module.

If you would like to try the suggestion you linked on your original post, perhaps you can edit the SDSU Goodness-of-Fit makefile to include the suggested flags for the compiler. If you look at the makefile (bbp/src/sdsu/MOGof/makefile) you can see two lines near the top (PCOMP and OCOMP). I don't have a Ubuntu Jammy system to test this, but perhaps you can try adding the two flags you listed above (-fallow-argument-mismatch -fallow-invalid-boz) to both of those lines and give it a try.

MHZH123 commented 6 months ago

thank you for you advise.

 

沐禾子寒 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Fabio @.>; 发送时间: 2024年5月17日(星期五) 下午3:13 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [SCECcode/bbp] Having trouble installing - compiler issue (Issue #49)

Hi,

Thanks for reporting this issue with the Broadband Platform.

It looks like the error messages you are seeing are related to compiling some of the SDSU Goodness of Fit codes with Ubuntu 22.04 (Jammy Jellyfish). The problem is likely due to the newer compiler version used in Ubuntu 22.04. Could you confirm what version of the gfortran compiler is installed on your system? You can get the version by typing "gfortran --version".

One option would be to try using gcc/gfortran 8.4 to compile the code (for example, you can try running Ubuntu 20.04 Focal Fossa with gcc 8.4 inside a container). Another idea, if you are not planning on using the SDSU Goodness-of-Fit module, would be to comment out a line on the sdsu makefile (should be line #5 in bbp/src/sdsu/makefile). This should disable the compilation of this module.

If you would like to try the suggestion you linked on your original post, perhaps you can edit the SDSU Goodness-of-Fit makefile to include the suggested flags for the compiler. If you look at the makefile (bbp/src/sdsu/MOGof/makefile) you can see two lines near the top (PCOMP and OCOMP). I don't have a Ubuntu Jammy system to test this, but perhaps you can try adding the two flags you listed above (-fallow-argument-mismatch -fallow-invalid-boz) to both of those lines and give it a try.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Zzzzsxb commented 5 months ago

你好开发团队,

我在安装时遇到了问题,这似乎是 Fortran 编译器的问题(请参见下文)。我正在运行 Umbunto 22.04.3 lts Jammy Jellyfish。我使用了简单的安装脚本。我从类似的问题中尝试了 FCFLAGS 和 FFLAG,但使用了不同的程序(不完全确定我是否正确输入了这些;https://forum.mmm.ucar.edu/threads/how-to-fix-rank-mismatch-between-actual-argument-at-1-and-actual-argument-at-2-scalar-and-rank-1.14995/);感谢您的帮助

导出 fallow_argument=-fallow-argument-mismatch

导出 boz_argument=-fallow-invalid-boz 导出 FFLAGS=“$fallow_argument $boz_argument -m64” 导出 FCFLAGS=“$fallow_argument $boz_argument -m64” ./easy_install_bbp_22.4.0.sh

====== 欢迎使用 Broadband Platform 22.4.0 安装脚本======

使用目标目录:/home/dewan/Desktop/bbp

==> 正在创建目录树...

====== 设置 FFTW 3.3.8 库,...这需要一分钟..... ======

===> 正在下载... % 总计 % 接收 % Xferd 平均速度 时间 时间 时间 当前 dload 上传 总花费 左速度 100 4013k 0 4013k 0 0 1244k 0 --:--:-- 0:00:03 --:--:-- 1244k ===> 解压缩文件... ===> 正在检查 md5sum... ===> 构建单精度库... ===> 构建双精度库... ===> 清理... ==> FFTW搭建成功!

====== 设置宽带平台 22.4.0 源分发======

==> 编译...(可能需要几分钟)

错误:BBP构建失败,有关更多详细信息,请查看:**错误:/home/dewan/Desktop/bbp/bbp-22.4.0/bbp/src/bbp-build.log

日志文件 - gfortran -O3 -c -o GOF_MO.o GOF_MO.f GOF_MO.f:526:17:

512 |调用 GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) |2 ...... 526 |调用GOF(PGAxR, PGAxS, 1, 1, 1, PGAfitX) | 1 错误:(1) 处的实际参数和 (2) 处的实际参数(秩 1 和标量)之间的排名不匹配 GOF_MO.f:527:17:

512 |调用 GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) |2 ...... 527 |调用 GOF(PGAyR, PGAyS, 1, 1, 1, PGAfitY) | 1 错误:(1) 处的实际参数和 (2) 处的实际参数(秩 1 和标量)之间的排名不匹配 GOF_MO.f:528:17:

512 |调用 GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) |2 ...... 528 |调用 GOF(PGAzR, PGAzS, 1, 1, 1, PGAfitZ) | 1 错误:(1) 处的实际参数和 (2) 处的实际参数(秩 1 和标量)之间的排名不匹配 GOF_MO.f:531:17:

512 |调用 GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) |2 ...... 531 |调用GOF(PGVxR, PGVxS, 1, 1, 1, PGVfitX) | 1 错误:(1) 处的实际参数和 (2) 处的实际参数(秩 1 和标量)之间的排名不匹配 GOF_MO.f:532:17:

512 |调用 GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) |2 ...... 532 |调用GOF(PGVyR, PGVyS, 1, 1, 1, PGVfitY) | 1 错误:(1) 处的实际参数和 (2) 处的实际参数(秩 1 和标量)之间的排名不匹配 GOF_MO.f:533:17:

512 |调用 GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) |2 ...... 533 |调用GOF(PGVzR, PGVzS, 1, 1, 1, PGVfitZ) | 1 错误:(1) 处的实际参数和 (2) 处的实际参数(秩 1 和标量)之间的排名不匹配 GOF_MO.f:536:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 536 | call GOF(PGDxR, PGDxS, 1, 1, 1, PGDfitX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:537:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 537 | call GOF(PGDyR, PGDyS, 1, 1, 1, PGDfitY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:538:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 538 | call GOF(PGDzR, PGDzS, 1, 1, 1, PGDfitZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:574:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 574 | call GOF(MAXVAL(SRSX), MAXVAL(SRRX), 1, 1, 1, PSAfitX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:575:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 575 | call GOF(MAXVAL(SRSY), MAXVAL(SRRY), 1, 1, 1, PSAfitY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:576:17:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 576 | call GOF(MAXVAL(VSRR), MAXVAL(VSRS), 1, 1, 1, PSAfitZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:643:15:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 643 | call GOF(DHR, DHS, 1, 1, 1, DFX) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:660:15:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 660 | call GOF(DHR, DHS, 1, 1, 1, DFY) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) GOF_MO.f:677:15:

512 | call GOF(ABS(ASx), ABS(ARx), nt2, 1, nt2, LSaccX) | 2 ...... 677 | call GOF(DHR, DHS, 1, 1, 1, DFZ) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) make[2]: [makefile:36: GOF_MO.o] Error 1 make[2]: Leaving directory '/home/dewan/Desktop/bbp/bbp-22.4.0/bbp/src/sdsu/MOGof' make[1]: [makefile:5: all] Error 2 make[1]: Leaving directory '/home/dewan/Desktop/bbp/bbp-22.4.0/bbp/src/sdsu' make: *** [makefile:3: all] Error 2

Hi, how did you solve this problem?