Skip to content

Provide prebuilds for lmdbΒ #7146

@aminya

Description

@aminya

πŸ› bug report

lmdb fails to build from the source on Windows.

node_modules/.pnpm/lmdb-store@1.6.7/node_modules/lmdb-store: Running install script, failed in 1.3s
.../node_modules/lmdb-store install$ node-gyp-build
β”‚ C:\Users\aminy\project\node_modules\.pnpm\lmdb-store@1.6.7\node_modules\lmdb-store>if not defined npm_confi
β”‚ gyp info it worked if it ends with ok
β”‚ gyp info using node-gyp@8.3.0
β”‚ gyp info using node@17.0.0 | win32 | x64
β”‚ gyp info find Python using Python version 3.8.10 found at "C:\Python38\python.exe"
β”‚ gyp info find VS using VS2019 (16.11.31702.278) found at:
β”‚ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview"
β”‚ gyp info find VS run with --verbose for detailed information
β”‚ gyp info spawn C:\Python38\python.exe
β”‚ gyp info spawn args [
β”‚ gyp info spawn args   'C:\\Users\\aminy\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.18.0\\node_modules\
β”‚ gyp info spawn args   'binding.gyp',
β”‚ gyp info spawn args   '-f',
β”‚ gyp info spawn args   'msvs',
β”‚ gyp info spawn args   '-I',
β”‚ gyp info spawn args   'C:\\Users\\aminy\\project\\node_modules\\.pnpm\\lmdb-store@1.6.7\\node_modules\\l
β”‚ gyp info spawn args   '-I',
β”‚ gyp info spawn args   'C:\\Users\\aminy\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.18.0\\node_modules\
β”‚ gyp info spawn args   '-I',
β”‚ gyp info spawn args   'C:\\Users\\aminy\\AppData\\Local\\node-gyp\\Cache\\12.18.3\\include\\node\\common.gypi',
β”‚ gyp info spawn args   '-Dlibrary=shared_library',
β”‚ gyp info spawn args   '-Dvisibility=default',
β”‚ gyp info spawn args   '-Dnode_root_dir=C:\\Users\\aminy\\AppData\\Local\\node-gyp\\Cache\\12.18.3',
β”‚ gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\aminy\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.18.0
β”‚ gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\aminy\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\12.18.3\\\\<(target_arc
β”‚ gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\aminy\\project\\node_modules\\.pnpm\\lmdb-store@1.6.
β”‚ gyp info spawn args   '-Dnode_engine=v8',
β”‚ gyp info spawn args   '--depth=.',
β”‚ gyp info spawn args   '--no-parallel',
β”‚ gyp info spawn args   '--generator-output',
β”‚ gyp info spawn args   'C:\\Users\\aminy\\project\\node_modules\\.pnpm\\lmdb-store@1.6.7\\node_modules\\l
β”‚ gyp info spawn args   '-Goutput_dir=.'
β”‚ gyp info spawn args ]
β”‚ gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load bin
β”‚ gyp ERR! configure error
β”‚ gyp ERR! stack Error: `gyp` failed with exit code: 1
β”‚ gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\aminy\AppData\Roaming\npm\pnpm-global\5\node_modules\.pnpm\pnpm@6.18.0\no
β”‚ 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 Windows_NT 10.0.22000
β”‚ gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\aminy\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\
β”‚ gyp ERR! cwd C:\Users\aminy\project\node_modules\.pnpm\lmdb-store@1.6.7\node_modules\lmdb-store
β”‚ gyp ERR! node -v v17.0.0
β”‚ gyp ERR! node-gyp -v v8.3.0
β”‚ gyp ERR! not ok
└─ Failed in 1.3s

πŸŽ› Configuration (.babelrc, package.json, cli command)

N/A

πŸ€” Expected Behavior

I should not need to build lmdb from the source.

😯 Current Behavior

lmdb is built from the source, and it fails to build.

πŸ’ Possible Solution

Make a PR to lmdb and provide prebuilds.

πŸ”¦ Context

πŸ’» Code Sample

🌍 Your Environment

Software Version(s)
Parcel 2.0.0
Node 17.0.0
npm/Yarn pnpm 6.18.0
Operating System Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions