facebookresearch/Aria_data_tools

Build error during step 7 on arm64 macOS 12.6 using Podman version 4.2.1

Closed this issue · 2 comments

Building with

podman build . --network=host -t aria_data_tools
crashes on step 7:
STEP 7/9: RUN cd /opt/aria_data_tools_Build; make -j ; ctest -j;
Scanning dependencies of target players
[  3%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaAudioPlayer.cpp.o
[  6%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaBarometerPlayer.cpp.o
[  9%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaImageSensorPlayer.cpp.o
[ 12%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaMotionSensorPlayer.cpp.o
Scanning dependencies of target sensors
[ 16%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaTimeSyncPlayer.cpp.o
[ 19%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaGpsPlayer.cpp.o
[ 22%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaBluetoothBeaconPlayer.cpp.o
[ 25%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaPosePlayer.cpp.o
[ 29%] Building CXX object data_provider/players/CMakeFiles/players.dir/AriaWifiBeaconPlayer.cpp.o
[ 32%] Building CXX object sensors/CMakeFiles/sensors.dir/models/DeviceModel.cpp.o
[ 35%] Building CXX object sensors/CMakeFiles/sensors.dir/utility/VrsUtils.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [sensors/CMakeFiles/sensors.dir/build.make:63: sensors/CMakeFiles/sensors.dir/models/DeviceModel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [data_provider/players/CMakeFiles/players.dir/build.make:102: data_provider/players/CMakeFiles/players.dir/AriaGpsPlayer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [data_provider/players/CMakeFiles/players.dir/build.make:115: data_provider/players/CMakeFiles/players.dir/AriaImageSensorPlayer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:366: sensors/CMakeFiles/sensors.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:339: data_provider/players/CMakeFiles/players.dir/all] Error 2
make: *** [Makefile:95: all] Error 2
Test project /opt/aria_data_tools_Build
    Start 1: deviceModel_tests_NOT_BUILT
Could not find executable deviceModel_tests_NOT_BUILT
Looked in the following places:
deviceModel_tests_NOT_BUILT
deviceModel_tests_NOT_BUILT
Release/deviceModel_tests_NOT_BUILT
Release/deviceModel_tests_NOT_BUILT
Debug/deviceModel_tests_NOT_BUILT
Debug/deviceModel_tests_NOT_BUILT
MinSizeRel/deviceModel_tests_NOT_BUILT
MinSizeRel/deviceModel_tests_NOT_BUILT
RelWithDebInfo/deviceModel_tests_NOT_BUILT
RelWithDebInfo/deviceModel_tests_NOT_BUILT
Deployment/deviceModel_tests_NOT_BUILT
Deployment/deviceModel_tests_NOT_BUILT
Development/deviceModel_tests_NOT_BUILT
Development/deviceModel_tests_NOT_BUILT
Unable to find executable: deviceModel_tests_NOT_BUILT
1/2 Test #1: deviceModel_tests_NOT_BUILT ......***Not Run   0.00 sec
    Start 2: deviceModel_tests
Could not find executable /opt/aria_data_tools_Build/sensors/tests/deviceModel_tests
Looked in the following places:
/opt/aria_data_tools_Build/sensors/tests/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Release/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Release/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Debug/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Debug/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/MinSizeRel/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/MinSizeRel/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/RelWithDebInfo/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/RelWithDebInfo/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Deployment/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Deployment/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Development/deviceModel_tests
/opt/aria_data_tools_Build/sensors/tests/Development/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Release/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Release/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Debug/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Debug/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/MinSizeRel/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/MinSizeRel/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/RelWithDebInfo/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/RelWithDebInfo/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Deployment/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Deployment/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Development/deviceModel_tests
opt/aria_data_tools_Build/sensors/tests/Development/deviceModel_tests
Unable to find executable: /opt/aria_data_tools_Build/sensors/tests/deviceModel_tests
2/2 Test #2: deviceModel_tests ................***Not Run   0.00 sec

0% tests passed, 2 tests failed out of 2

Total Test time (real) =   0.01 sec

The following tests FAILED:
Errors while running CTest
	  1 - deviceModel_tests_NOT_BUILT (Not Run)
	  2 - deviceModel_tests (Not Run)
Error: error building at STEP "RUN cd /opt/aria_data_tools_Build; make -j ; ctest -j;": error while running runtime: exit status 8

Full build output here.

Seems like the build is failing since C++ is taking too much ram.
Can you try not run make -j but something either as make or make -j4 if you have 4 cores on your machine.

That fixed the issue. Thank you so much!