CANdevStudio icon indicating copy to clipboard operation
CANdevStudio copied to clipboard

Build error on latest git

Open MauroMombelli opened this issue 3 years ago • 2 comments

trying to build from the AUR:

[ 63%] Linking CXX static library libcansignalviewer.a
[ 63%] Built target cansignalviewer
[ 64%] Building CXX object src/components/cansignaldecoder/CMakeFiles/cansignaldecoder_test.dir/cansignaldecoder_test_autogen/mocs_compilation.cpp.o
[ 64%] Building CXX object src/components/cansignaldecoder/CMakeFiles/cansignaldecoder_test.dir/tests/cansignaldecoder_test.cpp.o
c++: fatal error: Terminated signal terminated program cc1plus
compilation terminated.
make[2]: *** [src/components/canrawsender/CMakeFiles/canrawsender_test.dir/build.make:90: src/components/canrawsender/CMakeFiles/canrawsender_test.dir/tests/canrawsender_test.cpp.o] Error 1
make[2]: *** Deleting file 'src/components/canrawsender/CMakeFiles/canrawsender_test.dir/tests/canrawsender_test.cpp.o'
make[2]: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:240597: Warning: end of file not at end of a line; newline inserted
[ 64%] Building CXX object src/components/cansignalencoder/CMakeFiles/cansignalencodermodel_test.dir/cansignalencodermodel_test_autogen/mocs_compilation.cpp.o
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
[ 64%] Building CXX object src/components/cansignalencoder/CMakeFiles/cansignalencodermodel_test.dir/tests/cansignalencodermodel_test.cpp.o
c++: fatal error: Terminated signal terminated program cc1plus
compilation terminated.
make[2]: *** [src/components/canload/CMakeFiles/canloadmodel_test.dir/build.make:90: src/components/canload/CMakeFiles/canloadmodel_test.dir/tests/canloadmodel_test.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1463: src/components/canload/CMakeFiles/canloadmodel_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:642426: Warning: end of file not at end of a line; newline inserted
{standard input}:643900: Error: unknown pseudo-op: `.lbi'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
{standard input}: Assembler messages:
{standard input}:634114: Warning: end of file not at end of a line; newline inserted
c++: fatal error: Terminated signal terminated program cc1plus
compilation terminated.
make[2]: *** [src/components/canrawlogger/CMakeFiles/canrawlogger_test.dir/build.make:90: src/components/canrawlogger/CMakeFiles/canrawlogger_test.dir/tests/canrawlogger_test.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1797: src/components/canrawlogger/CMakeFiles/canrawlogger_test.dir/all] Error 2
c++: fatal error: Terminated signal terminated program cc1plus
compilation terminated.
make[2]: *** [src/components/canload/CMakeFiles/canload_test.dir/build.make:90: src/components/canload/CMakeFiles/canload_test.dir/tests/canload_test.cpp.o] Error 1
make[2]: *** Deleting file 'src/components/canload/CMakeFiles/canload_test.dir/tests/canload_test.cpp.o'
make[1]: *** [CMakeFiles/Makefile2:1493: src/components/canload/CMakeFiles/canload_test.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2131: src/components/canrawsender/CMakeFiles/canrawsender_test.dir/all] Error 2
[ 65%] Linking CXX executable canrawloggermodel_test
[ 65%] Built target canrawloggermodel_test
[ 65%] Linking CXX executable canrawsendermodel_test
[ 65%] Built target canrawsendermodel_test
[ 66%] Linking CXX executable cansignaldatamodel_test
[ 67%] Linking CXX executable cansignaldecodermodel_test
[ 67%] Built target cansignaldatamodel_test
[ 67%] Built target cansignaldecodermodel_test
[ 67%] Linking CXX executable cansignaldecoder_test
[ 67%] Linking CXX executable cansignaldata_test
[ 67%] Built target cansignaldata_test
[ 67%] Built target cansignaldecoder_test
[ 68%] Linking CXX executable cansignalencodermodel_test
[ 68%] Built target cansignalencodermodel_test
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'candevstudio-git-r269.fe417bd3-1': 
error: packages failed to buid: candevstudio-git-r269.fe417bd3-1

MauroMombelli avatar Jul 13 '21 10:07 MauroMombelli

I am able to install aur/candevstudio-git r269.fe417bd3-1 successfuly. Errors looks pretty strange to me. Maybe you are missing some dependencies and AUR package don't have it configured correctly? Try to install gcc, cmake, boost, boost-libs and qt5 before running candevstudio-git install. I am not maintaining AUR package. Try posting your problem here: https://aur.archlinux.org/packages/candevstudio-git/ if manual installation will not fix your problem.

rkollataj avatar Jul 16 '21 07:07 rkollataj

This error could be caused because of a high memory load as well. You should ensure that you have enough physical and swap memory for building the solution. If you do not have enough memory, you should create a new temporary swap file.

Try to build using less build threads as well.

cmake . -Bbuild
cmake --build build -j2

That would build using 2 threads.

sisco0 avatar Oct 01 '21 23:10 sisco0