altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

[Bug] GLIBC_2.35 not found or missing native binding

Open jontsai opened this issue 8 months ago • 2 comments

Description

On a fresh install and startup, I am not able to get into the CLI.

Steps to Reproduce

  1. Install npm install -g altimate-code
  2. Run altimate

Expected Behavior

I should be able to get into the CLI, or if I am missing dependencies, it should fail gracefully and show a helpful error message, instead of the stack trace.

Actual Behavior

On a fresh install, got an error on startup.

$ npm install -g altimate-code

added 7 packages in 26s
npm notice
npm notice New major version of npm available! 10.5.0 -> 11.12.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.0
npm notice Run npm install -g [email protected] to update!
npm notice
$ altimate
558 |   }
559 | }
560 |
561 | if (!nativeBinding) {
562 |   if (loadErrors.length > 0) {
563 |     throw new Error(
                    ^
error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
      at <anonymous> (/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js:563:15)

283 |           return require('./altimate-core.linux-x64-gnu.node')
284 |         } catch (e) {
285 |           loadErrors.push(e)
286 |         }
287 |         try {
288 |           const binding = require('@altimateai/altimate-core-linux-x64-gnu')
                      ^
error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core-linux-x64-gnu/altimate-core.linux-x64-gnu.node)
 cause: error: Cannot find module './altimate-core.linux-x64-gnu.node' from '/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js',
  code: "ERR_DLOPEN_FAILED"

      at requireNative (/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js:288:17)
      at <anonymous> (/home/jontsai/.nvm/versions/node/v20.12.2/lib/node_modules/altimate-code/node_modules/@altimateai/altimate-core/index.js:526:17)

Bun v1.3.10 (Linux x64)

Environment

  • OS: Ubuntu 20.04.6 LTS
  • CLI version:
  • Python version:
  • Node version: 20.12.2

jontsai avatar Mar 19 '26 20:03 jontsai

Hi @jontsai — thanks for reporting this! We've shipped a fix in PR #324 that makes the CLI degrade gracefully instead of crashing, so you'll be able to use most features (warehouse connections, schema indexing, dbt, finops) even without the native module.

To help us decide whether to also support older GLIBC natively (which would mean shipping a separate binary or switching compilation targets), a few questions:

  1. Is upgrading an option? Are you able to move to Ubuntu 22.04+, or is 20.04 a hard requirement for your environment (e.g. company policy, shared server, CI pipeline)?

  2. What features do you primarily use? Are you mainly using Altimate for SQL analysis (lint, transpile, lineage), or more for dbt workflows / warehouse connections / schema management?

  3. Would Docker work as a workaround? Running altimate inside a container with a newer base image would bypass the GLIBC issue. Is that practical for your setup?

  4. How many machines are affected? Is this just your dev machine, or do you have a fleet/CI environment on Ubuntu 20.04?

This will help us prioritize whether to invest in a GLIBC 2.31-compatible build vs. just gracefully degrading. Thanks!

anandgupta42 avatar Mar 20 '26 16:03 anandgupta42

Thanks for submitting this, @jontsai! We're also observing this error on python:3.12-bullseye (uses Debian 11 (bullseye))

waligob avatar Mar 20 '26 16:03 waligob