Since CLI11 2.4.0, the '.pvx' file
option is not recognized as a valid
option and results in the following runtime error:
terminate called after throwing an instance of 'CLI::BadNameString'
what(): Invalid positional Name: '.pvx' file
Aborted (core dumped)
Hence, when ParaView is compiled with a new CLI11 version, starting
pvserver
or pvrenderserver
always fails before the user even sees
the result of CLI parsing.
Since the option is deprecated, I don't see much value in actually fixing it and only guarded it with CLI11 version macros, so the option will not be available when a new CLI11 version is used.
Jakub Klinkovský (7f9f90bc) at 24 Mar 09:15
Fix deprecated positional option for '.pvx' file
For reference, the Arch Linux issue is https://gitlab.archlinux.org/archlinux/packaging/packages/paraview/-/issues/4
Thanks, it works for me with 5.12.0 RC1
Arch Linux has ParaView 5.11.2 built with the -Wp,-D_GLIBCXX_ASSERTIONS
flag. This leads to an assertion failure in std::vector::operator[]
when opening an ADIOS2 bp file.
To provide some testing data, compile test.cpp with
g++ -std=c++17 test.cpp -l adios2_cxx11
Then run ./a.out
which creates the test.bp
directory with synthetic data. Run paraview
, select Open in the menu and navigate to the test.bp
directory. Upon opening, Paraview will dump core. I managed to get a full backtrace from gdb
, the top is
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
tid = <optimized out>
ret = 0
pd = <optimized out>
old_mask = {__val = {0}}
ret = <optimized out>
#1 0x00007ffff7e318a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffff7de1668 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
ret = <optimized out>
#3 0x00007ffff7dc94b8 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {140737316447456, 1125, 140737316447272, 0, 0, 0, 0, 0, 0, 93823560581128, 72, 140737353595584, 18446744073709551552, 0, 140737488333448, 93825070916192}}, sa_flags = -136053587, sa_restorer = 0x7ffff0e786e0 <(anonymous namespace)::num_get_c>}
#4 0x00007ffff0cdd3b2 in std::__glibcxx_assert_fail(char const*, int, char const*, char const*)
(file=file@entry=0x7ffff5c0e4e0 "/usr/include/c++/13.2.1/bits/stl_vector.h", line=line@entry=1125, function=function@entry=0x7ffff5c0e428 "std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]", condition=condition@entry=0x7ffff5c0a246 "__n < this->size()") at /usr/src/debug/gcc/gcc/libstdc++-v3/src/c++11/debug.cc:61
#5 0x00007ffff5af0070 in std::vector<int, std::allocator<int> >::operator[](unsigned long) (__n=0, this=<optimized out>, this=<optimized out>, __n=<optimized out>)
at /usr/include/c++/13.2.1/bits/stl_vector.h:1125
number_of_elements = 0
number_of_elements_per_command = 0
elementTypesStrMap = std::map with 3 elements = {["double"] = 1, ["int"] = 0, ["str"] = 2}
values = Python Exception <class 'OverflowError'>: int too big to convert
Python Exception <class 'OverflowError'>: int too big to convert
Python Exception <class 'OverflowError'>: int too big to convert
{<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >> = std::vector of length -4250937, capacity -1466013161515 = {"fH", "\000\000\000\000\005\000\000\000\360f\000ZUU", '\000' <repeats 18 times>, " \362\005ZUU\000\000\006\000\000\000\000\000\000\000double\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\201", '\000' <repeats 11 times>, "PU\000\000\0004\006ZUU", '\000' <repeats 18 times>, "[#\000\000UU\000\000x\v\310\365\377\177", '\000' <repeats 18 times>, "\020\000\006\000\000\000\000\000\300P\343YUU\000\000\003\000\000\000\000\000\000\000[#\000\000\000\000\000\000\002", '\000' <repeats 23 times>..., <error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>, <error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>, <error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>, <error: Cannot access memory at address 0x3>, "double", "", "H\211", " x?\366\377\177\000\000\001", '\000' <repeats 23 times>, "\362\020\001", '\000' <repeats 13 times>, "\240\344\372VUU", '\000' <repeats 26 times>, "\340\344\372VUU\000\000P\345\372VUU\000\0000\350\372VUU\000\000\220\267\371VUU\000\000\000\000\000\000\000\000\000\000q\000\000\000\000\000\000\000\360\345\372VUU\000\000\360\346\372VUU\000\000\360\346\372VUU\000\000\000\347\372VUU\000\000\000\350\372VUU\000\000\000\350\372VUU\000\000@\352\372VUU\000\000H\352\372VUU\000\000H\352\372VUU\000\000"..., "", "\036\000\000\000\000\000\000\000\224\360\343\367\377\177\000\000P\254\377\377\377\177\000\000\f\000\000\000\000\000\000\000DataSourceIO\000\377\377\377p\254\377\377\377\177", '\000' <repeats 18 times>, "\002\000\000\000\000\000\000\000@\025\347\360\377\177\000\000\330\033\347\360\377\177\000\000P\231\002ZUU\000\000P\231\002ZUU\000\000P\231\002ZUU\000\000@\231\002ZUU\000\000Z\231\002ZUU\000\000@\233\002ZUU\000\000 \215\347\360\377\177\000\000\020\000\000\000\377\177\000\000@\231\002ZUU\000\000\020\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000ingVect\000p\323\346\360\377\177\000\000"..., "", "H\213L$\bH\203\371\037\017\206%\001\000\000H\213EpfI\017n\347I\215T\035\000fH\017n\300f\017l\304L9x\030\017\205`\003\000\000\017\021B\020H\211UpH\211P\030H\201\373\377\003\000\000w\004H\211UhH\201\371\377\003\000\000v\bf\017\357\300\017\021B H\215\005\313\311\023\000H9\305\017\225\300\017\266\300H\301\340\002H\t\330H\203\310\001I\211E\bH\211\310H\203\310\001H\211B\bK\211L5\000\213\005y0\024\000I\215M\020\205\300\017\204_\371\377\3774\377H\211\317L\211\342\211\306\377\025\t\276\023\000H\211\301\351G\371\377\377f\017\037\204\000\000\000\000\000I\211\335I\301\355\tH\201\373\377)"..., "", "", "", "rProperty\000eader, could not find requested method: \"CanReadFile\"\nor the method was called with incorrect arguments.\narguments.\n\000\000\t", '\000' <repeats 15 times>, "\035\000\000\000UU\000\000\240\335\341YUU\000\000\t", '\000' <repeats 15 times>, "\020\232\002ZUU\000\000\r\000\000\000\000\000\000\000TimeStep"..., "", <error: Cannot access memory at address 0x10>, "", "", "", "", "", "", "", "", <error: Cannot access memory at address 0x6fd5a08a0f3b0400>, " x?\366\377\177\000\000\001\000\000\000\377\177", '\000' <repeats 18 times>, "\332\020\001", '\000' <repeats 13 times>, "з\371VUU", '\000' <repeats 11 times>, "tensions\000\000file_\020\270\371VUU\000\000\020\306\371VUU\000\000\300\263\371VUU\000\000`\017\372VUU\000\000is_direcq\000\000\000\000\000\000\000\200\270\371VUU\000\000\340\270\371VUU\000\000\000\271\371VUU\000\000\020\271\371VUU\000\000p\271\371VUU\000\000\220\271\371VUU\000\000\320\353\372VUU\000\000\020\354\372VUU\000\000\020\354\372VUU\000\000"..., "\204\300t\nL\213l$0\351w\377\377\377H\213|$\030\350=\271\375\3771\300\353\240H\307\300\377\377\377\377\353\303H\213D", "p\300\003ZUU\000\000\024\000\000\000\000\000\000\000\024\000\000\000\000\000\000\000ation\000\000\000\004\000\000\000\000\000\000\000\000\004;\017\212\240\325o\200h\000ZUU\000\000\200h\000ZUU\000\000\200L\254\365\377\177\000\000\220\267\371VUU\000\000\300\365\333YUU\000\000--Type <RET> for more, q to quit, c to continue without paging--
Full output: backtrace.log
This issue was originally reported at https://gitlab.archlinux.org/archlinux/packaging/packages/paraview/-/issues/3
When I try to open a BP5 file with ParaView 5.11.2, it crashes the whole ParaView:
Loguru caught a signal: SIGSEGV
Stack trace:
64 0x40810a /home/lahwaacz/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/bin/paraview-real() [0x40810a]
63 0x7f3541d49d8a __libc_start_main + 138
62 0x7f3541d49cd0 /usr/lib/libc.so.6(+0x27cd0) [0x7f3541d49cd0]
61 0x407d9a /home/lahwaacz/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/bin/paraview-real() [0x407d9a]
60 0x7f353e2aeba3 QCoreApplication::exec() + 131
59 0x7f353e2a5a8a QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 298
58 0x7f34e9658063 /home/lahwaacz/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x58063) [0x7f34e9658063]
57 0x7f353eaf9aab QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 171
56 0x7f353eb1fd35 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 229
55 0x7f353eb1b647 QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) + 119
54 0x7f353eafd197 QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) + 359
53 0x7f353eb4c67a QShortcutMap::tryShortcut(QKeyEvent*) + 90
52 0x7f353eb4bc06 QShortcutMap::dispatchEvent(QKeyEvent*) + 678
51 0x7f353e2a70c3 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 259
50 0x7f3540d6552f QApplication::notify(QObject*, QEvent*) + 543
49 0x7f3540d5ebec QApplicationPrivate::notify_helper(QObject*, QEvent*) + 156
48 0x7f3540d5b8e1 QAction::event(QEvent*) + 33
47 0x7f3540d5affc QAction::activate(QAction::ActionEvent) + 172
46 0x7f3540d58bf2 QAction::triggered(bool) + 50
45 0x7f353e2e2423 /home/lahwaacz/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/bin/../lib/libQt5Core.so.5(+0x2e2423) [0x7f353e2e2423]
44 0x7f35416e647d /home/lahwaacz/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/bin/../lib/libpqApplicationComponents-pv5.11.so.1(+0xe647d) [0x7f35416e647d]
43 0x7f354178bdfe pqLoadDataReaction::loadData() + 30
42 0x7f354178ba2c pqLoadDataReaction::loadData(QSet<QPair<QString, QString> > const&) + 5260
41 0x7f3541788ad0 pqLoadDataReaction::loadFilesForSupportedTypes(QList<QStringList>) + 1312
40 0x7f3541785ace pqLoadDataReaction::loadData(QStringList const&, QString const&, QString const&, pqServer*) + 894
39 0x7f35417850e8 pqLoadDataReaction::loadData(QList<QStringList> const&, QString const&, QString const&, pqServer*) + 1800
38 0x7f35417842c6 pqLoadDataReaction::DetermineFileReader(QString const&, pqServer*, vtkSMReaderFactory*, QPair<QString, QString>&) + 134
37 0x7f353cbeb132 vtkSMReaderFactory::GetReaders(char const*, vtkSMSession*) + 274
36 0x7f353cbe9cdd vtkSMReaderFactory::vtkInternals::vtkValue::CanReadFile(char const*, bool, std::vector<std::string> const&, vtkSMSession*, bool) + 461
35 0x7f353cbe967d vtkSMReaderFactory::CanReadFile(char const*, vtkSMProxy*) + 557
34 0x7f353cbbf1ab vtkSMProxy::UpdatePropertyInformation(vtkSMProperty*) + 75
33 0x7f353cbc63cc vtkSMProxy::UpdatePropertyInformationInternal(vtkSMProperty*) + 396
32 0x7f353cbf970d vtkSMRemoteObject::PullState(paraview_protobuf::Message*) + 125
31 0x7f353cacdce5 vtkPVSessionBase::PullState(paraview_protobuf::Message*) + 37
30 0x7f353cad36aa vtkPVSessionCore::PullState(paraview_protobuf::Message*) + 506
29 0x7f353caf3b01 vtkSIProxy::Pull(paraview_protobuf::Message*) + 737
28 0x7f353caeeff3 vtkSIVectorPropertyTemplate<int, int>::Pull(paraview_protobuf::Message*) + 195
27 0x7f353caf113c vtkSIProperty::ProcessMessage(vtkClientServerStream&) + 76
26 0x7f353ae11b0d vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&) + 29
25 0x7f353ae1186e vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&, int) + 1294
24 0x7f353ae1113d vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream const&, int) + 1229
23 0x7f353ae10973 vtkClientServerInterpreter::CallCommandFunction(char const*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) + 355
22 0x7f352eed8198 vtkPVFilePathEncodingHelperCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&, void*) + 3704
21 0x7f353cacbfb4 vtkPVFilePathEncodingHelper::CallObjectMethod(char const*, bool) + 324
20 0x7f353ae11b0d vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&) + 29
19 0x7f353ae1186e vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&, int) + 1294
18 0x7f353ae1113d vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream const&, int) + 1229
17 0x7f353ae10973 vtkClientServerInterpreter::CallCommandFunction(char const*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) + 355
16 0x7f352f15bdf4 vtkFidesReaderCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&, void*) + 2836
15 0x7f3504e09a37 vtkFidesReader::CanReadFile(std::string const&) + 87
14 0x7f34ef67200e fides::io::DataSetReader::CheckForDataModelAttribute(std::string const&, std::string const&) + 366
13 0x7f34ef69c234 /home/lahwaacz/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/bin/../lib/../lib/libvtkfides-pv5.11.so.1(+0x9c234) [0x7f34ef69c234]
12 0x7f34ee695f3b adios2::IO::Open(std::string const&, adios2::Mode) + 187
11 0x7f34ec3b78dc adios2::core::IO::Open(std::string const&, adios2::Mode) + 76
10 0x7f34ec3b6ad7 adios2::core::IO::Open(std::string const&, adios2::Mode, adios2::helper::Comm) + 1143
9 0x7f34ecc1a55f std::_Function_handler<std::shared_ptr<adios2::core::Engine> (adios2::core::IO&, std::string const&, adios2::Mode, adios2::helper::Comm), std::shared_ptr<adios2::core::Engine> (*)(adios2::core::IO&, std::string const&, adios2::Mode, adios2::helper::Comm)>::_M_invoke(std::_Any_data const&, adios2::core::IO&, std::string const&, adios2::Mode&&, adios2::helper::Comm&&) + 63
8 0x7f34ec3bad02 std::shared_ptr<adios2::core::Engine> adios2::core::IO::MakeEngine<adios2::core::engine::BP5Reader>(adios2::core::IO&, std::string const&, adios2::Mode, adios2::helper::Comm) + 114
7 0x7f34ec6a8217 adios2::core::engine::BP5Reader::BP5Reader(adios2::core::IO&, std::string const&, adios2::Mode, adios2::helper::Comm) + 823
6 0x7f34ec6a77b5 adios2::core::engine::BP5Reader::Init() + 293
5 0x7f34ec6a6bd9 adios2::core::engine::BP5Reader::UpdateBuffer(std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<double, std::ratio<1l, 1000000000l> > > const&, std::chrono::duration<double, std::ratio<1l, 1l> > const&, std::chrono::duration<double, std::ratio<1l, 1l> > const&) + 1065
4 0x7f34ec6a264e adios2::core::engine::BP5Reader::InstallMetaMetaData(adios2::format::BufferSTL) + 126
3 0x7f34ec6c29f9 adios2::format::BP5Deserializer::InstallMetaMetaData(adios2::format::BP5Base::MetaMetaInfoBlock&) + 105
2 0x7f34eb22a2b2 load_external_format_FMcontext + 146
1 0x7f34eb22821f expand_format_from_rep + 271
0 0x7f3541d60710 /usr/lib/libc.so.6(+0x3e710) [0x7f3541d60710]
( 11.398s) [paraview ] :0 FATL| Signal: SIGSEGV
error: exception occurred: Segmentation fault
According to the backtrace, it tries to use a BP5Reader
but it fails badly.
Is there a workaround? Can you fix this?
Thanks, I will investigate this...
Btw. does the aforementioned fix affect just the logging to CMakeError.log or also the message printed to stdout? The error message CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
does not seem to indicate a problem lying in the compiler, especially since it mentions cmake...
Here it is: bug.zip
I have a minimal CMakeLists.txt
project with native CUDA and clang compiler:
cmake_minimum_required(VERSION 3.25.3)
set(CMAKE_CUDA_COMPILER clang++)
set(CMAKE_CUDA_ARCHITECTURES 61)
project(foo LANGUAGES CUDA)
add_executable(foo foo.cu)
When I try to build it, I'm getting this error:
$ cmake -B build -S . -G Ninja
-- The CUDA compiler identification is unknown
-- Check for working CUDA compiler: /usr/bin/clang++
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
_CMAKE_CUDA_WHOLE_FLAG
CMake Error at /usr/share/cmake/Modules/CMakeTestCUDACompiler.cmake:89 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred!
See also "/home/lahwaacz/foo/build/CMakeFiles/CMakeOutput.log".
See also "/home/lahwaacz/foo/build/CMakeFiles/CMakeError.log".
The CMakeError.log
file contains:
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA \(R\) Cuda compiler driver":
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA \(R\) Cuda compiler driver":
clang-15: error: no input files
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
clang-15: error: no input files
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA \(R\) Cuda compiler driver":
clang-15: error: no input files
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
clang-15: error: no input files
The platform is Arch Linux:
I don't know what the errors mean and where to start looking. Do you have any hints?
Minimal repro case:
cmake_minimum_required(VERSION 3.24.1)
project(foo LANGUAGES)
set(CMAKE_EXECUTABLE_SUFFIX "-dbg${CMAKE_EXECUTABLE_SUFFIX}")
set(CMAKE_CUDA_ARCHITECTURES native)
include(CheckLanguage)
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
enable_language(CUDA)
message(STATUS "CUDA enabled")
else()
message(FATAL_ERROR "CUDA not available")
endif()
Output of cmake -B build -S .
:
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - /opt/cuda/bin/nvcc
-- The CUDA compiler identification is NVIDIA 11.7.99
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - failed
-- Check for working CUDA compiler: /opt/cuda/bin/nvcc
CMake Error in /home/lahwaacz/stuff/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
CUDA_ARCHITECTURES is set to "native", but no GPU was detected.
CMake Error in /home/lahwaacz/stuff/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
CUDA_ARCHITECTURES is set to "native", but no GPU was detected.
CMake Error at /usr/share/cmake/Modules/CMakeTestCUDACompiler.cmake:89 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
CMakeLists.txt:8 (enable_language)
-- Configuring incomplete, errors occurred!
See also "/home/lahwaacz/stuff/build/CMakeFiles/CMakeOutput.log".
See also "/home/lahwaacz/stuff/build/CMakeFiles/CMakeError.log".
But the system actually has a GPU as reported by nvidia-smi
:
Wed Aug 24 20:34:44 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:02:00.0 Off | N/A |
| 27% 33C P8 5W / 120W | 197MiB / 6144MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 549 G /usr/lib/Xorg 154MiB |
| 0 N/A N/A 956 G /usr/bin/sddm-greeter 38MiB |
+-----------------------------------------------------------------------------+
The issue does not appear when CMAKE_EXECUTABLE_SUFFIX
is empty.
This was already noticed in https://www.mail-archive.com/cmake@cmake.org/msg56886.html but got no response.
Minimal reproducible example:
cmake_minimum_required(VERSION 3.24.1)
project(foo)
set(CMAKE_EXECUTABLE_SUFFIX "-dbg${CMAKE_EXECUTABLE_SUFFIX}")
find_package(MPI)
find_package(OpenMP)
Output of cmake -B build -S .
:
CMake Error at /usr/share/cmake/Modules/FindMPI.cmake:1269 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/FindMPI/test_mpi_C.bin'
Unable to find the executable at any of:
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/cmTC_b22c0-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Debug/cmTC_b22c0-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Development/cmTC_b22c0-dbg
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindMPI.cmake:1320 (_MPI_try_staged_settings)
/usr/share/cmake/Modules/FindMPI.cmake:1643 (_MPI_check_lang_works)
CMakeLists.txt:4 (find_package)
CMake Error at /usr/share/cmake/Modules/FindMPI.cmake:1746 (file):
file STRINGS file
"/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/FindMPI/test_mpi_C.bin"
cannot be read.
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
CMake Error at /usr/share/cmake/Modules/FindMPI.cmake:1269 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/FindMPI/test_mpi_CXX.bin'
Unable to find the executable at any of:
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/cmTC_b9e51-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Debug/cmTC_b9e51-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Development/cmTC_b9e51-dbg
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindMPI.cmake:1320 (_MPI_try_staged_settings)
/usr/share/cmake/Modules/FindMPI.cmake:1643 (_MPI_check_lang_works)
CMakeLists.txt:4 (find_package)
CMake Error at /usr/share/cmake/Modules/FindMPI.cmake:1269 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/FindMPI/test_mpi_CXX.bin'
Unable to find the executable at any of:
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/cmTC_e08a5-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Debug/cmTC_e08a5-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Development/cmTC_e08a5-dbg
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindMPI.cmake:1670 (_MPI_try_staged_settings)
CMakeLists.txt:4 (find_package)
CMake Error at /usr/share/cmake/Modules/FindMPI.cmake:1746 (file):
file STRINGS file
"/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/FindMPI/test_mpi_CXX.bin"
cannot be read.
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
CMake Error at /usr/share/cmake/Modules/FindOpenMP.cmake:397 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/FindOpenMP/ompver_C.bin'
Unable to find the executable at any of:
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/cmTC_82cd4-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Debug/cmTC_82cd4-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Development/cmTC_82cd4-dbg
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindOpenMP.cmake:525 (_OPENMP_GET_SPEC_DATE)
CMakeLists.txt:5 (find_package)
CMake Error at /usr/share/cmake/Modules/FindOpenMP.cmake:397 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/FindOpenMP/ompver_CXX.bin'
Unable to find the executable at any of:
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/cmTC_e7462-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Debug/cmTC_e7462-dbg
/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeTmp/Development/cmTC_e7462-dbg
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindOpenMP.cmake:525 (_OPENMP_GET_SPEC_DATE)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/lahwaacz/stuff/cmake_bug_CMAKE_EXECUTABLE_SUFFIX/build/CMakeFiles/CMakeOutput.log".
I just tested and it seems to work as expected on master.
@ben.boeckel Is there already a paraview release with this fix or does it still live only in the master branch? Asking because we have this problem with pvpython (reported for vtkpython, but pvpython 5.10.1 has the same problem...)
The sys.path
after vtkpython's default initialization is incomplete:
$ vtkpython -c "import sys; print(sys.path)"
['', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload']
Comparing with the python3.10 interpreter:
$ python3.10 -c "import sys; print(sys.path)"
['', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/lahwaacz/.local/lib/python3.10/site-packages', '/usr/lib/python3.10/site-packages']
To get the same sys.path
in vtkpython (well, almost - except for the current working dir), I need to run site.main():
$ vtkpython -c "import site; site.main(); import sys; print(sys.path)"
['/home/lahwaacz', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/lahwaacz/.local/lib/python3.10/site-packages', '/usr/lib/python3.10/site-packages']
It appears that vtkpython initializes sys.path
as if the -S
flag was always given. Is there a reason for this? The current behavior prevents vtkpython from importing modules from the system and user's site-packages directories.
This was tested on Arch Linux with vtk-9.1.0-13.
Seeing the linked MR for VTK merged, is there any update on this? pvpython seems to initialize fine in the Arch package (paraview-5.10.1-4): https://bugs.archlinux.org/task/73277
For reference, we had some issues with pvpython using Python 3.10 recently: https://bugs.archlinux.org/task/73277 This issue might be related...
Also your binary release seems to be using matplotlib 3.2.1 whereas the Arch package is 3.5.1.