Skip to content

Instantly share code, notes, and snippets.

@ADKaster
Created July 7, 2024 09:21
Show Gist options
  • Save ADKaster/8fd7397b25324ebc831fadace67c37f2 to your computer and use it in GitHub Desktop.
Save ADKaster/8fd7397b25324ebc831fadace67c37f2 to your computer and use it in GitHub Desktop.
-----> Building on the Heroku-22 stack
-----> Using buildpack: https://github.com/jakeg/heroku-buildpack-bun
-----> https://github.com/jakeg/heroku-buildpack-bun app detected
#=#=# bun was installed successfully to /tmp/build_c22ecfd0/.heroku/bin/bun
Manually add the directory to ~/.bash_profile (or similar):
export BUN_INSTALL="/tmp/build_c22ecfd0/.heroku"
export PATH=$BUN_INSTALL/bin:$PATH
To get started, run:
bun --help
Installing dependencies...
bun install v1.1.18 (5a0b9352)
gyp info it worked if it ends with ok
gyp info using node-gyp@10.1.0
gyp info using node@22.3.0 | linux | x64
gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/dist/v22.3.0/node-v22.3.0-headers.tar.gz
gyp http 200 https://nodejs.org/dist/v22.3.0/node-v22.3.0-headers.tar.gz
gyp http GET https://nodejs.org/dist/v22.3.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/dist/v22.3.0/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/tmp/bunx-29272-node-gyp@latest/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/tmp/build_c22ecfd0/node_modules/zlib-sync/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/tmp/bunx-29272-node-gyp@latest/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/app/.cache/node-gyp/22.3.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/app/.cache/node-gyp/22.3.0',
gyp info spawn args '-Dnode_gyp_dir=/tmp/bunx-29272-node-gyp@latest/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/app/.cache/node-gyp/22.3.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/tmp/build_c22ecfd0/node_modules/zlib-sync',
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 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp: name 'enable_lto' is not defined while evaluating condition 'enable_lto=="true"' in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at <anonymous> (/tmp/bunx-29272-node-gyp@latest/node_modules/node-gyp/lib/configure.js:297:22)
gyp ERR! stack at emit (node:events:180:48)
gyp ERR! stack at #handleOnExit (node:child_process:591:16)
gyp ERR! stack at processTicksAndRejections (:12:39)
gyp ERR! System Linux 5.15.0-1063-aws
gyp ERR! command "/tmp/build_c22ecfd0/.heroku/bin/bun" "/tmp/bunx-29272-node-gyp@latest/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /tmp/build_c22ecfd0/node_modules/zlib-sync
gyp ERR! node -v v22.3.0
gyp ERR! node-gyp -v v10.1.0
gyp ERR! not ok
error: install script from "zlib-sync" exited with 1
! Push rejected, failed to compile https://github.com/jakeg/heroku-buildpack-bun app.
! Push failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment