box64: /usr/bin/cc - broken when cmake -DRPI4ARM64=1

Hi! I was following this tutorial: https://www.reddit.com/r/valheim/comments/s1os21/create_your_own_free_dedicated_server/

Like written in the post, I’m running a Linux instance1 5.15.0-1013-oracle #17-Ubuntu SMP Fri Jun 24 10:14:16 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux from the Free Tier subscription of Oracle Cloud.

I had no problems with box86, but when I tried cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo with box64, I got this error from cmake:

-- Found Python3: /usr/bin/python3.10 (found version "3.10.4") found components: Interpreter
-- The C compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/fred/box64/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_ae2bb/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_ae2bb.dir/build.make CMakeFiles/cmTC_ae2bb.dir/build
    gmake[1]: Entering directory '/home/fred/box64/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_ae2bb.dir/testCCompiler.c.o
    /usr/bin/cc    -o CMakeFiles/cmTC_ae2bb.dir/testCCompiler.c.o -c /home/fred/box64/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Assembler messages:
    Error: unrecognized option -mabi=lp64
    gmake[1]: *** [CMakeFiles/cmTC_ae2bb.dir/build.make:78: CMakeFiles/cmTC_ae2bb.dir/testCCompiler.c.o] Error 1
    gmake[1]: Leaving directory '/home/fred/box64/build/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:127: cmTC_ae2bb/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:75 (project)

-- Configuring incomplete, errors occurred!
See also "/home/fred/box64/build/CMakeFiles/CMakeOutput.log".
See also "/home/fred/box64/build/CMakeFiles/CMakeError.log".

If others are able to run it in the oracle cloud using the free and their aarch64, why am I not? Is that a bug or am I just stupid?

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

I executed sudo apt install make cmake build-essential git, all of that was already present but to be sure I added --reinstall. I then tried cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo but I still got the same error. Dang, no idea what’s wrong with my machine. I added the repo and installing the binary from there seemed to work, thanks for the tip!

No problem, just a hint the box64 binary only updates from the repo if you run sudo apt upgrade

Tried deleting and recloned, unfortunately same issue still uname -a Linux instance1 5.15.0-1013-oracle #17-Ubuntu SMP Fri Jun 24 10:14:16 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux cat /etc/lsb_release cat: /etc/lsb_release: No such file or directory