-
Notifications
You must be signed in to change notification settings - Fork 539
Description
Steps to reproduce the issue
spack install nanoflann
Error message
Error message
...
errors found in build log:
3 -- The C compiler identification is unknown
4 -- The CXX compiler identification is GNU 11.5.0
5 -- Detecting C compiler ABI info
6 -- Detecting C compiler ABI info - failed
7 -- Check for working C compiler: /apps/spack-apps/linux-icelake/compiler-wrapper-1.0-mllnjiebaw6446mmybug4odrisco6x75/libexec/spack/cc
8 -- Check for working C compiler:/apps/spack-apps/linux-icelake/compiler-wrapper-1.0-mllnjiebaw6446mmybug4odrisco6x75/libexec/spack/cc - broken
9 CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
10 The C compiler
11
12 "/apps/spack-apps/linux-icelake/compiler-wrapper-1.0-mllnjiebaw6446mmybug4odrisco6x75/libexec/spack/cc"
13
14 is not able to compile a simple test program.
15
...
18 Change Dir: /tmp/spack-stage/spack-stage-nanoflann-1.5.5-kk32m7wyfpk5uhlh2tk7gh3uovoamp63/spack-build-kk32m7w/CMakeFiles/CMakeScratch/TryCompile-L8KeaU
19
20 Run Build Command(s):/usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_ad0f3/fast && /usr/bin/gmake -f CMakeFiles/cmTC_ad0f3.dir/build.make CMakeFiles/cmTC_ad0f3.dir/build
21 gmake[1]: Entering directory '/tmp/spack-stage/spack-stage-nanoflann-1.5.5-kk32m7wyfpk5uhlh2tk7gh3uovoamp63/spack-build-kk32m7w/CMakeFiles/CMakeScratch/TryCompile-L8KeaU
'
22 Building C object CMakeFiles/cmTC_ad0f3.dir/testCCompiler.c.o
23 /apps/spack-apps/linux-icelake/compiler-wrapper-1.0-mllnjiebaw6446mmybug4odrisco6x75/libexec/spack/cc -o CMakeFiles/cmTC_ad0f3.dir/testCCompiler.c.o -c /tmp/raymond.fonteno
t/spack-stage/spack-stage-nanoflann-1.5.5-kk32m7wyfpk5uhlh2tk7gh3uovoamp63/spack-build-kk32m7w/CMakeFiles/CMakeScratch/TryCompile-L8KeaU/testCCompiler.c
24 [spack cc]: Error: SPACK_CC_* variables not set: this usually means a missing
depends_on("c", type="build")in package.py
25 gmake[1]: *** [CMakeFiles/cmTC_ad0f3.dir/build.make:78: CMakeFiles/cmTC_ad0f3.dir/testCCompiler.c.o] Error 1
26 gmake[1]: Leaving directory '/tmp/spack-stage/spack-stage-nanoflann-1.5.5-kk32m7wyfpk5uhlh2tk7gh3uovoamp63/spack-build-kk32m7w/CMakeFiles/CMakeScratch/TryCompile-L8KeaU'
27 gmake: *** [Makefile:127: cmTC_ad0f3/fast] Error 2
28
Information on your system
- Spack: 1.2.0.dev0 (spack/spack@53aab9f)
- Builtin repo: 39cb070
- Python: 3.9.21
- Platform: linux-rocky9-icelake
Additional information
Adding the suggested depends_on("c", type="build") to the package.py resolved the issue.
General information
- I have run
spack debug reportand reported the version of Spack/Python/Platform - I have run
spack maintainers <name-of-the-package>and @mentioned any maintainers - I have uploaded the build log and environment files
- I have searched the issues of this repo and believe this is not a duplicate