I’m trying to install stdlib on Ubuntu22.04 (on Windows-WSL).
I have cloned stdlib and uses v0.7.0.
I have followed the README and I am almost OK except I have a few “Failed” appearing during the install/test process, reported below through 2 questions.
FIRST question
After “cmake –build build”, i have the “Failed” message below. Is it important (and maybe related to the tests failure in SECOND question)
On -DCMAKE_BUILD_TYPE=NoConfig
– The Fortran compiler identification is GNU 11.4.0
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Check for working Fortran compiler: /usr/bin/f95 - skipped
– Performing Test WITH_CBOOL
– Performing Test WITH_CBOOL - Success
– Performing Test WITH_QP
– Performing Test WITH_QP - Success
– Performing Test WITH_XDP
– Performing Test WITH_XDP - Success
– Performing Test f18errorstop – Performing Test f18errorstop - Failed
SECOND question :
After ctest --test-dir build/test, I get 3 Failed tests (see below). I would prefer no “Failed”! Do you observe the same behavior (ubuntu20.04 + stdlib tag 0.7.0)?
95% tests passed, 3 tests failed out of 64
Label Time Summary:
quadruple_precision = 0.39 sec*proc (2 tests)
Total Test time (real) = 19.08 sec
The following tests FAILED:
35 - mean (Failed)
52 - string_to_number (Failed)
56 - simps (Failed)
Errors while running CTest
This in itself is not an issue. In CMake there are checks to see if the compiler supports or not the error stop syntax. Within stdlib there two options of implementation to manage errors to enable support by compiler version which didn’t yet support this 2018 syntax.
Are you using Ubuntu 22 or 20 ? which compiler and which version are you using?
Couldn’t say, I work directly with the master branch and there have been many many fixes since the 0.7.0 upto the most recent 0.8.1. But I do build it on Windows and Linux with intel and gnu compilers and I don’t see any of those errors you mention with the recent versions.
As README.md of stdlib says that GCC11 should be a supported compiler, I think that this feedback with gcc11.4 can be interesting for stdlib developers.