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

Trilinos can't be used with Xyce #21150

Open
1 task done
jsmith173 opened this issue Jun 13, 2024 · 15 comments
Open
1 task done

Trilinos can't be used with Xyce #21150

jsmith173 opened this issue Jun 13, 2024 · 15 comments
Labels

Comments

@jsmith173
Copy link

Description / Steps to reproduce the issue

Install packages (msys2)
mingw-w64-ucrt-x86_64-trilinos
mingw-w64-x86_64-trilinos

..
https://github.com/Xyce/Xyce.git
git clone xyce
...
Compile Xyce

Expected behavior

no errors

Actual behavior

I have checked the trilinos cmake file. It seems the trilinos cmake file expects some components cmake files but they are not here. Where is epetra for example?

--- Xyce compile output
CMake Error at cmake/tps.cmake:80 (find_package):
Found package configuration file:

/ucrt64/lib/cmake/Trilinos/TrilinosConfig.cmake

but it set Trilinos_FOUND to FALSE so package "Trilinos" is considered to
be NOT FOUND. Reason given by package:

ERROR: Could not find component 'Amesos'!

ERROR: Could not find component 'Epetra'!

ERROR: Could not find component 'EpetraExt'!

ERROR: Could not find component 'Ifpack'!

ERROR: Could not find component 'NOX'!

ERROR: Could not find component 'Teuchos'!

ERROR: Could not find component 'Triutils'!

ERROR: Could not find component 'AztecOO'!

ERROR: Could not find component 'Belos'!

Verification

Windows Version

MINGW64_NT-10.0-22631

Are you willing to submit a PR?

No response

@jsmith173 jsmith173 added the bug label Jun 13, 2024
@Biswa96 Biswa96 transferred this issue from msys2/MSYS2-packages Jun 13, 2024
@Biswa96
Copy link
Member

Biswa96 commented Jun 14, 2024

@3rav Could you share any idea about fixing this issue? I have tried to compile trilinos after removing the disabled cmake options in PKGBUILD. It is failed to compile.

Xpetra_ConfigDefs.hpp:87:10: fatal error: TpetraCore_config.h: No such file or directory

@jsmith173
Copy link
Author

This is my best try and Trilinos is compiled however Xyce can't config due to Kokkos library problems.
PKGBUILD.ZIP

@3rav
Copy link
Contributor

3rav commented Jun 27, 2024

@Kreijstal
Copy link
Contributor

Kreijstal commented Jul 17, 2024

kokkos/kokkos-kernels#1252

so you managed to make xyce work?

ah I see, so we would need to package kokkos kernels version 4.3

@jsmith173
Copy link
Author

Yes it is working.

@Kreijstal
Copy link
Contributor

Yes it is working.

but you said last time there were config problems, how did they got solved?

@jsmith173
Copy link
Author

There were some problems with the compiler options.

@Kreijstal
Copy link
Contributor

This is my best try and Trilinos is compiled however Xyce can't config due to Kokkos library problems. PKGBUILD.ZIP

also use $MINGW_PREFIX instead of /mingw64

@Kreijstal
Copy link
Contributor

Hmm even if it works right now, it will probably not work for long

********************************************************************
********  WARNING WARNING WARNING WARNING WARNING WARNING  *********
********************************************************************
* Several Trilinos packages are scheduled for deprecation in 2025.
* The following deprecated packages are enabled (either explicitly
* or implicitly due to a dependency)
*
*    Triutils
*    ThyraEpetraExtAdapters
*    ThyraEpetraAdapters
*    Ifpack
*    EpetraExt
*    Epetra
*    AztecOO
*    Amesos
*
********************************************************************

Soo.. this is a xyce bug

@jsmith173
Copy link
Author

I see in the PKGBUILD

mingw_arch=('mingw64' 'ucrt64' 'clang64')

It means Trilinos can't be compiled for 32 bit target?

@ognevny
Copy link
Collaborator

ognevny commented Jul 28, 2024

It means Trilinos can't be compiled for 32 bit target?

32-bit was dropped in e630c43 as a part of 32-bit removal

@jsmith173
Copy link
Author

What was the reason dropping the 32bit target?

@3rav
Copy link
Contributor

3rav commented Jul 29, 2024

Info (update trilinos to 16.0.0): #21480

@jsmith173
Copy link
Author

I just pulled but I still see

mingw_arch=('mingw64' 'ucrt64' 'clang64')

@Kreijstal
Copy link
Contributor

I see in the PKGBUILD

mingw_arch=('mingw64' 'ucrt64' 'clang64')

It means Trilinos can't be compiled for 32 bit target?

you need to for msys2 to get 32 bit support back they dont want it here

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

No branches or pull requests

5 participants