subharmonicon-sequencer icon indicating copy to clipboard operation
subharmonicon-sequencer copied to clipboard

Build fails on M1 Silicon

Open nrthbound opened this issue 3 years ago • 1 comments

Device used: 2021 MBP 16" with M1 Max

Error:

make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/travisray/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 21.2.0
gyp ERR! command "/Users/travisray/.nvm/versions/node/v16.13.0/bin/node" "/Users/travisray/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/travisray/development/sandbox/subharmonicon-sequencer/node_modules/sharp
gyp ERR! node -v v16.13.0

Tested Solutions:

- Tested multiple versions of Node (12.22.7, 14.15.4, 16.13.0)
- Tested against my other MBP for Yarn version (1.22.17)
- Tested as superuser
- Tested different directories

Expected Behavior

Build should run and compile the project successfully.

Sorry if this issue isn't in a format that's appropriate. Though I've worked in Git for years and years, I don't typically write issues, but this project is awesome. After getting it to work on my 2019 MBP (which I don't use often anymore), I am really excited to get it working and using it in my real music projects.

nrthbound avatar Jan 17 '22 20:01 nrthbound

After looking into this some more, I'm not sure the issue is so much with M1, but the sharp dependency. I've looked around and other people seem to have issues with older versions of Sharp and M1 chips.

nrthbound avatar Jan 17 '22 20:01 nrthbound