Skip to content
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

Build failed on Ubuntu #13526

Closed
georgtree opened this issue Oct 12, 2024 · 7 comments
Closed

Build failed on Ubuntu #13526

georgtree opened this issue Oct 12, 2024 · 7 comments

Comments

@georgtree
Copy link

Hello!
I got this error while building trilinos serial on ubuntu:

[  8%] Built target chaco
/home/georgtree/trilinos_serial/Trilinos-trilinos-release-12-12-1/packages/seacas/libraries/svdi/cgi/met_vdimet.f:944:24:

  944 |       CALL CDR1CH(1,CHR,IN)
      |                        1
......
 1119 |       CALL CDR1CH(J,NSTR(I),ITEMP)
      |                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/INTEGER(8)).
/home/georgtree/trilinos_serial/Trilinos-trilinos-release-12-12-1/packages/seacas/libraries/svdi/cgi/met_vdimet.f:945:18:

  945 |       CALL CDRCVT(IN,CHAR)
      |                  1
......
 1122 |       CALL CDRCVT(ITEMP,ITEMP1)
      |                  2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/INTEGER(8)).
/home/georgtree/trilinos_serial/Trilinos-trilinos-release-12-12-1/packages/seacas/libraries/supes/mem_mgr/mdinit.F:709:37:

  261 |       MYLOC = IXLNUM (MYV)
      |                      2               
......
  709 |             DPOINT(ROW,1,1) = IXLNUM(NEWLOC)
      |                                     1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
/home/georgtree/trilinos_serial/Trilinos-trilinos-release-12-12-1/packages/seacas/libraries/supes/mem_mgr/mdinit.F:768:42:

  261 |       MYLOC = IXLNUM (MYV)
      |                      2                    
......
  768 |             DPOINT(ROW,CHRCOL,1) = IXLNUM(NEWLOC)
      |                                          1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)

Looks like there is an issue with gfortran flags, but I don't know how to avoid it, thank you in advance,

@cgcgcg
Copy link
Contributor

cgcgcg commented Oct 13, 2024

@gdsjaar FYI

@georgtree Is there a reason for building a Trilinos that's 7 years old?

@georgtree
Copy link
Author

Hello, it is a requirement for xyce

@cgcgcg
Copy link
Contributor

cgcgcg commented Oct 14, 2024

@hkthorn Any chance the Trilinos requirement for Xyce can be updated to something a bit more recent?

@gsjaardema
Copy link
Contributor

The gfortran argument -fallow-argument-mismatch can be used to quiet these messages. I thought we were using that already in current code, but I can't seem to find it in the repository anywhere....

The code where that is showing up is in some older legacy graphic libraries that are still being used for blot and fastq. If you are not using those applications in xyce, then you could alternatively turn off building of those... Although will probably also show up in some of the other fotrran seacas applications.

@olisnr
Copy link

olisnr commented Oct 22, 2024

for ubuntu 20.04 install:

sudo apt install gmp-static
sudo apt install -y libgmp-dev
sudo apt install -y libmpfr-dev
sudo apt install -y libatlas-base-dev
sudo apt install -y gfortran make cmake bison flex libfl-dev libfftw3-dev libsuitesparse-dev libblas-dev liblapack-dev libtool autoconf automake git libopenmpi-dev openmpi-bin

sudo apt install gmp-static
sudo apt install -y libgmp-dev
sudo apt install -y libmpfr-dev
sudo apt install -y libatlas-base-dev
sudo apt install nvidia-cuda-toolkit

sudo apt install -y bison flex libfl-dev libfftw3-dev libsuitesparse-dev libblas-dev liblapack-dev libtool libopenmpi-dev openmpi-bin libtpl-dev libsuitesparse-dev libumfpack5

sudo apt install gmp-static
sudo apt install -y libgmp-dev
sudo apt install -y libmpfr-dev
sudo apt install -y libatlas-base-dev

sudo apt install libnetcdf-dev

then try again

@cgcgcg
Copy link
Contributor

cgcgcg commented Nov 4, 2024

@georgtree Can this be closed?

@georgtree
Copy link
Author

georgtree commented Nov 4, 2024

yes, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants