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

Improve build Docker image on Alpine Linux with musl libc #1421

Closed
2 tasks done
aleksraiden opened this issue May 5, 2023 · 2 comments · Fixed by #1431
Closed
2 tasks done

Improve build Docker image on Alpine Linux with musl libc #1421

aleksraiden opened this issue May 5, 2023 · 2 comments · Fixed by #1431
Labels
enhancement type enhancement

Comments

@aleksraiden
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

Motivation

If I need a build kvrocks Docker image, based on Alpine linux, I had an error:

#0 3841.6 [ 98%] Building CXX object CMakeFiles/kvrocks.dir/src/main.cc.o
#0 3851.1 [100%] Linking CXX executable kvrocks
#0 3994.4 /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: CMakeFiles/kvrocks.dir/src/main.cc.o: in function SegvHandler': #0 3995.4 /kvrocks/src/main.cc:87: undefined reference to backtrace'
#0 3995.4 /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /kvrocks/src/main.cc:88: undefined reference to `backtrace_symbols'
#0 4004.7 collect2: error: ld returned 1 exit status
#0 4004.7 make[3]: *** [CMakeFiles/kvrocks.dir/build.make:249: kvrocks] Error 1
#0 4004.7 make[2]: *** [CMakeFiles/Makefile2:521: CMakeFiles/kvrocks.dir/all] Error 2
#0 4004.8 make[1]: *** [CMakeFiles/Makefile2:528: CMakeFiles/kvrocks.dir/rule] Error 2
#0 4004.8 make: *** [Makefile:254: kvrocks] Error 2

It seems like musl does not provide the backtrace function.

Solution

Some about this I fined there - xournalpp/xournalpp#3817 and now I test some fix.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@aleksraiden aleksraiden added the enhancement type enhancement label May 5, 2023
@PragmaTwice
Copy link
Member

godotengine/godot#57193
godotengine/godot-proposals#2439

Seems you can try to install libexecinfo, or try to link it to kvrocks.

@aleksraiden
Copy link
Contributor Author

godotengine/godot#57193 godotengine/godot-proposals#2439

Seems you can try to install libexecinfo, or try to link it to kvrocks.

Thanks, but it's only a part of them. I have successful build but final container not work correctly. Investigating now

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

Successfully merging a pull request may close this issue.

2 participants