visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
432 stars 111 forks source link

Build on RZ systems fail #4927

Open rusu24edward opened 4 years ago

rusu24edward commented 4 years ago

I tried building on RZTopaz but got this error.

/usr/bin/ld: cannot find -lmpich /usr/bin/ld: cannot find -lmpl collect2: error: ld returned 1 exit status /usr/bin/ld: cannot find -lmpich /usr/bin/ld: cannot find -lmpl collect2: error: ld returned 1 exit status make[2]: [plugins/databases/libMIDXDatabase.so] Error 1 make[2]: [plugins/databases/libEIDXDatabase_ser.so] Error 1 make[1]: [databases/IDX/CMakeFiles/MIDXDatabase.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make[1]: [databases/IDX/CMakeFiles/EIDXDatabase_ser.dir/all] Error 2 make: [all] Error 2

Commenting IDX out of the config resolved this.

brugger1 commented 4 years ago

The IDX reader on the 3.1RC builds fine on rztopaz. It fails as shown above on develop. I looked at the CMakeLists.txt file for the IDX reader and the one on the 3.1RC looks autogenerated, whereas the one on develop has been hand tweaked after the fact. I want to investigate that. I don't know why that would be necessary.

I found a fix for develop by changing:

LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${PIDX_LIBRARY_DIR} )

to

LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${PIDX_LIBRARY_DIR} ${VISIT_PARALLEL_RPATH} )

which is in the hand tweaked section.