Skip to content

Instantly share code, notes, and snippets.

@lancejpollard
Created February 17, 2022 05:47
Show Gist options
  • Save lancejpollard/f766256da1f7f8b88784a7b47eed6845 to your computer and use it in GitHub Desktop.
Save lancejpollard/f766256da1f7f8b88784a7b47eed6845 to your computer and use it in GitHub Desktop.
$ npm install --save llvm-node
npm ERR! code 1
npm ERR! path /Users/code/llvm-example.js/node_modules/llvm-node
npm ERR! command failed
npm ERR! command sh -c cmake-js compile
npm ERR! [
npm ERR!   '/usr/local/bin/node',
npm ERR!   '/Users/code/llvm-example.js/node_modules/.bin/cmake-js',
npm ERR!   'compile'
npm ERR! ]
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is AppleClang 13.0.0.13000029
npm ERR! -- The CXX compiler identification is AppleClang 13.0.0.13000029
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libz.tbd (found version "1.2.11")
npm ERR! -- Found LibXml2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libxml2.tbd (found version "2.9.4")
npm ERR! -- Found LLVM 13.0.1
npm ERR! -- Using LLVMConfig.cmake in: /usr/local/opt/llvm/lib/cmake/llvm
npm ERR! -- Configuring done
npm ERR! -- Generating done
npm ERR! -- Build files have been written to: /Users/code/llvm-example.js/node_modules/llvm-node/build
npm ERR! [  2%] Building CXX object CMakeFiles/llvm-node.dir/src/bitcode/bitcode-writer.cc.o
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is AppleClang 13.0.0.13000029
npm ERR! -- The CXX compiler identification is AppleClang 13.0.0.13000029
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libz.tbd (found version "1.2.11")
npm ERR! -- Found LibXml2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libxml2.tbd (found version "2.9.4")
npm ERR! -- Found LLVM 13.0.1
npm ERR! -- Using LLVMConfig.cmake in: /usr/local/opt/llvm/lib/cmake/llvm
npm ERR! -- Configuring done
npm ERR! -- Generating done
npm ERR! -- Build files have been written to: /Users/code/llvm-example.js/node_modules/llvm-node/build
npm ERR! [  2%] Building CXX object CMakeFiles/llvm-node.dir/src/bitcode/bitcode-writer.cc.o
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '/Users/code/llvm-example.js/node_modules/llvm-node',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Unix Makefiles',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=6.3.0',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/code/llvm-example.js/node_modules/llvm-node/build/Release',
npm ERR! info RUN   '-DCMAKE_JS_INC=/Users/lancepollard/.cmake-js/node-x64/v16.5.0/include/node;/Users/code/llvm-example.js/node_modules/nan',
npm ERR! info RUN   '-DCMAKE_JS_SRC=',
npm ERR! info RUN   '-DNODE_RUNTIME=node',
npm ERR! info RUN   '-DNODE_RUNTIMEVERSION=16.5.0',
npm ERR! info RUN   '-DNODE_ARCH=x64',
npm ERR! info RUN   '-DCMAKE_CXX_FLAGS=-D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION',
npm ERR! info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=-undefined dynamic_lookup'
npm ERR! info RUN ]
npm ERR! info CMD BUILD
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '--build',
npm ERR! info RUN   '/Users/code/llvm-example.js/node_modules/llvm-node/build',
npm ERR! info RUN   '--config',
npm ERR! info RUN   'Release'
npm ERR! info RUN ]
npm ERR! /Users/code/llvm-example.js/node_modules/llvm-node/src/bitcode/bitcode-writer.cc:24:77: error: no member named 'F_None' in namespace 'llvm::sys::fs'; did you mean 'OF_None'?
npm ERR!     llvm::raw_fd_ostream byteCodeFile { fileName, errorCode, llvm::sys::fs::F_None };
npm ERR!                                                              ~~~~~~~~~~~~~~~^~~~~~
npm ERR!                                                                             OF_None
npm ERR! /usr/local/opt/llvm/include/llvm/Support/FileSystem.h:757:3: note: 'OF_None' declared here
npm ERR!   OF_None = 0,
npm ERR!   ^
npm ERR! 1 error generated.
npm ERR! make[2]: *** [CMakeFiles/llvm-node.dir/src/bitcode/bitcode-writer.cc.o] Error 1
npm ERR! make[1]: *** [CMakeFiles/llvm-node.dir/all] Error 2
npm ERR! make: *** [all] Error 2
npm ERR! info REP Build has been failed, trying to do a full rebuild.
npm ERR! info CMD CLEAN
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '-E',
npm ERR! info RUN   'remove_directory',
npm ERR! info RUN   '/Users/code/llvm-example.js/node_modules/llvm-node/build'
npm ERR! info RUN ]
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '/Users/code/llvm-example.js/node_modules/llvm-node',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Unix Makefiles',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=6.3.0',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/code/llvm-example.js/node_modules/llvm-node/build/Release',
npm ERR! info RUN   '-DCMAKE_JS_INC=/Users/lancepollard/.cmake-js/node-x64/v16.5.0/include/node;/Users/code/llvm-example.js/node_modules/nan',
npm ERR! info RUN   '-DCMAKE_JS_SRC=',
npm ERR! info RUN   '-DNODE_RUNTIME=node',
npm ERR! info RUN   '-DNODE_RUNTIMEVERSION=16.5.0',
npm ERR! info RUN   '-DNODE_ARCH=x64',
npm ERR! info RUN   '-DCMAKE_CXX_FLAGS=-D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION',
npm ERR! info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=-undefined dynamic_lookup'
npm ERR! info RUN ]
npm ERR! info CMD BUILD
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '--build',
npm ERR! info RUN   '/Users/code/llvm-example.js/node_modules/llvm-node/build',
npm ERR! info RUN   '--config',
npm ERR! info RUN   'Release'
npm ERR! info RUN ]
npm ERR! /Users/code/llvm-example.js/node_modules/llvm-node/src/bitcode/bitcode-writer.cc:24:77: error: no member named 'F_None' in namespace 'llvm::sys::fs'; did you mean 'OF_None'?
npm ERR!     llvm::raw_fd_ostream byteCodeFile { fileName, errorCode, llvm::sys::fs::F_None };
npm ERR!                                                              ~~~~~~~~~~~~~~~^~~~~~
npm ERR!                                                                             OF_None
npm ERR! /usr/local/opt/llvm/include/llvm/Support/FileSystem.h:757:3: note: 'OF_None' declared here
npm ERR!   OF_None = 0,
npm ERR!   ^
npm ERR! 1 error generated.
npm ERR! make[2]: *** [CMakeFiles/llvm-node.dir/src/bitcode/bitcode-writer.cc.o] Error 1
npm ERR! make[1]: *** [CMakeFiles/llvm-node.dir/all] Error 2
npm ERR! make: *** [all] Error 2
npm ERR! ERR! OMG Process terminated: 2

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/lancepollard/.npm/_logs/2022-02-17T05_45_06_931Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment