Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Keeping an Eye on macOS + Fortran #1025

Closed
ax3l opened this issue Jun 16, 2020 · 4 comments · Fixed by #1112
Closed

CI: Keeping an Eye on macOS + Fortran #1025

ax3l opened this issue Jun 16, 2020 · 4 comments · Fixed by #1112
Assignees
Labels

Comments

@ax3l
Copy link
Member

ax3l commented Jun 16, 2020

Opening this issue so we can post log files from macOS CI runners that failed while building with Fortran. Migrated from #1004

Please post links to PRs and attach text files with logs when you spot them. In the "Checks" tabs, e.g. here, is a ... symbol that has the option "View raw logs".

@ax3l ax3l added the test label Jun 16, 2020
@ax3l
Copy link
Member Author

ax3l commented Jun 16, 2020

Log from https://github.com/AMReX-Codes/amrex/runs/777512636?check_suite_focus=true:
777512636.txt

cd /Users/runner/runners/2.263.0/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel && /usr/local/bin/gfortran -DAMREX_BACKTRACING -DAMREX_DEBUG -DAMREX_Darwin -DAMREX_GIT_VERSION=\"20.06.0\" -DAMREX_LANG_FORT -DAMREX_PARTICLES -DAMREX_SPACEDIM=3 -DAMREX_TESTING -DAMREX_USE_ASSERTION -DAMREX_USE_MPI -DBL_Darwin -DBL_FORT_USE_UNDERSCORE -DBL_LANG_FORT -DBL_SPACEDIM=3 -DBL_USE_MPI -I/Users/runner/runners/2.263.0/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source -I/Users/runner/runners/2.263.0/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel/mod_files -I/Users/runner/runners/2.263.0/work/amrex/amrex/build/mod_files -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Base -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Boundary -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/AmrCore -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Amr -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/LinearSolvers/MLMG -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/LinearSolvers/Projections -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Particle -I/usr/local/Cellar/open-mpi/4.0.4/include  -g -isysroot /Applications/Xcode_11.5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Jmod_files   -O0 -ggdb -fcheck=bounds -fbacktrace -Wuninitialized -Wunused -finit-real=snan -finit-integer=2147483647 -fimplicit-none -ffixed-line-length-none -ffree-line-length-none -c /Users/runner/runners/2.263.0/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source/Src_nd/Adv_nd.f90 -o CMakeFiles/Advection_AmrLevel_SV.exe.dir/Source/Src_nd/Adv_nd.f90.o
/usr/local/Cellar/cmake/3.17.3/bin/cmake -E cmake_copy_f90_mod Tutorials/Amr/Advection_AmrLevel/mod_files/slope_module.mod Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_SV.exe.dir/slope_module.mod.stamp GNU
/usr/local/Cellar/cmake/3.17.3/bin/cmake -E cmake_copy_f90_mod Tutorials/Amr/Advection_AmrLevel/mod_files/tagging_params_module.mod Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_SV.exe.dir/tagging_params_module.mod.stamp GNU
Error copying Fortran module "Tutorials/Amr/Advection_AmrLevel/mod_files/tagging_params_module.mod".  Tried "Tutorials/Amr/Advection_AmrLevel/mod_files/TAGGING_PARAMS_MODULE.mod" and "Tutorials/Amr/Advection_AmrLevel/mod_files/tagging_params_module.mod".

@WeiqunZhang
Copy link
Member

WeiqunZhang commented Jul 2, 2020

https://github.com/AMReX-Codes/amrex/runs/831730409?check_suite_focus=true

It strikes again.

Log: 831730409.log

...
2020-07-02T18:02:56.4648540Z [ 83%] Building Fortran object Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_UV.exe.dir/Source/Src_3d/compute_flux_3d.f90.o
2020-07-02T18:02:56.4654270Z cd /Users/runner/runners/2.263.0/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel && /usr/local/bin/gfortran -DAMREX_DEBUG -DAMREX_Darwin -DAMREX_GIT_VERSION=\"20.07.0\" -DAMREX_LANG_FORT -DAMREX_PARTICLES -DAMREX_SPACEDIM=3 -DAMREX_USE_ASSERTION -DAMREX_USE_MPI -DBL_Darwin -DBL_FORT_USE_UNDERSCORE -DBL_LANG_FORT -DBL_SPACEDIM=3 -DBL_USE_MPI -I/Users/runner/runners/2.263.0/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source -I/Users/runner/runners/2.263.0/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel/mod_files -I/Users/runner/runners/2.263.0/work/amrex/amrex/build/mod_files -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Base -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Boundary -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/AmrCore -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Amr -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/LinearSolvers/MLMG -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/LinearSolvers/Projections -I/Users/runner/runners/2.263.0/work/amrex/amrex/Src/Particle -I/usr/local/Cellar/open-mpi/4.0.4/include  -g -isysroot /Applications/Xcode_11.5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Jmod_files   -O0 -ggdb -fcheck=bounds -fbacktrace -Wuninitialized -Wunused -finit-real=snan -finit-integer=2147483647 -fimplicit-none -ffixed-line-length-none -ffree-line-length-none -c /Users/runner/runners/2.263.0/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source/Src_3d/compute_flux_3d.f90 -o CMakeFiles/Advection_AmrLevel_UV.exe.dir/Source/Src_3d/compute_flux_3d.f90.o
2020-07-02T18:02:56.5018440Z f951: Fatal Error: Cannot rename module file 'mod_files/compute_flux_module.mod0' to 'mod_files/compute_flux_module.mod': No such file or directory
2020-07-02T18:02:56.5019050Z compilation terminated.
...

