While compiling peridigm, I am facing the following error.
/usr/bin/ld: cannot find /usr/local/bin/trilinos-12.12.1/lib/libgaleri-xpetra.a: Too many open files
/usr/bin/ld: cannot find /usr/local/bin/trilinos-12.12.1/lib/libgaleri-epetra.a: Too many open files
/usr/bin/ld: cannot find /usr/local/bin/trilinos-12.12.1/lib/libaztecoo.a: Too many open files
/usr/bin/ld: cannot find /usr/local/bin/trilinos-12.12.1/lib/libisorropia.a: Too many open files
.
.
.
/usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o: Too many open files
collect2: error: ld returned 1 exit status
src/io/mesh_input/quick_grid/unit_test/CMakeFiles/ut_QuickGrid_solidCylinder_np1.dir/build.make:1465: recipe for target 'src/io/mesh_input/quick_grid/unit_test/ut_QuickGrid_solidCylinder_np1' failed
make[2]: *** [src/io/mesh_input/quick_grid/unit_test/ut_QuickGrid_solidCylinder_np1] Error 1
CMakeFiles/Makefile2:1009: recipe for target 'src/io/mesh_input/quick_grid/unit_test/CMakeFiles/ut_QuickGrid_solidCylinder_np1.dir/all' failed
make[1]: *** [src/io/mesh_input/quick_grid/unit_test/CMakeFiles/ut_QuickGrid_solidCylinder_np1.dir/all] Error 2
.
.
[ 58%] Linking CXX static library libPeridigmLib.a
[ 58%] Built target PeridigmLib
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
I used the instructions in link to increase the soft and hard limit of the processes by using the following:
#@student - maxlogins 4
- hard nofile 97816
- soft nofile 97816
session required pam_limits.so
End of file
However, even after restarting the wsl terminal after updating the limit.conf file as instructed in the link, the ulimit -n
still shows 1024
instead of the modified value. Why is it not changing? Any advice?
I am using Windows Subsystem for Linux Ubuntu 16.04.
ulimit -n
was not implemented until 16257 – steeldriver Mar 27 '21 at 00:17