Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ollama/0.5.3 package update #37232

Closed
wants to merge 1 commit into from

Conversation

octo-sts[bot]
Copy link
Contributor

@octo-sts octo-sts bot commented Dec 17, 2024

Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr labels Dec 17, 2024
@octo-sts octo-sts bot mentioned this pull request Dec 17, 2024
Copy link
Contributor Author

octo-sts bot commented Dec 17, 2024

Gen AI suggestions to solve the build error:

Based on the build error and package configuration, I'll analyze and provide specific fixes:

• Detected Error: No explicit error message shown, but the build appears to stop after dependency installation

• Error Category: Configuration/Build

• Failure Point: The build environment setup completes, but the actual build steps likely fail silently

• Root Cause Analysis: The issue appears to be related to Go configuration, specifically:

  1. Missing CGO dependencies for static linking
  2. Incorrect Go version specification
  3. Missing system libraries needed for CGO builds

• Suggested Fix:

  1. Update the environment section to include required CGO dependencies:
environment:
  contents:
    packages:
      - build-base
      - busybox
      - ca-certificates-bundle
      - cmake
      - go
      - gcc
      - libc-dev
      - linux-headers
      - musl-dev
  1. Specify the Go version explicitly:
package:
  name: ollama
  version: 0.5.3
  epoch: 0
  description: Get up and running with Llama 2 and other large language models locally
  copyright:
    - license: MIT
  depends:
    runtime:
      - go-1.21

environment:
  contents:
    packages:
      - go-1.21

• Explanation:

  • Ollama requires CGO for building with static linking
  • The current error pattern suggests missing build dependencies for CGO
  • Static linking requires additional system libraries and headers
  • The Go version should be explicitly specified for reproducible builds

• Additional Notes:

  • Consider adding CGO_ENABLED=1 to environment variables
  • The static build flags may need adjustment for Wolfi's glibc environment
  • Recent Ollama versions have specific build requirements for newer features

• References:

The fix ensures all necessary dependencies for CGO and static linking are available while maintaining Wolfi's security and build practices.

Copy link
Contributor Author

octo-sts bot commented Dec 18, 2024

superseded by #37372

@octo-sts octo-sts bot closed this Dec 18, 2024
@octo-sts octo-sts bot deleted the wolfictl-b6ee148f-96f5-47ba-b490-7468b3abca83 branch December 19, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated pr request-version-update request for a newer version of a package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant