Skip to content

Cannot build MentOS on macOS M2 #124

Description

@anta40

The doc says to build MentOS on macOS, these packages are needed:

  • i386-elf-binutils
  • i386-elf-gcc

I already did, and can built xv6. But when building MentOS, running make fails because it invokes Apple's compiler, not i386-elf-gcc

[  1%] Building C object libc/CMakeFiles/libc.dir/src/err.c.o
cc: error: unsupported argument 'i686' to option '-march='
make[2]: *** [libc/CMakeFiles/libc.dir/src/err.c.o] Error 1
make[1]: *** [libc/CMakeFiles/libc.dir/all] Error 2
make: *** [all] Error 2

OK, how to modify the CMake config/Makefile/etc so it's i386-elf-gcc which is should be called instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions