Skip to content

[BOX64] RPI5ARM: Failing to compile test_interpreter - stops the build in full #3285

@IngwiePhoenix

Description

@IngwiePhoenix

Hello!

I wanted to do a little experiment with the recently announced to be in preview Action1 Linux Agent - and, as a little "yolo idea", I wanted to see if I could get the agent to run under box64 on Linux. Why? ... Because I can? ;)

So I attempted to compile box64 with the following flags: cmake -G Ninja .. -DBOX32=ON -DBOX32_BINFMT=ON -DARM_DYNAREC=ON -D CMAKE_BUILD_TYPE=RelWithDebInfo -DRPI5ARM64=1 -DUSE_CCACHE=1 -DWITH_MOLD=1

Output:

[142/600] Building C object CMakeFiles/test_interpreter.dir/src/emu/x64run660f.c.o
FAILED: [code=1] CMakeFiles/test_interpreter.dir/src/emu/x64run660f.c.o
ccache /usr/bin/cc -DARM64 -DBOX32 -DCONFIG_64BIT -DDYNAREC -DRPI -DRPI5ARM64 -DTEST_INTERPRETER -I/src/dynarec/arm64 -I/root/work/box64/src/include -I/root/work/box64/src -I/root/work/box64/src/wrapped/generated -I/root/work/box64/src/wrapped32/generated -O2 -g -DNDEBUG   -Wno-address-of-packed-member -std=gnu11 -funwind-tables -fvisibility=hidden -pipe -march=armv8.2-a+crc+crypto+fp16+rcpc+dotprod -mtune=cortex-a76 -MD -MT CMakeFiles/test_interpreter.dir/src/emu/x64run660f.c.o -MF CMakeFiles/test_interpreter.dir/src/emu/x64run660f.c.o.d -o CMakeFiles/test_interpreter.dir/src/emu/x64run660f.c.o -c /root/work/box64/src/emu/x64run660f.c
In file included from /root/work/box64/src/emu/x64run660f.c:12:
/root/work/box64/src/include/os.h:91:9: warning: 'PROT_READ' redefined
   91 | #define PROT_READ  0x1
      |         ^~~~~~~~~
In file included from /root/work/box64/src/include/os.h:9:
/usr/include/sys/mman.h:58:9: note: this is the location of the previous definition
   58 | #define PROT_READ      1
      |         ^~~~~~~~~
/root/work/box64/src/include/os.h:92:9: warning: 'PROT_WRITE' redefined
   92 | #define PROT_WRITE 0x2
      |         ^~~~~~~~~~
/usr/include/sys/mman.h:59:9: note: this is the location of the previous definition
   59 | #define PROT_WRITE     2
      |         ^~~~~~~~~~
/root/work/box64/src/include/os.h:93:9: warning: 'PROT_EXEC' redefined
   93 | #define PROT_EXEC  0x4
      |         ^~~~~~~~~
/usr/include/sys/mman.h:60:9: note: this is the location of the previous definition
   60 | #define PROT_EXEC      4
      |         ^~~~~~~~~
/root/work/box64/src/emu/x64run660f.c: In function 'Test660F':
/root/work/box64/src/emu/x64run660f.c:1365:16: error: implicit declaration of function 'isnanf' [-Wimplicit-function-declaration]
 1365 |             if(isnanf(EX->f[i]))
      |                ^~~~~~
/root/work/box64/src/emu/x64run660f.c:1365:16: warning: incompatible implicit declaration of built-in function 'isnanf' [-Wbuiltin-declaration-mismatch]

OS: Alpine 3.23.1, Raspberry Pi 5.

Did I miss an option perhaps?

Thanks and kind regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions