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

Error during compation #209

Open
spacemishka opened this issue Mar 27, 2023 · 2 comments
Open

Error during compation #209

spacemishka opened this issue Mar 27, 2023 · 2 comments
Assignees

Comments

@spacemishka
Copy link

spacemishka commented Mar 27, 2023

Hi,

I tried using my Rpi4 with Raspian to compile the Code for my PiStorm32lite. But it failed with:

mpress.c.obj
[  9%] Linking C static library libdeflate.a
[  9%] Built target libdeflate_static
Scanning dependencies of target capstone-static
[ 10%] Building C object external/capstone/CMakeFiles/capstone-static.dir/cs.c.obj
In file included from /usr/include/features.h:485,
                 from /usr/include/aarch64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /home/peter/pistorm/Emu68/external/capstone/cs.c:12:
/usr/include/aarch64-linux-gnu/gnu/stubs.h:11:11: fatal error: gnu/stubs-lp64_be.h: No such file or directory
   11 | # include <gnu/stubs-lp64_be.h>
      |           ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Just jollowed the instructions, and one issue with
sudo cp /usr/aarch64-linux-gnu/include/gnu/stubs-lp64.h /usr/aarch64-linux-gnu/include/gnu/stubs-lp64_be.h

@michalsc
Copy link
Owner

I have updated your issue to add multiline verbatim. So, what was the issue with copying the stubs-lp64.h?

@michalsc michalsc self-assigned this Mar 27, 2023
@spacemishka
Copy link
Author

Yes because it was not at the location it is expected to be. And also when running apt install for the toolchain, the general gnu will referenced instead of the AARCH64-variant

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