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

GLIBC incompatibility cross-compiling with Ubuntu 22.04 #599

Open
tvanderbruggen opened this issue Apr 18, 2024 · 2 comments
Open

GLIBC incompatibility cross-compiling with Ubuntu 22.04 #599

tvanderbruggen opened this issue Apr 18, 2024 · 2 comments

Comments

@tvanderbruggen
Copy link
Member

For reference here is the reason for the incompatibility of GLIBC versions when cross-compiling on Ubuntu 22.04 and deploying on an image using Ubuntu 20.04 or 16.04

root@koheron:~# objdump -T /tmp/live-instrument/serverd | fgrep GLIBC_2.3
00000000  w   DF *UND*	00000000  GLIBC_2.34  pthread_join
00000000  w   DF *UND*	00000000  GLIBC_2.34  __pthread_key_create
00000000  w   DF *UND*	00000000  GLIBC_2.34  pthread_once
00000000      DF *UND*	00000000  GLIBC_2.34  pthread_create
00000000      DF *UND*	00000000  GLIBC_2.33  fstat64
00000000  w   DF *UND*	00000000  GLIBC_2.34  pthread_detach
00000000      DF *UND*	00000000  GLIBC_2.34  __libc_start_main

The incompatible symbols are related to pthread:
https://developers.redhat.com/articles/2021/12/17/why-glibc-234-removed-libpthread#the_developer_view

@rsarwar87
Copy link
Contributor

rsarwar87 commented Apr 18, 2024

Is this from the docker build?

Easiest solution would probably be to make ubuntu 22.04 image.

@tvanderbruggen
Copy link
Member Author

No it works fine with the Docker build.

I just wanted to document the root cause of the issue when building in native.

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

2 participants