-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Bug]: odin package doesn't work properly #10892
Comments
From https://odin-lang.org/docs/install/:
And I'm pretty sure that only the compiler is installed, the libraries aren't: termux-packages/packages/odin/build.sh Lines 31 to 33 in 0d95692
|
This seems to be the case. I did the following: git clone https://github.com/odin-lang/Odin
cd Odin
git checkout dev-2022-04 # to have the matching version
cp $(which odin) . Now, when I compile an Odin file with this copy of the compiler, it works correctly. However, when I run the produced executable, I get a new error:
|
This is the odin code that you've compiled? If yes, the error happens because the odin compiler isn't producing position-independent executables (-fPIE) and probably it doesn't support PIE executables: odin-lang/Odin#919 |
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not working at all. Closes termux/termux-packages#10892.
Problem description
When I install the
odin
package and try to compile or run a valid Odin program (such as the first example in the documentation), it produces the following error:Doing the same on a non-Android device compiles the program as expected, so this is a Termux-specific issue.
What steps will reproduce the bug?
odin
package withpkg install odin
cd
to ithellope.odin
with the following content:odin run .
What is the expected behavior?
The command should compile the program and output the text “Hellope!”.
System information
termux-info:
The text was updated successfully, but these errors were encountered: