`make -j 8` fails but `make` works

Post in this forum any question related to the installation on any of the supported platforms (Linux, Mac OS X, Windows)
Post Reply
jpvantassel
Posts: 3
Joined: Tue Sep 01, 2020 12:40 am

`make -j 8` fails but `make` works

Post by jpvantassel »

Hi Marc,

I am building Geopsy v3.4.2 inside of an Ubuntu container to serve on the Frontera cluster (https://www.tacc.utexas.edu/systems/frontera) to support the Dinver-wrapper swbatch (https://github.com/jpvantassel/swbatch). Geopsy configures without a problem, however when I do `make -j 8` I get a consistent failure (I have ran it at least three different times, in three clean containers) with the same error message listed below. After the failure occurs I can get the compile to complete with `make` (no -j flag). To me this points to a race condition inside of the compile directives. Note that if I run `make` (no -j flag) from the start it compiles to completion the first time, but of course takes much longer.

All the best,
Joe

/opt/Qt/5.14.2/gcc_64/bin/moc -DMAKE_GEOPSYREFRA_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /home/user/geopsypack-src-3.4.2/geopsyrefra/moc_predefs.h -I/opt/Qt/5.14.2/gcc_64/mkspecs/linux-g++ -I/home/user/geopsypack-src-3.4.2/geopsyrefra -I/home/user/geopsypack-src-3.4.2/geopsyrefra/src -I/home/user/geopsypack-src-3.4.2/geopsyrefra/src -I/home/user/geopsypack-src-3.4.2/geopsyrefra/ui -I/home/user/geopsypack-src-3.4.2/QGpCoreTools/src -I/home/user/geopsypack-src-3.4.2/QGpGuiTools/src -I/home/user/geopsypack-src-3.4.2/QGpGuiTools/ui -I/home/user/geopsypack-src-3.4.2/QGpCoreMath/src -I/home/user/geopsypack-src-3.4.2/QGpGuiMath/src -I/home/user/geopsypack-src-3.4.2/QGpGuiMath/ui -I/home/user/geopsypack-src-3.4.2/SciFigs/src -I/home/user/geopsypack-src-3.4.2/SciFigs/ui -I/home/user/geopsypack-src-3.4.2/GeopsyCore/src -I/home/user/geopsypack-src-3.4.2/GeopsyGui/src -I/home/user/geopsypack-src-3.4.2/GeopsyGui/ui -I/opt/Qt/5.14.2/gcc_64/include -I/opt/Qt/5.14.2/gcc_64/include/QtWidgets -I/opt/Qt/5.14.2/gcc_64/include/QtGui -I/opt/Qt/5.14.2/gcc_64/include/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include src/ToolRefra.h -o moc_ToolRefra.cpp
/opt/Qt/5.14.2/gcc_64/bin/moc -DMAKE_GEOPSYREFRA_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /home/user/geopsypack-src-3.4.2/geopsyrefra/moc_predefs.h -I/opt/Qt/5.14.2/gcc_64/mkspecs/linux-g++ -I/home/user/geopsypack-src-3.4.2/geopsyrefra -I/home/user/geopsypack-src-3.4.2/geopsyrefra/src -I/home/user/geopsypack-src-3.4.2/geopsyrefra/src -I/home/user/geopsypack-src-3.4.2/geopsyrefra/ui -I/home/user/geopsypack-src-3.4.2/QGpCoreTools/src -I/home/user/geopsypack-src-3.4.2/QGpGuiTools/src -I/home/user/geopsypack-src-3.4.2/QGpGuiTools/ui -I/home/user/geopsypack-src-3.4.2/QGpCoreMath/src -I/home/user/geopsypack-src-3.4.2/QGpGuiMath/src -I/home/user/geopsypack-src-3.4.2/QGpGuiMath/ui -I/home/user/geopsypack-src-3.4.2/SciFigs/src -I/home/user/geopsypack-src-3.4.2/SciFigs/ui -I/home/user/geopsypack-src-3.4.2/GeopsyCore/src -I/home/user/geopsypack-src-3.4.2/GeopsyGui/src -I/home/user/geopsypack-src-3.4.2/GeopsyGui/ui -I/opt/Qt/5.14.2/gcc_64/include -I/opt/Qt/5.14.2/gcc_64/include/QtWidgets -I/opt/Qt/5.14.2/gcc_64/include/QtGui -I/opt/Qt/5.14.2/gcc_64/include/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include src/ToolRefrad.h -o moc_ToolRefrad.cpp
/opt/Qt/5.14.2/gcc_64/bin/moc -DMAKE_GEOPSYREFRA_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /home/user/geopsypack-src-3.4.2/geopsyrefra/moc_predefs.h -I/opt/Qt/5.14.2/gcc_64/mkspecs/linux-g++ -I/home/user/geopsypack-src-3.4.2/geopsyrefra -I/home/user/geopsypack-src-3.4.2/geopsyrefra/src -I/home/user/geopsypack-src-3.4.2/geopsyrefra/src -I/home/user/geopsypack-src-3.4.2/geopsyrefra/ui -I/home/user/geopsypack-src-3.4.2/QGpCoreTools/src -I/home/user/geopsypack-src-3.4.2/QGpGuiTools/src -I/home/user/geopsypack-src-3.4.2/QGpGuiTools/ui -I/home/user/geopsypack-src-3.4.2/QGpCoreMath/src -I/home/user/geopsypack-src-3.4.2/QGpGuiMath/src -I/home/user/geopsypack-src-3.4.2/QGpGuiMath/ui -I/home/user/geopsypack-src-3.4.2/SciFigs/src -I/home/user/geopsypack-src-3.4.2/SciFigs/ui -I/home/user/geopsypack-src-3.4.2/GeopsyCore/src -I/home/user/geopsypack-src-3.4.2/GeopsyGui/src -I/home/user/geopsypack-src-3.4.2/GeopsyGui/ui -I/opt/Qt/5.14.2/gcc_64/include -I/opt/Qt/5.14.2/gcc_64/include/QtWidgets -I/opt/Qt/5.14.2/gcc_64/include/QtGui -I/opt/Qt/5.14.2/gcc_64/include/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include src/qtbtoolrefraint.h -o moc_qtbtoolrefraint.cpp
g++ -c -pipe -O2 -march=native -Wall -Wextra -D_REENTRANT -fPIC -DMAKE_GEOPSYREFRA_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Isrc -Isrc -Iui -I../QGpCoreTools/src -I../QGpGuiTools/src -I../QGpGuiTools/ui -I../QGpCoreMath/src -I../QGpGuiMath/src -I../QGpGuiMath/ui -I../SciFigs/src -I../SciFigs/ui -I../GeopsyCore/src -I../GeopsyGui/src -I../GeopsyGui/ui -I/opt/Qt/5.14.2/gcc_64/include -I/opt/Qt/5.14.2/gcc_64/include/QtWidgets -I/opt/Qt/5.14.2/gcc_64/include/QtGui -I/opt/Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -Iui -I/opt/Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o moc_ToolRefrad.o moc_ToolRefrad.cpp
g++ -c -pipe -O2 -march=native -Wall -Wextra -D_REENTRANT -fPIC -DMAKE_GEOPSYREFRA_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Isrc -Isrc -Iui -I../QGpCoreTools/src -I../QGpGuiTools/src -I../QGpGuiTools/ui -I../QGpCoreMath/src -I../QGpGuiMath/src -I../QGpGuiMath/ui -I../SciFigs/src -I../SciFigs/ui -I../GeopsyCore/src -I../GeopsyGui/src -I../GeopsyGui/ui -I/opt/Qt/5.14.2/gcc_64/include -I/opt/Qt/5.14.2/gcc_64/include/QtWidgets -I/opt/Qt/5.14.2/gcc_64/include/QtGui -I/opt/Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -Iui -I/opt/Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o moc_ToolRefra.o moc_ToolRefra.cpp
g++ -c -pipe -O2 -march=native -Wall -Wextra -D_REENTRANT -fPIC -DMAKE_GEOPSYREFRA_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Isrc -Isrc -Iui -I../QGpCoreTools/src -I../QGpGuiTools/src -I../QGpGuiTools/ui -I../QGpCoreMath/src -I../QGpGuiMath/src -I../QGpGuiMath/ui -I../SciFigs/src -I../SciFigs/ui -I../GeopsyCore/src -I../GeopsyGui/src -I../GeopsyGui/ui -I/opt/Qt/5.14.2/gcc_64/include -I/opt/Qt/5.14.2/gcc_64/include/QtWidgets -I/opt/Qt/5.14.2/gcc_64/include/QtGui -I/opt/Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -Iui -I/opt/Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o moc_qtbtoolrefraint.o moc_qtbtoolrefraint.cpp
g++ -c -pipe -O2 -march=native -Wall -Wextra -D_REENTRANT -fPIC -DMAKE_GEOPSYREFRA_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Isrc -Isrc -Iui -I../QGpCoreTools/src -I../QGpGuiTools/src -I../QGpGuiTools/ui -I../QGpCoreMath/src -I../QGpGuiMath/src -I../QGpGuiMath/ui -I../SciFigs/src -I../SciFigs/ui -I../GeopsyCore/src -I../GeopsyGui/src -I../GeopsyGui/ui -I/opt/Qt/5.14.2/gcc_64/include -I/opt/Qt/5.14.2/gcc_64/include/QtWidgets -I/opt/Qt/5.14.2/gcc_64/include/QtGui -I/opt/Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -Iui -I/opt/Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o moc_RefraPlugin.o moc_RefraPlugin.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Makefile:5178: recipe for target 'RefraPlugin.o' failed
make[1]: *** [RefraPlugin.o] Error 4
make[1]: *** Waiting for unfinished jobs....
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Makefile:6958: recipe for target 'moc_ToolRefra.o' failed
make[1]: *** [moc_ToolRefra.o] Error 4
src/ToolRefra.cpp: In member function 'virtual bool ToolRefra::initStations(GeopsyCore::SubSignalPool*)':
src/ToolRefra.cpp:87:16: warning: unused variable 'sig' [-Wunused-variable]
Signal * sig=*it;
^~~
src/ToolRefra.cpp:85:12: warning: unused variable 'srcAbsc' [-Wunused-variable]
double srcAbsc=_distances.back();
^~~~~~~
src/ToolRefra.cpp: In member function 'void ToolRefra::startInversion()':
src/ToolRefra.cpp:134:7: warning: unused variable 'pick' [-Wunused-variable]
int pick=_d->averagePick->currentIndex();
^~~~
src/ToolRefra.cpp:135:7: warning: unused variable 'dpick' [-Wunused-variable]
int dpick=_d->stddevPick->currentIndex()-1;
^~~~~
src/ToolRefra.cpp:136:7: warning: unused variable 'nNodes' [-Wunused-variable]
int nNodes=_distances.count();
^~~~~~
make[1]: Leaving directory '/home/user/geopsypack-src-3.4.2/geopsyrefra'
Makefile:1893: recipe for target 'sub-geopsyrefra-make_first-ordered' failed
make: *** [sub-geopsyrefra-make_first-ordered] Error 2
Post Reply