On 11/19/24 05:17, Vinayak Vijay wrote:
-- Check for working CXX compiler:
/home/omnipresent/Documents/github_repos/spack/lib/spack/env/gcc/g++ - broken
CMake Error at
/home/omnipresent/Documents/github_repos/spack/opt/spack/linux-ubuntu24.04-icelake/gcc-13.2.0/cmake-3.30.5-74qenkgyifomlcmwslmffwjq3vbfs5km/share/cmake-3.30/Modules/CMakeTestCXXCompiler.cmake:73 (message):
The C++ compiler
"/home/omnipresent/Documents/github_repos/spack/lib/spack/env/gcc/g++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
'/home/omnipresent/Documents/github_repos/dealii/examples/step-2/build/CMakeFiles/CMakeScratch/TryCompile-aLSS2O'
Run Build Command(s):
/home/omnipresent/Documents/github_repos/spack/opt/spack/linux-ubuntu24.04-icelake/gcc-13.2.0/cmake-3.30.5-74qenkgyifomlcmwslmffwjq3vbfs5km/bin/cmake -E env VERBOSE=1 /home/omnipresent/Documents/github_repos/spack/var/spack/environments/dealii_9_6/.spack-env/view/bin/gmake -f Makefile cmTC_14ee5/fast
/home/omnipresent/Documents/github_repos/spack/var/spack/environments/dealii_9_6/.spack-env/view/bin/gmake
-f CMakeFiles/cmTC_14ee5.dir/build.make CMakeFiles/cmTC_14ee5.dir/build
gmake[1]: Entering directory
'/home/omnipresent/Documents/github_repos/dealii/examples/step-2/build/CMakeFiles/CMakeScratch/TryCompile-aLSS2O'
Building CXX object CMakeFiles/cmTC_14ee5.dir/testCXXCompiler.cxx.o
/home/omnipresent/Documents/github_repos/spack/lib/spack/env/gcc/g++
-o CMakeFiles/cmTC_14ee5.dir/testCXXCompiler.cxx.o -c
/home/omnipresent/Documents/github_repos/dealii/examples/step-2/build/CMakeFiles/CMakeScratch/TryCompile-aLSS2O/testCXXCompiler.cxx
[spack cc] ERROR: Spack compiler must be run from Spack! Input
'SPACK_ENV_PATH' is missing.
Vijay:
the way I read this error is that you asked Spack to download and install its
own compiler, and that it now insists that you keep using that going forward:
ERROR: Spack compiler must be run from Spack! Input 'SPACK_ENV_PATH' is
missing.
I really don't know anything about Spack (perhaps others here do), but my
suggestion is to always rely on the compiler your system has. I see no reason
not to use the compiler that comes with Ubuntu 24.04.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/dealii/0dc39f99-eef0-40f3-923e-0ebb4a6cbfd6%40colostate.edu.