Skip to content
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 error on latest git #231

Open
MauroMombelli opened this issue Jul 13, 2021 · 2 comments
Open

Build error on latest git #231

MauroMombelli opened this issue Jul 13, 2021 · 2 comments

Comments

@MauroMombelli
Copy link

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
@rkollataj
Copy link
Member

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.

@sisco0
Copy link

sisco0 commented Oct 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants