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_2.11" not found #41

Open
yingshaoxo opened this issue May 26, 2024 · 2 comments
Open

"GLIBC_2.11" not found #41

yingshaoxo opened this issue May 26, 2024 · 2 comments

Comments

@yingshaoxo
Copy link

When I run "./tcc" in ubuntu8, I got "glibc_2.11" not found error.

I think you guys should use alpine + musl-gcc to do the compile.

It is as simple as:

musl-gcc main.c -o main.run -static

Don' forget about the static flag.

@yingshaoxo
Copy link
Author

yingshaoxo commented May 26, 2024

I just found "https://github.com/vlang/tccbin/tree/thirdparty-linuxmusl-amd64"

Which has musl staticlly compiled tcc, I can run the tcc in ubuntu8 now.


But when I compile main.c, I got another error: "crt1.o not found \n include file stdio.h not found"

I think there should has a install.sh script without rely on make, because ubuntu8 does not have make installed by default

I am still try to figure out how to install the tccbin by copy and paste, working on...

@yingshaoxo
Copy link
Author

yingshaoxo commented May 26, 2024

I suddenly found the tccbin does not have those files: "crt1.o" and "stdio.h"

According to my memory, even if I use gcc or make to compile the tcc, it will still not have a file called "crt1.o" or "stdio.h"

So the thirdpart-linuxmusl-amd64 branch is not a fully version that could let you compile a c file without install make or gcc or any other package

Am I right? Can anyone do a explain?

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

1 participant