Comments (9)
Thanks @Chrismarsh! Just linking this for reference, confirming @albestro's comment about CMake being "best-effort" (gperftools/gperftools#1518 (comment)):
But also, yes, having any 3rd-party system relying on our cmake support is a bug in that 3rd party system (and makes me start wondering if I should regret this entire cmake business)
I think we can keep the CMake build system as default as long as it doesn't lead to too many further issues, and we know that we shouldn't expect fixes to the CMake build system.
from spack.
Maintainers: @albestro @eschnett @msimberg @teonnik
from spack.
Considering the message printed by gperftools
when configuring using CMake
CMake Warning at CMakeLists.txt:1486 (message):
note: gperftools' cmake support is incomplete and is best-effort only
it might be an option to change the default to autotools
.
from spack.
@msimberg I have now
from spack.
Thanks for that. Also my logs are missing, attached here:
spack-build-env.txt
spack-build-out.txt
from spack.
I can't test if this helps (because I'm not on a mac, and it builds ok on linux), but it may also help to disable building benchmarks (and perhaps tests as well, since they seem to be enabled by default):
diff --git a/var/spack/repos/builtin/packages/gperftools/package.py b/var/spack/repos/builtin/packages/gperftools/package.py
index 144ac5ddc8..7ec0d3e531 100644
--- a/var/spack/repos/builtin/packages/gperftools/package.py
+++ b/var/spack/repos/builtin/packages/gperftools/package.py
@@ -68,6 +68,7 @@ def cmake_args(self):
),
self.define_from_variant("GPERFTOOLS_BUILD_DEBUGALLOC", "debugalloc"),
self.define_from_variant("gperftools_enable_libunwind", "libunwind"),
+ self.define("gperftools_build_benchmark", False),
+ self.define("BUILD_TESTING", False),
]
I don't know if that just postpones the failure, and it obviously doesn't fix the underlying issue, but may be worth trying? It might be a good idea to report this upstream, even if it's "best-effort".
from spack.
We moved from autotools to cmake in fd68f89 because of accidental linking to system libunwind.
However, since 82df0e5 that may no longer be an issue.
from spack.
@msimberg I can confirm that resolves the build issue for me. I built a little toy program and linked in the allocator and it "Seemed To Work For Me" without a segfault. I think this is a better than reverting to autotools
. To @albestro's point I note that the cmake build doesn't seem to produce any cmake config files :(
from spack.
@Chrismarsh nice, thanks for checking. I think that's a useful change to make in any case so I've opened #44336. Would you like to report this upstream as well?
from spack.
Related Issues (20)
- Avoid storing binary blobs as test files for sz compression HOT 4
- Installation issue: openmpi (Spack v0.21 & v0.22) with compiler [email protected] HOT 6
- Spec matrix: concretization failures when matrixing MPI dependency HOT 3
- Concretizer error for Python variant (+tkinter) HOT 2
- Installation issue: HIP package sets excessive environment variables in dependent package modulefiles
- cuda: `nvcc` is unable to find `-lcupti`
- Installation issue: [email protected]%[email protected]
- Installation issue: glibc iconv incomplete by default on fedora, needs libiconv HOT 11
- Environments: root specs are not always marked explicit HOT 5
- Add an option to shorten git.[commit] version in Spec.format() HOT 3
- Installation issue: `seacas 2022-10-14:2023-05-30` with `fmt@9` when `gcc` mixed with `apple-clang` HOT 5
- Installation issue: `vtk@9%gcc14` HOT 4
- Cannot use `config:shared_linking:bind:true` anymore HOT 1
- Cannot install musl HOT 2
- Installation issue: abinit HOT 1
- Installation issue: gh
- Installation issue: kentutils HOT 2
- Spec syntax: semantic for `%` and `^` for compiler as deps
- Installation issue: [email protected] +cuda ~rocm fails to build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spack.