Skip to content

Fail to build base v0.16.3 on Mac M4 pro error: unsupported option '-mpopcnt' for target 'arm64-apple-darwin24.4.0' #182

@pigltchen

Description

@pigltchen

clang: error: unsupported option '-mpopcnt' for target 'arm64-apple-darwin24.4.0'

File "src/dune", line 14, characters 32-46:

14 | (c_names bytes_stubs exn_stubs int_math_stubs hash_stubs am_testing)

^^^^^^^^^^^^^^

(cd _build/default/src && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -pthread -pthread -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -pthread -pthread -D_LARGEFILE64_SOURCE -mpopcnt -g -I /Users/chenjunru/.opam/5.2.1+flambda/lib/ocaml -I /Users/chenjunru/.opam/5.2.1+flambda/lib/sexplib0 -I ../compiler-stdlib/src -I ../hash_types/src -I ../shadow-stdlib/src -o int_math_stubs.o -c i[...]

clang: error: unsupported option '-mpopcnt' for target 'arm64-apple-darwin24.4.0'

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
┌─ The following actions failed
│ λ build base v0.16.3
└─

Metadata

Metadata

Assignees

No one assigned

    Labels

    forwarded-to-js-devsThis report has been forwarded to Jane Street's internal review system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions