-
Notifications
You must be signed in to change notification settings - Fork 55
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
Build errors #163
Labels
bug
Something isn't working
Comments
The docker command also fails with this error |
@richardrl Can you try again from a fresh clone, we fixed some of the error you see recently |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got many errors following the build instructions.
First error, fmt not found. Fixed by using this: https://stackoverflow.com/questions/66531225/cmake-add-fmt-library
FAILED: sample_apps/sample_recording_app
: && /usr/bin/ccache /usr/bin/c++ -O3 -DNDEBUG sample_apps/CMakeFiles/sample_recording_app.dir/SampleRecordingApp.cpp.o -o sample_apps/sample_recording_app vrs/libvrslib.a vrs/oss/logging/libvrs_logging.a vrs/os/libvrs_os.a vrs/helpers/libvrs_helpers.a vrs/os/libvrs_os.a /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.71.0 -lpthread vrs/utils/xxhash/libvrs_utils_xxhash.a vrs/oss/logging/libvrs_logging.a _deps/fmt-build/libfmt.a /usr/lib/x86_64-linux-gnu/libxxhash.so /usr/lib/x86_64-linux-gnu/liblz4.so /usr/lib/x86_64-linux-gnu/libzstd.so && :
/usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncBuffer::SigEvNotifyFunction(sigval)': DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x27): undefined reference to
aio_error'/usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x4f): undefined reference to
aio_return' /usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xb4): undefined reference to
aio_return'/usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xf4): undefined reference to
aio_return' /usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
std::_Function_handler<void (long, int), vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)::{lambda(long, int)#1}>::_M_invoke(std::_Any_data const&, long&&, int&&)':DiskFile.cpp:(.text._ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi[_ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi]+0x2d4): undefined reference to
aio_write' /usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)':DiskFile.cpp:(.text._ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm[_ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm]+0x56c): undefined reference to
aio_write' collect2: error: ld returned 1 exit status [145/165] Linking CXX executable vrs/test/test_vrslib_file_tests FAILED: vrs/test/test_vrslib_file_tests vrs/test/test_vrslib_file_tests[1]_tests.cmake : && /usr/bin/ccache /usr/bin/c++ -O3 -DNDEBUG vrs/test/CMakeFiles/test_vrslib_file_tests.dir/file_tests/ChunkedFileTest.cpp.o vrs/test/CMakeFiles/test_vrslib_file_tests.dir/file_tests/DeviceSimulatorTest.cpp.o vrs/test/CMakeFiles/test_vrslib_file_tests.dir/file_tests/FileCacheTest.cpp.o vrs/test/CMakeFiles/test_vrslib_file_tests.dir/file_tests/RecordableTest.cpp.o vrs/test/CMakeFiles/test_vrslib_file_tests.dir/file_tests/SimpleFileHandlerTest.cpp.o vrs/test/CMakeFiles/test_vrslib_file_tests.dir/helpers/TestProcess.cpp.o -o vrs/test/test_vrslib_file_tests vrs/libvrslib.a vrs/oss/TestDataDir/libvrs_oss_testdatadir.a vrs/test/libvrs_test_helpers.a vrs/libvrslib.a vrs/helpers/libvrs_helpers.a vrs/os/libvrs_os.a /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.71.0 vrs/utils/xxhash/libvrs_utils_xxhash.a vrs/oss/logging/libvrs_logging.a _deps/fmt-build/libfmt.a /usr/lib/x86_64-linux-gnu/libxxhash.so /usr/lib/x86_64-linux-gnu/liblz4.so /usr/lib/x86_64-linux-gnu/libzstd.so lib/libgtest_main.a lib/libgtest.a -lpthread && cd /data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test && /usr/bin/cmake -D TEST_TARGET=test_vrslib_file_tests -D TEST_EXECUTABLE=/data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test/test_vrslib_file_tests -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=test_vrslib_file_tests_TESTS -D CTEST_FILE=/data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test/test_vrslib_file_tests[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=5 -P /usr/share/cmake-3.16/Modules/GoogleTestAddTests.cmake /usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncBuffer::SigEvNotifyFunction(sigval)':DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x27): undefined reference to
aio_error' /usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x4f): undefined reference to
aio_return'/usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xb4): undefined reference to
aio_return' /usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xf4): undefined reference to
aio_return'/usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
std::_Function_handler<void (long, int), vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)::{lambda(long, int)#1}>::_M_invoke(std::_Any_data const&, long&&, int&&)': DiskFile.cpp:(.text._ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi[_ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi]+0x2d4): undefined reference to
aio_write'/usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)': DiskFile.cpp:(.text._ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm[_ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm]+0x56c): undefined reference to
aio_write'/usr/bin/ld: vrs/test/libvrs_test_helpers.a(VRSTestsHelpers.cpp.o): in function
vrs::test::checkRecordCountAndIndex(vrs::test::CheckParams const&)': VRSTestsHelpers.cpp:(.text+0x5738): undefined reference to
testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)'/usr/bin/ld: VRSTestsHelpers.cpp:(.text+0x57c2): undefined reference to
testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)' collect2: error: ld returned 1 exit status [146/165] Linking CXX executable sample_apps/sample_playback_app FAILED: sample_apps/sample_playback_app : && /usr/bin/ccache /usr/bin/c++ -O3 -DNDEBUG sample_apps/CMakeFiles/sample_playback_app.dir/SamplePlaybackApp.cpp.o -o sample_apps/sample_playback_app vrs/libvrslib.a vrs/oss/logging/libvrs_logging.a vrs/os/libvrs_os.a vrs/utils/libvrs_utils.a vrs/libvrslib.a vrs/utils/xxhash/libvrs_utils_xxhash.a /usr/lib/x86_64-linux-gnu/libxxhash.so /usr/lib/x86_64-linux-gnu/liblz4.so /usr/lib/x86_64-linux-gnu/libzstd.so vrs/helpers/libvrs_helpers.a vrs/utils/converters/libvrs_utils_converters.a vrs/os/libvrs_os.a vrs/oss/logging/libvrs_logging.a _deps/fmt-build/libfmt.a /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.71.0 -lpthread /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libturbojpeg.so && : /usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncBuffer::SigEvNotifyFunction(sigval)':DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x27): undefined reference to
aio_error' /usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x4f): undefined reference to
aio_return'/usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xb4): undefined reference to
aio_return' /usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xf4): undefined reference to
aio_return'/usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
std::_Function_handler<void (long, int), vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)::{lambda(long, int)#1}>::_M_invoke(std::_Any_data const&, long&&, int&&)': DiskFile.cpp:(.text._ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi[_ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi]+0x2d4): undefined reference to
aio_write'/usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)': DiskFile.cpp:(.text._ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm[_ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm]+0x56c): undefined reference to
aio_write'collect2: error: ld returned 1 exit status
[147/165] Linking CXX executable vrs/test/test_vrslib
FAILED: vrs/test/test_vrslib vrs/test/test_vrslib[1]_tests.cmake
: && /usr/bin/ccache /usr/bin/c++ -O3 -DNDEBUG vrs/test/CMakeFiles/test_vrslib.dir/ContentBlockReaderTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/CustomBlockTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/DataLayoutFormatTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/DataLayoutTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/ErrorCodeTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/TelemetryLoggerTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/FileHandlerFactoryTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/FileHandlerTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/FrameCompressionTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/GetRecordTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/MultiRecordFileReaderTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/NestedDataLayoutTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/RecordFormatFileTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/RecordFormatTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/RecordManagerTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/RecordTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/TestProcessTest.cpp.o vrs/test/CMakeFiles/test_vrslib.dir/helpers/TestProcess.cpp.o -o vrs/test/test_vrslib vrs/libvrslib.a vrs/oss/TestDataDir/libvrs_oss_testdatadir.a vrs/test/libvrs_test_helpers.a vrs/libvrslib.a vrs/helpers/libvrs_helpers.a vrs/os/libvrs_os.a /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.71.0 vrs/utils/xxhash/libvrs_utils_xxhash.a vrs/oss/logging/libvrs_logging.a _deps/fmt-build/libfmt.a /usr/lib/x86_64-linux-gnu/libxxhash.so /usr/lib/x86_64-linux-gnu/liblz4.so /usr/lib/x86_64-linux-gnu/libzstd.so lib/libgtest_main.a lib/libgtest.a -lpthread && cd /data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test && /usr/bin/cmake -D TEST_TARGET=test_vrslib -D TEST_EXECUTABLE=/data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test/test_vrslib -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=test_vrslib_TESTS -D CTEST_FILE=/data/scratch-oc40/pulkitag/rli14/vrs/build/vrs/test/test_vrslib[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=5 -P /usr/share/cmake-3.16/Modules/GoogleTestAddTests.cmake
/usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncBuffer::SigEvNotifyFunction(sigval)': DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x27): undefined reference to
aio_error'/usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0x4f): undefined reference to
aio_return' /usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xb4): undefined reference to
aio_return'/usr/bin/ld: DiskFile.cpp:(.text._ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval[_ZN3vrs11AsyncBuffer19SigEvNotifyFunctionE6sigval]+0xf4): undefined reference to
aio_return' /usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
std::_Function_handler<void (long, int), vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)::{lambda(long, int)#1}>::_M_invoke(std::_Any_data const&, long&&, int&&)':DiskFile.cpp:(.text._ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi[_ZNSt17_Function_handlerIFvliEZN3vrs18AsyncDiskFileChunk5writeEPKvmRmEUlliE_E9_M_invokeERKSt9_Any_dataOlOi]+0x2d4): undefined reference to
aio_write' /usr/bin/ld: vrs/libvrslib.a(DiskFile.cpp.o): in function
vrs::AsyncDiskFileChunk::write(void const*, unsigned long, unsigned long&)':DiskFile.cpp:(.text._ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm[_ZN3vrs18AsyncDiskFileChunk5writeEPKvmRm]+0x56c): undefined reference to `aio_write'
collect2: error: ld returned 1 exit status
don't know how to fix the above error
The text was updated successfully, but these errors were encountered: