-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble installing - compiler issue #49
Comments
Have you solved this problem |
We have not solved this issue. |
A courtesy reminder: still waiting for support. |
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. |
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: ***@***.***>
|
Hi, how did you solve this problem? |
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
The text was updated successfully, but these errors were encountered: