Hugo v0.151.0 fails to build - apparent GLIBC version incompatability
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
## Describe the bug
Azure Static Web Apps is unable to build a relatively current version of Hugo. Hugo version 0.151.0 fails to build. The following error is observed:
```
Using Hugo version:
/tmp/oryx/platforms/hugo/0.151.0/hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
/tmp/oryx/platforms/hugo/0.151.0/hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
/tmp/oryx/platforms/hugo/0.151.0/hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
/tmp/oryx/platforms/hugo/0.151.0/hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
---End of Oryx build logs---
Oryx has failed to build the solution.
```
## To Reproduce
Steps to reproduce the behavior:
1. Create a Hugo v0.151.0 site
1. Attempt to build the site using the `Azure/static-web-apps-deploy@v1` action in GitHub workflow
1. See error
### Observed Error
DeploymentId: 183c2a97-4dd0-4a3e-aa90-2a7e17a890ea
Try to validate location at: '/github/workspace'.
App Directory Location: '/' was found.
Try to validate location at: '/github/workspace/swa-db-connections'.
Looking for event info
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
---Oryx build logs---
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20250107.1+ef3fb2f9c490a4fbb1f76b5746cd4ba2ff0409f4, Commit: ef3fb2f9c490a4fbb1f76b5746cd4ba2ff0409f4, ReleaseTagName: 20250107.1
Build Operation ID: 2336693cddce7165
OS Type : bullseye
Image Type : githubactions
Detecting platforms...
Detected following platforms:
hugo: 0.151.0
Version '0.151.0' of platform 'hugo' is not installed. Generating script to install it...
Detected the following frameworks: hugo
Source directory : /github/workspace
Destination directory: /bin/staticsites/183c2a97-4dd0-4a3e-aa90-2a7e17a890ea-swa-oryx/app
Downloading and extracting hugo version 0.151.0 to /tmp/oryx/platforms/hugo/0.151.0...
Downloaded in 0 sec(s).
Extracting contents...
Done in 1 sec(s).
Installing golang tooling and language...
1.15.8
go1.15.8.linux-amd64.tar.gz
retry 0
Executing pre-build command...
Finished executing pre-build command.
Using Hugo version:
/tmp/oryx/platforms/hugo/0.151.0/hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
/tmp/oryx/platforms/hugo/0.151.0/hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
/tmp/oryx/platforms/hugo/0.151.0/hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
/tmp/oryx/platforms/hugo/0.151.0/hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /tmp/oryx/platforms/hugo/0.151.0/hugo)
---End of Oryx build logs---
Oryx has failed to build the solution.
For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting
### GitHub action
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.XXXXX}}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
app_location: "/" # App source code path
api_location: "api" # Api source code path - optional
app_artifact_location: "public" # Built app content directory - optional
###### End of Repository/Build Configurations ######
env:
HUGO_VERSION: 0.151.0
PRE_BUILD_COMMAND: git config --global --add safe.directory /github/workspace
## Expected behavior
Azure Static Web Apps (and Oryx by relation) should build a relatively current version of Hugo.
## Additional context
Using `ubuntu-latest` GitHub actions runner.
## Related
- https://github.com/microsoft/Oryx/issues/2162
- https://github.com/gohugoio/hugo/issues/14034
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.