dmtrKovalenko / odiff

The fastest pixel-by-pixel image visual difference tool in the world.
MIT License
2.07k stars 76 forks source link

"GLIBC_2.35 not found" error in AWS CodeBuild pipeline #114

Open vergjor opened 1 week ago

vergjor commented 1 week ago

I have an automated test project in Cypress, where I use the odiff-bin package for verifying images in some of our tests. I also have a setup for running these tests on AWS CodeBuild, where we have the following environment setup:

The issue is that when those specific tests are running on the pipeline, the following error is thrown:

From Node.js Internals:
  Error: /codebuild/output/src3891/src/github.com/.../node_modules/odiff-bin/bin/odiff.exe: /lib64/libm.so.6: version `GLIBC_2.35' not found (required by /codebuild/output/src3891/src/github.com/.../node_modules/odiff-bin/bin/odiff.exe)

      at ChildProcess.<anonymous> (/codebuild/output/src3891/src/github.com/.../node_modules/odiff-bin/odiff.js:169:13)
      at ChildProcess.emit (node:events:531:35)
      at ChildProcess.emit (node:domain:488:12)
      at maybeClose (node:internal/child_process:1105:16)
      at Socket.<anonymous> (node:internal/child_process:457:11)
      at Socket.emit (node:events:519:28)
      at Socket.emit (node:domain:488:12)
      at Pipe.<anonymous> (node:net:338:12)

Since the aws/codebuild/amazonlinux2-x86_64-standard:5.0 image is based on Amazon Linux 2023, from what I can see on DockerHub the current version of glibc of that image is 2.34:

image

I am unsure on how to resolve this issue... any advice?

dmtrKovalenko commented 1 week ago

This is strange because odiff provides a statically linked binary there shouldn't be any dependencies on glibc