Emu68 icon indicating copy to clipboard operation
Emu68 copied to clipboard

Error during compation

Open spacemishka opened this issue 2 years ago • 2 comments

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

spacemishka avatar Mar 27 '23 19:03 spacemishka

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

michalsc avatar Mar 27 '23 19:03 michalsc

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

spacemishka avatar Mar 28 '23 04:03 spacemishka