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

Building unicorn from source on Alpine fails with /home/venom/mtkclient/unicorn/qemu/util/oslib-posix.c:33:10: fatal error: linux/mman.h: No such file or directory #1965

Open
VenomousSteam81 opened this issue Jun 20, 2024 · 2 comments

Comments

@VenomousSteam81
Copy link

I'm trying to build unicorn from source for mtkclient on Alpine because I get an error from it and multiple other packages.
The error I'm getting from building from source is:

/home/venom/mtkclient/unicorn/qemu/util/oslib-posix.c:33:10: fatal error: linux/mman.h: No such file or directory
   33 | #include <linux/mman.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/unicorn-common.dir/build.make:440: CMakeFiles/unicorn-common.dir/qemu/util/oslib-posix.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:591: CMakeFiles/unicorn-common.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Output of /etc/os-release:

PRETTY_NAME="postmarketOS v24.06"
NAME="postmarketOS"
VERSION_ID="v24.06"
VERSION="v24.06"
ID="postmarketos"
ID_LIKE="alpine"
HOME_URL="https://www.postmarketos.org/"
SUPPORT_URL="https://gitlab.com/postmarketOS"
BUG_REPORT_URL="https://gitlab.com/postmarketOS/pmaports/issues"
LOGO="postmarketos-logo"

If you want the errors I get from using pip3 install unicorn, I will be glad to give them.

@VenomousSteam81
Copy link
Author

VenomousSteam81 commented Jun 20, 2024

Ok, I just ran pip3 install unicorn again and realized that I get the same errors.

https://gist.github.com/VenomousSteam81/a777d17552e22554b5d139870023ab46

@VenomousSteam81
Copy link
Author

VenomousSteam81 commented Jun 20, 2024

I guess apk add py3-(pip3 package that couldn't be installed) works. Might not be as stable, but I will try it.
DOES NOT WORK! (I thought it was going to for a moment)

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