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

Install Trilions on Macbook pro with ARM m1 #4991

Closed
HanyMKhalil opened this issue Oct 26, 2022 · 9 comments
Closed

Install Trilions on Macbook pro with ARM m1 #4991

HanyMKhalil opened this issue Oct 26, 2022 · 9 comments

Comments

@HanyMKhalil
Copy link

Hi all I followed the instructions to install deal.II and every thing went well I was able to install using the packages:
./candi.sh -j 8 --packages="hdf5 p4est dealii" successfuly
however when I try to install trilions using the line:
./candi.sh -j 8 --packages="trilinos"

I got this error:
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status
make[2]: *** [packages/stratimikos/adapters/belos/src/libstratimikosbelos.13.2.dylib] Error 1
make[1]: *** [packages/stratimikos/adapters/belos/src/CMakeFiles/stratimikosbelos.dir/all] Error 2
make: *** [all] Error 2
Failure with exit status: 2
Exit message: There was a problem building trilinos 13-2-0.
Hanys-MacBook-Pro:candi hanykhalil$

@tjhei
Copy link
Member

tjhei commented Oct 26, 2022

Can you try git checkout v9.4.0-r2 and then run candi.sh with the same options again? I wonder if I broke the MacOS build with the Trilinos update.

This is not a problem with ASPECT, so I created the issue dealii/candi#309 to track it in the candi repository.

@tjhei
Copy link
Member

tjhei commented Oct 26, 2022

I am keeping track of the issue here: #4991

@HanyMKhalil
Copy link
Author

Hi Timo, it works
,
Thanks so much, now after I installed all the libraries how can I proceed to install ASPECT?

To export environment variables for all installed libraries execute:

source /Users/hanykhalil/dealii-candi/configuration/enable.sh

Build finished in 33 seconds.

Summary of timings:

trilinos: 31 s
Hanys-MacBook-Pro:candi hanykhalil$

@tjhei
Copy link
Member

tjhei commented Oct 27, 2022

Now you can follow the normal installation instructions, see https://aspect-documentation.readthedocs.io/en/latest/user/install/local-installation/obtaining.html

@HanyMKhalil
Copy link
Author

Hi Timo,
I followed the instructions and installed ASPECT but I cannot access it, I went inside to create CMAke as follow:

Hanys-MacBook-Pro:debug hanykhalil$ ls
CMakeCache.txt CMakeFiles
Hanys-MacBook-Pro:debug hanykhalil$ cmake .... -DDEAL_II_DIR=/Users/hanykhalil/dealii-candi/deal.II-v9.4.0
CMake Error: The source directory "/Users/hanykhalil/candi/aspect/debug/...." does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Hanys-MacBook-Pro:debug hanykhalil$

How is that possible I created the directory and it is valid, here is access to all my files:

Hanys-MacBook-Pro:~ hanykhalil$ cd dealii-candi
Hanys-MacBook-Pro:dealii-candi hanykhalil$ ls
configuration p4est-2.3.2
deal.II-v9.4.0 tmp
hdf5-1.10.8 trilinos-release-12-18-1
Hanys-MacBook-Pro:dealii-candi hanykhalil$ cd ..
Hanys-MacBook-Pro:~ hanykhalil$ ls
Applications Pictures
Creative Cloud Files Public
Desktop candi
Documents dealii-candi
Downloads opt
Dropbox test_RedSea_model3_vertical.ipynb
Library underworld2
Movies uw2_virtualenv
Music
Hanys-MacBook-Pro:~ hanykhalil$ cd candi
Hanys-MacBook-Pro:candi hanykhalil$ ls
AUTHORS VERSION candi.cfg
LICENSE aspect candi.sh
README.md candi deal.II-toolchain
Hanys-MacBook-Pro:candi hanykhalil$ cd aspect
Hanys-MacBook-Pro:aspect hanykhalil$ ls
AUTHORS.md README.md doc
CITATION VERSION include
CMakeFiles benchmarks prmfiles
CMakeLists.txt cmake release
CODE_OF_CONDUCT.md contrib source
CONTRIBUTING.md cookbooks tests
Jenkinsfile data unit_tests
LICENSE debug
Hanys-MacBook-Pro:aspect hanykhalil$ cd debug
Hanys-MacBook-Pro:debug hanykhalil$ ls
CMakeCache.txt CMakeFiles
Hanys-MacBook-Pro:debug hanykhalil$

@tjhei
Copy link
Member

tjhei commented Nov 7, 2022

cmake ....

This doesn't look right. Try following the instructions from the ASPECT documentation. You also don't need to set the DEAL_II_DIR if you source /Users/hanykhalil/dealii-candi/configuration.enable.sh.

@bobmyhill
Copy link
Member

@HanyMKhalil, did @tjhei's suggestions work for you?
If so, we can close this issue.

@HanyMKhalil
Copy link
Author

HanyMKhalil commented Jan 19, 2023 via email

@bobmyhill
Copy link
Member

Thanks Hany, in that case we'll close the issue for now.

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

No branches or pull requests

3 participants