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

Can we compile metanorma binary with static pthreads #194

Closed
CAMOBAP opened this issue Jan 31, 2023 · 1 comment
Closed

Can we compile metanorma binary with static pthreads #194

CAMOBAP opened this issue Jan 31, 2023 · 1 comment
Assignees

Comments

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Jan 31, 2023

Intro

During linuxbrew CI crashes research I noted a this one:

/home/linuxbrew/.linuxbrew/Cellar/metanorma/1.6.12_1/bin/metanorma-linux-x86_64: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_PRIVATE' not found (required by /home/linuxbrew/.linuxbrew/Cellar/metanorma/1.6.12_1/bin/metanorma-linux-x86_64

Question

Is temtebako allow us to link glib and pthreads statically to our metanorma binary to avoid such problems?

@maxirmx
Copy link
Contributor

maxirmx commented Jan 31, 2023

No. Not glib, stdlib, pthread and dl if we have native extensions that are shared libraries
The reason:
Pls have a look at the diagram tamatebako/tebako#42 (comment)

Arrows "1" and "3" shall point to the same module (for glib, stdlib, pthread and dl) otherwise it crashes

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