Short summary: cmake runs examples fine when I run it in the pre-installed src example folder, but not after I copied it to ~/shared. Could you please help see why?
Full story: first, when I run it in the pre-installed src example folder, it works: ``` E:\dealii>docker pull dealii/dealii:v8.5.1-gcc-mpi-fulldepscandi-debugrelease v8.5.1-gcc-mpi-fulldepscandi-debugrelease: Pulling from dealii/dealii Digest: sha256:5c6ed25801292f715136bdad411e7dcda1d8f647f60c31be10533aa2697582ac Status: Image is up to date for dealii/dealii:v8.5.1-gcc-mpi-fulldepscandi-debugrelease E:\dealii>docker run -i -t -v E:\dealii:/home/dealii/shared dealii/dealii:v8.5.1-gcc-mpi-fulldepscandi-debugrelease dealii@d0e24c0315a5:~$ cd dealii-v8.5.1-src/examples/step-1 dealii@d0e24c0315a5:~/dealii-v8.5.1-src/examples/step-1$ cmake CMakeLists.txt -- The C compiler identification is GNU 6.2.0 -- The CXX compiler identification is GNU 6.2.0 -- Check for working C compiler: /usr/bin/mpicc -- Check for working C compiler: /usr/bin/mpicc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/mpicxx -- Check for working CXX compiler: /usr/bin/mpicxx -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Autopilot invoked ### # # Project step-1 set up with deal.II-8.5.1 found at # /home/dealii/dealii-v8.5.1 # # CMAKE_BUILD_TYPE: Debug # # You can now run # $ make - to compile and link the program # $ make run - to (compile, link and) run the program # # $ make debug - to switch the build type to 'Debug' # $ make release - to switch the build type to 'Release' # # $ make edit_cache - to change (cached) configuration variables # and rerun the configure and generate phases of CMake # # $ make strip_comments - to strip the source files in this # directory off the documentation comments # $ make clean - to remove the generated executable as well as # all intermediate compilation files # $ make runclean - to remove all output generated by the program # $ make distclean - to clean the directory from _all_ generated # files (includes clean, runclean and the removal # of the generated build system) # $ make info - to view this message again # # Have a nice day! # ### -- Configuring done -- Generating done -- Build files have been written to: /home/dealii/dealii-v8.5.1-src/examples/step-1 dealii@d0e24c0315a5:~/dealii-v8.5.1-src/examples/step-1$ make run Scanning dependencies of target step-1 [ 33%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o [ 66%] Linking CXX executable step-1 [ 66%] Built target step-1 Scanning dependencies of target run [100%] Run step-1 with Debug configuration Grid written to grid-1.eps Grid written to grid-2.eps [100%] Built target run ``` However, if I copy the examples to my local folder, it wouldn't work. (Sorry for the 2 lines where I forgot to delete the files first) ``` dealii@d0e24c0315a5:~/dealii-v8.5.1-src/examples/step-1$ cp -r ~/dealii-v8.5.1-src/examples ~/shared/examples dealii@d0e24c0315a5:~/dealii-v8.5.1-src/examples/step-1$ cd ~/shared/examples/step-1 dealii@d0e24c0315a5:~/shared/examples/step-1$ cmake CMakeLists.txt CMake Error: The current CMakeCache.txt directory /home/dealii/shared/examples/step-1/CMakeCache.txt is different than the directory /home/dealii/dealii-v8.5.1-src/examples/step-1 where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/home/dealii/shared/examples/step-1/CMakeLists.txt" does not match the source "/home/dealii/dealii-v8.5.1-src/examples/step-1/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory. dealii@d0e24c0315a5:~/shared/examples/step-1$ ls | grep -v 'CMakeLists.txt\|step-1.cc' | xargs rm -rf dealii@d0e24c0315a5:~/shared/examples/step-1$ ls CMakeLists.txt step-1.cc dealii@d0e24c0315a5:~/shared/examples/step-1$ cmake CMakeLists.txt -- The C compiler identification is GNU 6.2.0 -- The CXX compiler identification is GNU 6.2.0 -- Check for working C compiler: /usr/bin/mpicc -- Check for working C compiler: /usr/bin/mpicc -- broken CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/usr/bin/mpicc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/dealii/shared/examples/step-1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_f6b04/fast" make: *** No rule to make target 'cmTC_f6b04/fast'. Stop. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:38 (PROJECT) -- Configuring incomplete, errors occurred! See also "/home/dealii/shared/examples/step-1/CMakeFiles/CMakeOutput.log". See also "/home/dealii/shared/examples/step-1/CMakeFiles/CMakeError.log". ``` Could you please help? Thank you, Shawn -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
