-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
1、spack install --overwrite --keep-stage --no-checksum [email protected]
2、cd [email protected];rm -rf build;mkdir build;cd build
3、source ../../spack-build-env.txt
4、cmake -DYAML_CPP_BUILD_TESTS=ON ..;make test
==========
make -j96
Scanning dependencies of target gtest
Scanning dependencies of target yaml-cpp
[ 1%] Building CXX object test/prefix/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 3%] Building CXX object CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o
[ 5%] Building CXX object CMakeFiles/yaml-cpp.dir/src/binary.cpp.o
[ 6%] Building CXX object CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o
[ 8%] Building CXX object CMakeFiles/yaml-cpp.dir/src/convert.cpp.o
[ 10%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emit.cpp.o
[ 11%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emitfromevents.cpp.o
[ 13%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emitter.cpp.o
[ 21%] Building CXX object CMakeFiles/yaml-cpp.dir/src/depthguard.cpp.o
[ 21%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emitterstate.cpp.o
[ 21%] Building CXX object CMakeFiles/yaml-cpp.dir/src/directives.cpp.o
[ 21%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emitterutils.cpp.o
[ 21%] Building CXX object CMakeFiles/yaml-cpp.dir/src/exceptions.cpp.o
[ 23%] Building CXX object CMakeFiles/yaml-cpp.dir/src/exp.cpp.o
[ 25%] Building CXX object CMakeFiles/yaml-cpp.dir/src/memory.cpp.o
[ 28%] Building CXX object CMakeFiles/yaml-cpp.dir/src/node.cpp.o
[ 28%] Building CXX object CMakeFiles/yaml-cpp.dir/src/node_data.cpp.o
[ 30%] Building CXX object CMakeFiles/yaml-cpp.dir/src/nodebuilder.cpp.o
[ 31%] Building CXX object CMakeFiles/yaml-cpp.dir/src/null.cpp.o
[ 35%] Building CXX object CMakeFiles/yaml-cpp.dir/src/ostream_wrapper.cpp.o
[ 35%] Building CXX object CMakeFiles/yaml-cpp.dir/src/nodeevents.cpp.o
[ 36%] Building CXX object CMakeFiles/yaml-cpp.dir/src/parse.cpp.o
[ 38%] Building CXX object CMakeFiles/yaml-cpp.dir/src/parser.cpp.o
[ 40%] Building CXX object CMakeFiles/yaml-cpp.dir/src/scanner.cpp.o
[ 41%] Building CXX object CMakeFiles/yaml-cpp.dir/src/regex_yaml.cpp.o
[ 43%] Building CXX object CMakeFiles/yaml-cpp.dir/src/scanscalar.cpp.o
[ 45%] Building CXX object CMakeFiles/yaml-cpp.dir/src/scantoken.cpp.o
[ 46%] Building CXX object CMakeFiles/yaml-cpp.dir/src/scantag.cpp.o
[ 48%] Building CXX object CMakeFiles/yaml-cpp.dir/src/simplekey.cpp.o
[ 50%] Building CXX object CMakeFiles/yaml-cpp.dir/src/singledocparser.cpp.o
[ 51%] Building CXX object CMakeFiles/yaml-cpp.dir/src/stream.cpp.o
[ 53%] Building CXX object CMakeFiles/yaml-cpp.dir/src/tag.cpp.o
[ 55%] Linking CXX static library libyaml-cpp.a
[ 55%] Built target yaml-cpp
Scanning dependencies of target yaml-cpp-parse
Scanning dependencies of target yaml-cpp-sandbox
Scanning dependencies of target yaml-cpp-read
[ 58%] Building CXX object util/CMakeFiles/yaml-cpp-parse.dir/parse.cpp.o
[ 58%] Building CXX object util/CMakeFiles/yaml-cpp-sandbox.dir/sandbox.cpp.o
[ 60%] Building CXX object util/CMakeFiles/yaml-cpp-read.dir/read.cpp.o
In file included from /home/stage/root/spack-stage-yaml-cpp-0.7.0-aj3anpxjyqkmz6cipm37kwolmhuj2dxw/spack-src/test/gtest-1.10.0/googletest/src/gtest-all.cc:42:
/home/stage/root/spack-stage-yaml-cpp-0.7.0-aj3anpxjyqkmz6cipm37kwolmhuj2dxw/spack-src/test/gtest-1.10.0/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
/home/stage/root/spack-stage-yaml-cpp-0.7.0-aj3anpxjyqkmz6cipm37kwolmhuj2dxw/spack-src/test/gtest-1.10.0/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
1301 | StackLowerThanAddress(&dummy, &result);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/stage/root/spack-stage-yaml-cpp-0.7.0-aj3anpxjyqkmz6cipm37kwolmhuj2dxw/spack-src/test/gtest-1.10.0/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here
1290 | static void StackLowerThanAddress(const void* ptr, bool* result) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/stage/root/spack-stage-yaml-cpp-0.7.0-aj3anpxjyqkmz6cipm37kwolmhuj2dxw/spack-src/test/gtest-1.10.0/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here
1299 | int dummy;
| ^~~~~
[ 61%] Linking CXX executable read
[ 63%] Linking CXX executable parse
[ 65%] Linking CXX executable sandbox
[ 65%] Built target yaml-cpp-sandbox
[ 65%] Built target yaml-cpp-read
[ 65%] Built target yaml-cpp-parse
cc1plus: all warnings being treated as errors
make[2]: *** [test/prefix/googletest/CMakeFiles/gtest.dir/build.make:82: test/prefix/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1124: test/prefix/googletest/CMakeFiles/gtest.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
[root@localhost build]#cmake --version
cmake version 3.19.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[root@localhost build]#cat /etc/os-release
NAME="openEuler"
VERSION="24.03 (LTS-SP2)"
ID="openEuler"
VERSION_ID="24.03"
PRETTY_NAME="openEuler 24.03 (LTS-SP2)"
ANSI_COLOR="0;31"
[root@localhost build]#uname -a
Linux localhost 6.6.0-98.0.0.103.oe2403sp2.aarch64 #1 SMP Thu Jun 19 18:52:57 CST 2025 aarch64 aarch64 aarch64 GNU/Linux