Home
Support Forums

/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by hugo)

Building my site is failing at the moment. I think it’s to do with upgrading Hugo to 0.88.0 and Go to 1.17.

Full log below

3:49:48 PM: Build ready to start
3:49:50 PM: build-image version: c6001ed68662a13e5deb24abec2b46058c58248a
3:49:50 PM: build-image tag: v3.9.0
3:49:50 PM: buildbot version: 1ed4041128c7c024b4c4b72e2ad30a0740c570a7
3:49:50 PM: Fetching cached dependencies
3:49:50 PM: Starting to download cache of 290.0MB
3:49:53 PM: Finished downloading cache in 3.099460651s
3:49:53 PM: Starting to extract cache
3:50:02 PM: Finished extracting cache in 8.203761633s
3:50:02 PM: Finished fetching cache in 11.360845359s
3:50:02 PM: Starting to prepare the repo for build
3:50:06 PM: Preparing Git Reference refs/heads/master
3:50:09 PM: Parsing package.json dependencies
3:50:10 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'hugo --gc --minify' versus 'hugo' in the Netlify UI
3:50:10 PM: Starting build script
3:50:10 PM: Installing dependencies
3:50:10 PM: Python version set to 2.7
3:50:10 PM: Started restoring cached node version
3:50:13 PM: Finished restoring cached node version
3:50:45 PM: v8.17.0 is already installed.
3:50:46 PM: Now using node v8.17.0 (npm v6.13.4)
3:50:46 PM: Started restoring cached build plugins
3:50:46 PM: Finished restoring cached build plugins
3:50:46 PM: Attempting ruby version 2.3.6, read from environment
3:50:47 PM: Started restoring cached ruby version
3:50:47 PM: Finished restoring cached ruby version
3:50:49 PM: Using ruby version 2.3.6
3:50:50 PM: Successfully installed bundler-2.2.26
3:50:50 PM: 1 gem installed
3:50:50 PM: Using PHP version 5.6
3:50:50 PM: Installing Hugo 0.88.0
3:50:51 PM: hugo: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by hugo)hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by hugo)Started restoring cached go cache
3:50:52 PM: Finished restoring cached go cache
3:50:52 PM: Installing Go version 1.17
3:51:08 PM: unset GOOS;
3:51:08 PM: unset GOARCH;
3:51:08 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.17.linux.amd64';
3:51:08 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.17.linux.amd64/bin:${PATH}";
3:51:08 PM: go version >&2;
3:51:08 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.17.linux.amd64.env"
3:51:08 PM: go version go1.17 linux/amd64
3:51:08 PM: Installing missing commands
3:51:08 PM: Verify run directory
3:51:09 PM: ​
3:51:09 PM: ────────────────────────────────────────────────────────────────
3:51:09 PM:   Netlify Build                                                 
3:51:09 PM: ────────────────────────────────────────────────────────────────
3:51:09 PM: ​
3:51:09 PM: ❯ Version
3:51:09 PM:   @netlify/build 18.7.3
3:51:09 PM: ​
3:51:09 PM: ❯ Flags
3:51:09 PM:   baseRelDir: false
3:51:09 PM:   buildId: 6131b77cc5c34a00087f7f33
3:51:09 PM:   deployId: 6131b77cc5c34a00087f7f35
3:51:09 PM: ​
3:51:09 PM: ❯ Current directory
3:51:09 PM:   /opt/build/repo
3:51:09 PM: ​
3:51:09 PM: ❯ Config file
3:51:09 PM:   /opt/build/repo/netlify.toml
3:51:09 PM: ​
3:51:09 PM: ❯ Context
3:51:09 PM:   production
3:51:09 PM: ​
3:51:09 PM: ────────────────────────────────────────────────────────────────
3:51:09 PM:   1. build.command from netlify.toml                            
3:51:09 PM: ────────────────────────────────────────────────────────────────
3:51:09 PM: ​
3:51:09 PM: $ hugo --gc --minify
3:51:09 PM: hugo: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by hugo)hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by hugo)​
3:51:09 PM: ────────────────────────────────────────────────────────────────
3:51:09 PM:   "build.command" failed                                        
3:51:09 PM: ────────────────────────────────────────────────────────────────
3:51:09 PM: ​
3:51:09 PM:   Error message
3:51:09 PM:   Command failed with exit code 1: hugo --gc --minify
3:51:09 PM: ​
3:51:09 PM:   Error location
3:51:09 PM:   In build.command from netlify.toml:
3:51:09 PM:   hugo --gc --minify
3:51:09 PM: ​
3:51:09 PM:   Resolved config
3:51:09 PM:   build:
3:51:09 PM:     command: hugo --gc --minify
3:51:09 PM:     commandOrigin: config
3:51:09 PM:     environment:
3:51:09 PM:       - HUGO_VERSION
3:51:09 PM:       - HUGO_ENV
3:51:09 PM:       - HUGO_ENABLEGITINFO
3:51:09 PM:     publish: /opt/build/repo/public
3:51:09 PM:     publishOrigin: config
3:51:10 PM: Caching artifacts
3:51:10 PM: Started saving build plugins
3:51:10 PM: Finished saving build plugins
3:51:10 PM: Started saving pip cache
3:51:10 PM: Finished saving pip cache
3:51:10 PM: Started saving emacs cask dependencies
3:51:10 PM: Finished saving emacs cask dependencies
3:51:10 PM: Started saving maven dependencies
3:51:10 PM: Finished saving maven dependencies
3:51:10 PM: Started saving boot dependencies
3:51:10 PM: Finished saving boot dependencies
3:51:10 PM: Started saving rust rustup cache
3:51:10 PM: Finished saving rust rustup cache
3:51:10 PM: Started saving go dependencies
3:51:13 PM: Finished saving go dependencies
3:51:13 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:51:13 PM: Creating deploy upload records
3:51:13 PM: Failing build: Failed to build site
3:51:13 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
3:51:13 PM: Finished processing build request in 1m23.207151752s

