question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for m1/arm64

See original GitHub issue

Trying to get some existing apps to build on the m1 is proving difficult due to required changes to the binding.gyp file to work on the m1/arm64:

        [ 'OS == "mac"', {
          'include_dirs': [
            '/usr/local/include',
            '/opt/homebrew/include'
          ],
          'libraries' : [
            '-L/usr/local/lib',
            '-L/opt/homebrew/lib',
            '-lodbc'
          ],
          'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NAPI_EXPERIMENTAL' ]
        }],

Might be worth a conditional to check the arch and then add /opt/homebrew/include and -L/opt/homebrew/lib.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
markdirishcommented, Feb 8, 2022

Should be live now!

0reactions
pdipaxcommented, Feb 23, 2022

Hi, i get the same error with 2.4.2 release with node 14:

…/src/odbc.h:36:10: fatal error: ‘sql.h’ file not found #include <sql.h> ^~~~~~~ 1 error generated. make: *** [Release/obj.target/odbc/src/odbc.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/pdipax/Documents/Projects/uniongasgpl-api/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12) gyp ERR! System Darwin 21.1.0 gyp ERR! command “/usr/local/bin/node” “/Users/pdipax/Documents/Projects/uniongasgpl-api/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/Users/pdipax/Documents/Projects/uniongasgpl-api/node_modules/odbc/lib/bindings/napi-v6/odbc.node” “–module_name=odbc” “–module_path=/Users/pdipax/Documents/Projects/uniongasgpl-api/node_modules/odbc/lib/bindings/napi-v6” “–napi_version=8” “–node_abi_napi=napi” “–napi_build_version=6” “–node_napi_label=napi-v6” gyp ERR! cwd /Users/pdipax/Documents/Projects/uniongasgpl-api/node_modules/odbc gyp ERR! node -v v14.18.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Apple M1/ARM-64 support to database image · Issue #753
The postgis/postgis:12-2.5-alpine container used for DB is currently not supported by arm64/M1. This issue is a reminder to update it as ...
Read more >
support MacOS M1 (ARM 64 build), bug fixes and more
Open Swoole 4.6. 4 released: support MacOS M1 (ARM 64 build), bug fixes and more. Swoole v4. 6.4 is released with multiple enhancements...
Read more >
what is the difference between mac m1 vs apple silicon vs ...
It depends a lot on Microsoft's software quality and if they'd even support the ARM Mac with a version. They might even just...
Read more >
The road to run everywhere: ARM64 (Apple M1)
OpenDroneMap is now compatible with the Apple M1 (no, not with this arm). The community came together to fund this feat.
Read more >
Is my Mac ARM or x64? - Quora
Does Apple's “Boot Camp” support running the ARM version of Windows on an M1 Mac? ... overlap and where apple supports both platforms...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found