Skip to content

macOS Build failure: em++: error: wasm: No such file or directory #106

Description

@cropup
em++ -D__NO_SYZYGY__ -Wall -Wcast-qual -fno-exceptions -std=c++17 -msimd128 -DPOSIXALIGNEDALLOC -Wno-pthreads-mem-growth -D__ENGINE_VERSION__=\""17 WASM Multithreaded"\" -mmacosx-version-min=10.15 -arch wasm -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -fexperimental-new-pass-manager -DIS_64BIT -DNO_PREFETCH -msse3 -DUSE_POPCNT -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DGIT_SHA=f9512ef9 -DGIT_DATE=20250213 -DARCH=wasm -flto=full   -c -o search.o search.cpp
em++ -D__NO_SYZYGY__ -Wall -Wcast-qual -fno-exceptions -std=c++17 -msimd128 -DPOSIXALIGNEDALLOC -Wno-pthreads-mem-growth -D__ENGINE_VERSION__=\""17 WASM Multithreaded"\" -mmacosx-version-min=10.15 -arch wasm -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -fexperimental-new-pass-manager -DIS_64BIT -DNO_PREFETCH -msse3 -DUSE_POPCNT -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DGIT_SHA=f9512ef9 -DGIT_DATE=20250213 -DARCH=wasm -flto=full   -c -o thread.o thread.cpp
em++: error: wasm: No such file or directory ("wasm" was expected to be an input file, based on the commandline arguments provided)
em++: error: wasm: No such file or directory ("wasm" was expected to be an input file, based on the commandline arguments provided)
em++: error: wasm: No such file or directory ("wasm" was expected to be an input file, based on the commandline arguments provided)
make[1]: *** [bitboard.o] Error 1
make[1]: *** Waiting for unfinished jobs...

Latest MacOS with M1 Pro chip. I'm getting this error, when I try to run ./build.jd

Default net: nn-1111cefa1111.nnue
nn-1111cefa1111.nnue available : OK
Network validated
Default net: nn-37f18f62d772.nnue
nn-37f18f62d772.nnue available : OK
Network validated

Config:
debug: 'no'
sanitize: 'none'
optimize: 'yes'
arch: 'wasm'
bits: '64'
kernel: 'Darwin'
os: ''
prefetch: 'no'
popcnt: 'yes'
pext: 'no'
sse: 'yes'
mmx: 'no'
sse2: 'yes'
ssse3: 'yes'
sse41: 'yes'
avx2: 'no'
avxvnni: 'no'
avx512: 'no'
vnni256: 'no'
vnni512: 'no'
neon: 'no'
dotprod: 'no'
arm_version: '0'
target_windows: ''

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