Hi @funkydan2

Appears you are using Xenial build image. Could you try updating to the Focal build image and see if that works. Site settings > Build & deploy > Continuous Deployment > Build image selection

1 Like

Yes, I wondered whether there was an updated image. However, that’s failing in a different way:

4:13:31 PM: Build ready to start
4:13:33 PM: build-image version: fa439ad1ab9393b2c0d449d8d7c033927683f4b0
4:13:33 PM: build-image tag: v4.3.0
4:13:33 PM: buildbot version: 1ed4041128c7c024b4c4b72e2ad30a0740c570a7
4:13:33 PM: Fetching cached dependencies
4:13:33 PM: Failed to fetch cache, continuing with build
4:13:33 PM: Starting to prepare the repo for build
4:13:34 PM: No cached dependencies found. Cloning fresh repo
4:13:34 PM: git clone git@bitbucket.org:funkydan2/pastor-tech-site
4:13:35 PM: Preparing Git Reference refs/heads/master
4:13:36 PM: Parsing package.json dependencies
4:13:36 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'hugo --gc --minify' versus 'hugo' in the Netlify UI
4:13:36 PM: Starting build script
4:13:36 PM: Installing dependencies
4:13:36 PM: Python version set to 2.7
4:13:37 PM: Downloading and installing node v8.17.0...
4:13:37 PM: Downloading https://nodejs.org/dist/v8.17.0/node-v8.17.0-linux-x64.tar.xz...
4:13:37 PM: Computing checksum with sha256sum
4:13:37 PM: Checksums matched!
4:13:39 PM: Now using node v8.17.0 (npm v6.13.4)
4:13:39 PM: Started restoring cached build plugins
4:13:39 PM: Finished restoring cached build plugins
4:13:39 PM: Attempting ruby version 2.3.6, read from environment
4:13:40 PM: Required ruby-2.3.6 is not installed - installing.
4:13:41 PM: Searching for binary rubies, this might take some time.
4:13:41 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.3.6.tar.bz2
4:13:41 PM: Checking requirements for ubuntu.
4:13:41 PM: Missing required packages: libssl1.0-dev
4:13:41 PM: RVM autolibs is now configured with mode '2' =>
4:13:41 PM:   'Allow RVM to use package manager if found, fail if dependencies are missing. This is default.',
4:13:41 PM: please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
4:13:41 PM: or visit https://rvm.io/rvm/autolibs for more information.
4:13:41 PM: Found undesired packages: libssl-dev
4:13:41 PM: RVM autolibs is now configured with mode '2' =>
4:13:41 PM:   'Allow RVM to use package manager if found, fail if dependencies are missing. This is default.',
4:13:41 PM: please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
4:13:41 PM: or visit https://rvm.io/rvm/autolibs for more information.
4:13:41 PM: Requirements installation failed with status: 1.
4:13:41 PM: ruby-2.3.6 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.3.6
4:13:41 PM: Required ruby-2.3.6 is not installed - installing.
4:13:42 PM: Searching for binary rubies, this might take some time.
4:13:42 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.3.6.tar.bz2
4:13:42 PM: Checking requirements for ubuntu.
4:13:42 PM: Missing required packages: libssl1.0-dev
4:13:42 PM: RVM autolibs is now configured with mode '2' =>
4:13:42 PM:   'Allow RVM to use package manager if found, fail if dependencies are missing. This is default.',
4:13:42 PM: please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
4:13:42 PM: or visit https://rvm.io/rvm/autolibs for more information.
4:13:42 PM: Found undesired packages: libssl-dev
4:13:42 PM: RVM autolibs is now configured with mode '2' =>
4:13:42 PM:   'Allow RVM to use package manager if found, fail if dependencies are missing. This is default.',
4:13:42 PM: please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
4:13:42 PM: or visit https://rvm.io/rvm/autolibs for more information.
4:13:42 PM: Requirements installation failed with status: 1.
4:13:43 PM: ruby-2.3.6 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
4:13:43 PM: ruby-2.3.6 - #generating default wrappers.................
4:13:43 PM: Error running 'run_gem_wrappers regenerate',
4:13:43 PM: please read /opt/buildhome/.rvm/log/1630649623_ruby-2.3.6/gemset.wrappers.default.log
4:13:43 PM: Using /opt/buildhome/.rvm/gems/ruby-2.3.6
4:13:43 PM: Warning! Executable 'ruby' missing, something went wrong with this ruby installation!
4:13:43 PM: Warning! Executable 'gem' missing, something went wrong with this ruby installation!
4:13:43 PM: Warning! Executable 'irb' missing, something went wrong with this ruby installation!
4:13:43 PM: Using ruby version 2.3.6
4:13:43 PM: /opt/buildhome/.rvm/scripts/override_gem: line 19: gem: command not found
4:13:43 PM: Error installing bundler
4:13:43 PM: Build was terminated: Build script returned non-zero exit code: 1
4:13:43 PM: Creating deploy upload records
4:13:43 PM: Failing build: Failed to build site
4:13:43 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
4:13:43 PM: Finished processing build request in 10.128584508s

Fixed by re-linking my repository as per Build fails with Focal image due to unwanted old Ruby - #4 by hillary

Node v8? Is this set by you or your build environment? By default Focal uses Node v16.

Not a hugo expert by any stretch, but given hugo v0.88.0 was released less than a day ago, I suggest there are some compatibility issues.

I think that might be to do with what I discovered in the thread linked above. Netlify pins tools to the version of your first build (or they used to). This can be overridden either through environment variables or relinking repositories.

Just checked the build that worked:

4:17:30 PM: Now using node v16.8.0 (npm v7.21.0)