@WeiqunZhang
Copy link
Member

WeiqunZhang commented Jul 8, 2020

https://github.com/AMReX-Codes/amrex/pull/1111/checks?check_run_id=848249709

Linux + Fortran also fails.

...
2020-07-08T03:30:38.0840557Z [ 74%] Building Fortran object Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_SV.exe.dir/Source/Src_nd/tagging_params.f90.o
2020-07-08T03:30:38.0841183Z [ 74%] Building Fortran object Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_UV.exe.dir/Source/Src_nd/tagging_params.f90.o
2020-07-08T03:30:38.0844548Z cd /home/runner/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel && /usr/bin/gfortran -DAMREX_DEBUG -DAMREX_GIT_VERSION=\"20.07.0\" -DAMREX_LANG_FORT -DAMREX_Linux -DAMREX_PARTICLES -DAMREX_SPACEDIM=3 -DAMREX_USE_ASSERTION -DAMREX_USE_MPI -DBL_FORT_USE_UNDERSCORE -DBL_LANG_FORT -DBL_Linux -DBL_SPACEDIM=3 -DBL_USE_MPI -I/home/runner/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source -I/home/runner/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel/mod_files -I/home/runner/work/amrex/amrex/build/mod_files -I/home/runner/work/amrex/amrex/Src/Base -I/home/runner/work/amrex/amrex/Src/Boundary -I/home/runner/work/amrex/amrex/Src/AmrCore -I/home/runner/work/amrex/amrex/Src/Amr -I/home/runner/work/amrex/amrex/Src/LinearSolvers/MLMG -I/home/runner/work/amrex/amrex/Src/LinearSolvers/Projections -I/home/runner/work/amrex/amrex/Src/Particle -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include -I/usr/lib/x86_64-linux-gnu/openmpi/include  -g -Jmod_files   -O0 -ggdb -fcheck=bounds -fbacktrace -Wuninitialized -Wunused -finit-real=snan -finit-integer=2147483647 -fimplicit-none -pthread -ffixed-line-length-none -ffree-line-length-none -c /home/runner/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source/Src_nd/tagging_params.f90 -o CMakeFiles/Advection_AmrLevel_UV.exe.dir/Source/Src_nd/tagging_params.f90.o
2020-07-08T03:30:38.0849685Z cd /home/runner/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel && /usr/bin/gfortran -DAMREX_DEBUG -DAMREX_GIT_VERSION=\"20.07.0\" -DAMREX_LANG_FORT -DAMREX_Linux -DAMREX_PARTICLES -DAMREX_SPACEDIM=3 -DAMREX_USE_ASSERTION -DAMREX_USE_MPI -DBL_FORT_USE_UNDERSCORE -DBL_LANG_FORT -DBL_Linux -DBL_SPACEDIM=3 -DBL_USE_MPI -I/home/runner/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source -I/home/runner/work/amrex/amrex/build/Tutorials/Amr/Advection_AmrLevel/mod_files -I/home/runner/work/amrex/amrex/build/mod_files -I/home/runner/work/amrex/amrex/Src/Base -I/home/runner/work/amrex/amrex/Src/Boundary -I/home/runner/work/amrex/amrex/Src/AmrCore -I/home/runner/work/amrex/amrex/Src/Amr -I/home/runner/work/amrex/amrex/Src/LinearSolvers/MLMG -I/home/runner/work/amrex/amrex/Src/LinearSolvers/Projections -I/home/runner/work/amrex/amrex/Src/Particle -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include -I/usr/lib/x86_64-linux-gnu/openmpi/include  -g -Jmod_files   -O0 -ggdb -fcheck=bounds -fbacktrace -Wuninitialized -Wunused -finit-real=snan -finit-integer=2147483647 -fimplicit-none -pthread -ffixed-line-length-none -ffree-line-length-none -c /home/runner/work/amrex/amrex/Tutorials/Amr/Advection_AmrLevel/Source/Src_nd/tagging_params.f90 -o CMakeFiles/Advection_AmrLevel_SV.exe.dir/Source/Src_nd/tagging_params.f90.o
2020-07-08T03:30:38.0918143Z f951: Fatal Error: Can't rename module file ‘mod_files/tagging_params_module.mod0’ to ‘mod_files/tagging_params_module.mod’: No such file or directory
...
2020-07-08T03:30:42.4624308Z /usr/local/bin/cmake -E cmake_copy_f90_mod Tutorials/Amr/Advection_AmrLevel/mod_files/tagging_params_module.mod Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_UV.exe.dir/tagging_params_module.mod.stamp GNU
2020-07-08T03:30:42.4635419Z Error copying Fortran module "Tutorials/Amr/Advection_AmrLevel/mod_files/tagging_params_module.mod".  Tried "Tutorials/Amr/Advection_AmrLevel/mod_files/TAGGING_PARAMS_MODULE.mod" and "Tutorials/Amr/Advection_AmrLevel/mod_files/tagging_params_module.mod".
2020-07-08T03:30:42.4637185Z make[3]: *** [Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_UV.exe.dir/tagging_params_module.mod.stamp] Error 1
2020-07-08T03:30:42.4637820Z Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_UV.exe.dir/depend.make:584: recipe for target 'Tutorials/Amr/Advection_AmrLevel/CMakeFiles/Advection_AmrLevel_UV.exe.dir/tagging_params_module.mod.stamp' failed

linux_gfortran.log

@ax3l
Copy link
Member Author

ax3l commented Jul 8, 2020

huh, is it possible we have a naming collision in the mod_files/ directory between different targets? that could be it!

update: ui, those CMake files in tutorials need some de-dusting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants