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

Error in build palace from source #289

Open
huangyb2 opened this issue Oct 22, 2024 · 6 comments
Open

Error in build palace from source #289

huangyb2 opened this issue Oct 22, 2024 · 6 comments
Labels
build Related to building enhancement New feature or request

Comments

@huangyb2
Copy link

Hi!
I want to build palace-0.13.0 form soure, but it always failed cause the internet error. I think that if I can download the all third-party packages by mannual and then compile by myself would help to address this problem.But i don't know how to revise the CMakeLists.txt.

Any help or advise will be appreciate!

@huangyb2 huangyb2 added the enhancement New feature or request label Oct 22, 2024
@hughcars hughcars added the build Related to building label Oct 22, 2024
@hughcars
Copy link
Collaborator

Hi @huangyb2,

The decision was taken to build Palace's dependencies directly as part of the Palace build process because a) there are many dependencies, many optional, so requiring a user to build externally would open a lot of space for configuration errors b) often we need specific commits from the various repositories as fixes and bugs appear and c) we apply various patches to the dependencies. Orchestrating this outside of the build system would be extremely cumbersome for both developers and users, so we decided to avoid it and roll everything into a controllable build system. As such there is no plan at present to support externally built dependencies in the way you describe.

If you post the particular error message, maybe I could be of more help.

@sebastiangrimberg
Copy link
Contributor

I might also suggest trying to build with Spack, which may have better support for configuring and building the Palace dependencies on your system.

@huangyb2
Copy link
Author

Hi@sebastiangrimberg ,
Thanks your reply! I did buid palace-0.12.0 by Spack, and it is very convinient. When build palace-0.13.0 from soure, error message as fellow:
50faa31c01e7705b08da7a1bf88d38a7

@huangyb2
Copy link
Author

Hi@hughcars
I notice that most the third-party dependencies got by git clone.And I have build palace-0.12.0 by Spack.Whether it is possible to link to these dependecies build form Spack, when I build palace-0.13.0 from source?

@hughcars
Copy link
Collaborator

hughcars commented Nov 6, 2024

Hi @huangyb2, I do not know. In general spack is pretty intelligent in reusing relevant builds of dependencies if they already exist in the cache. So if spack is rebuilding, that suggests that there is a difference in the dependency and as such it is unable to reuse. I would suggest referring to the spack documentation if you need to understand more about the spack build/cache system.

@huangyb2
Copy link
Author

Hi@sebastiangrimberg,@hughcars ,Thanks your sugegests.I successfully solve this problem. And palace-0.13.0 can both be installed by linking to local dependencies and linking dependenices to that 3-parties installed by spack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants