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

Issue with my Linux port #12

Closed
Smilex opened this issue Oct 20, 2017 · 1 comment
Closed

Issue with my Linux port #12

Smilex opened this issue Oct 20, 2017 · 1 comment

Comments

@Smilex
Copy link
Contributor

Smilex commented Oct 20, 2017

It relies on a system installation of your fork of tcc. I get this error now that I've removed it - "tcc: error: file '/usr/local/lib/tcc/x86-64/libtcc1.a' not found"

I guess this is some RPATH thing. I did readelf -d, and the RPATH entry looks like this:
0x000000000000000f (RPATH) Library rpath: [$ORIGIN/]

libtcc1.a is correctly installed alongside the CToy executable.

I will fix this

@anael-seghezzi
Copy link
Owner

anael-seghezzi commented Oct 20, 2017

The thing is libtcc1.a is not the same thing as libtcc.a (libtcc library). It's only some small specific tcc-related runtime code. So first thing should be to build libtcc.so (dynamic library) with the correct rpath so it can be released along CToy executable. And libtcc1.a needs to be generated by tcc and also put at CToy's root (no rpath to handle there).

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