brlcad
brlcad copied to clipboard
Build fails on M1 Mac
Following the instructions and trying to build BRL-CAD 7.34.0 on a MacBook Pro with a M1 Max chip, running OSX 13.1 Ventura, results in a segfault and a failed build:
$ make -j8
[...]
[ 95%] Generating ../share/db/ktank.g
/bin/sh: line 1: 81579 Segmentation fault: 11 ../bin/asc2g /Users/daniel.fancsali/Private/brlcad-7.34.0/db/die.asc /Users/daniel.fancsali/Private/brlcad-7.34.0/build/share/db/die.g
make[2]: *** [share/db/die.g] Error 139
make[2]: *** Deleting file `share/db/die.g'
make[1]: *** [db/CMakeFiles/die.g.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 95%] Built target cube.g
[ 95%] Built target demo.g
[ 95%] Built target galileo.g
[ 95%] Built target kman.g
[ 95%] Built target ktank.g
[ 95%] Built target goliath.g
[ 95%] Built target havoc.g
make: *** [all] Error 2
Rather oddly, if trying to rebuild, it'll fail at the same stage, but at a different .g
file.