Skip to content

Feature request: add support for Linux arm64#2

Open
devnoname120 wants to merge 1 commit intoLeanVel:masterfrom
devnoname120:github-issue
Open

Feature request: add support for Linux arm64#2
devnoname120 wants to merge 1 commit intoLeanVel:masterfrom
devnoname120:github-issue

Conversation

@devnoname120
Copy link

@devnoname120 devnoname120 commented Mar 15, 2026

Here is the error I get when trying to compile it on Linux on an arm64 machine:

  ==> gcc-12 -I insert_dylib/include -o insert_dylib_bin insert_dylib/main.c
  In file included from insert_dylib/include/mach/machine.h:83,
                   from insert_dylib/include/mach-o/loader.h:35,
                   from insert_dylib/main.c:11:
  insert_dylib/include/mach/machine/vm_types.h:39:2: error: #error architecture not supported
     39 | #error architecture not supported
        |  ^~~~~
  In file included from insert_dylib/include/mach/boolean.h:73,
                   from insert_dylib/include/mach/machine.h:84:
  insert_dylib/include/mach/machine/boolean.h:39:2: error: #error architecture not supported
     39 | #error architecture not supported
        |  ^~~~~
  insert_dylib/include/mach/machine.h:100:9: error: unknown type name ‘vm_size_t’
    100 |         vm_size_t       memory_size;    /* size of memory in bytes */
        |         ^~~~~~~~~
  insert_dylib/include/mach/machine.h:108:9: error: unknown type name ‘integer_t’
    108 | typedef integer_t       cpu_threadtype_t;
        |         ^~~~~~~~~
  insert_dylib/include/mach/machine.h:117:9: error: unknown type name ‘boolean_t’
    117 |         boolean_t       is_cpu;         /* is there a cpu in this slot? */
        |         ^~~~~~~~~
  insert_dylib/include/mach/machine.h:120:18: error: unknown type name ‘boolean_t’
    120 |         volatile boolean_t running;     /* is cpu running */
        |                  ^~~~~~~~~
  In file included from insert_dylib/include/mach-o/loader.h:47:
  insert_dylib/include/mach/machine/thread_status.h:39:2: error: #error architecture not supported
     39 | #error architecture not supported
        |  ^~~~~
  In file included from insert_dylib/include/architecture/byte_order.h:34,
                   from insert_dylib/include/mach-o/loader.h:48:
  insert_dylib/include/libkern/OSByteOrder.h:58:10: fatal error: libkern/machine/OSByteOrder.h: No such file or directory
     58 | #include <libkern/machine/OSByteOrder.h>
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  

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

Successfully merging this pull request may close these issues.

1 participant