Skip to content

upstream-opm-builder image fails due to missing linux/limits.h header #1689

@jaywcarman

Description

@jaywcarman

Building the upstream-opm-builder image fails due to missing linux/limits.h header:

$  git rev-parse --short HEAD && podman build -f upstream-opm-builder.Dockerfile .
adcaa843
[1/2] STEP 1/10: FROM golang:1.23-alpine AS builder
[1/2] STEP 2/10: RUN apk update && apk add ca-certificates
~snip~
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1
# github.com/containers/storage/pkg/unshare
unshare.c:21:10: fatal error: linux/limits.h: No such file or directory
   21 | #include <linux/limits.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:55: bin/opm] Error 1
Error: building at STEP "RUN make static": while running runtime: exit status 2

This issue has already been reported (#1466) and fixed (#1467) for upstream-build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions