Skip to content

x/sys: can't generate files using unix/mkall.sh and Docker on Linux #38724

Closed

Description

@itwaseasy

What version of Go are you using (go version)?

go version go1.14.2 linux/amd64

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

go env Output
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/pugachev/.cache/go-build"
GOENV="/home/pugachev/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/pugachev/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/5646"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/5646/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/pugachev/work/golang_xsys/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build874890676=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I've tried to build x/sys from sources on Linux, but failed. The problem is that current Dockerfile uses ubuntu:19.04, but it doesn't supported since January 2020, and now even repo is unavailable.

Newer 19.10 doesn't work either due to lack of gcc-mips* packages. But latest 20.04 works well, more or less out of the box. I'd like to submit a patch for this, if nobody objects.

What did you expect to see?

Normal build process from start to the end.

What did you see instead?

 ---> c88ac1f841b7
Step 2/16 : RUN apt-get update && apt-get install -y  --no-install-recommends         ca-certificates         curl         git         rsync     && apt-get clean     && rm -rf /var/lib/apt/lists/*
 ---> Running in 8c8c189f3d59
Ign:1 http://archive.ubuntu.com/ubuntu disco InRelease
Ign:2 http://archive.ubuntu.com/ubuntu disco-updates InRelease
Ign:3 http://archive.ubuntu.com/ubuntu disco-backports InRelease
Err:4 http://archive.ubuntu.com/ubuntu disco Release
  404  Not Found [IP: 91.189.88.142 80]
Err:5 http://archive.ubuntu.com/ubuntu disco-updates Release
  404  Not Found [IP: 91.189.88.142 80]
Err:6 http://archive.ubuntu.com/ubuntu disco-backports Release
  404  Not Found [IP: 91.189.88.142 80]
Ign:7 http://security.ubuntu.com/ubuntu disco-security InRelease
Err:8 http://security.ubuntu.com/ubuntu disco-security Release
  404  Not Found [IP: 91.189.91.38 80]
Reading package lists...
E: The repository 'http://archive.ubuntu.com/ubuntu disco Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu disco-updates Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu disco-backports Release' does not have a Release file.
E: The repository 'http://security.ubuntu.com/ubuntu disco-security Release' does not have a Release file.
The command '/bin/sh -c apt-get update && apt-get install -y  --no-install-recommends         ca-certificates         curl         git         rsync     && apt-get clean     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Unable to find image 'generate:linux' locally

Activity

  1. added this to the Unreleased milestone on Apr 28, 2020
  2. gopherbot commented on Apr 28, 2020

    @gopherbot
    Contributor

    Change https://golang.org/cl/230577 mentions this issue: x/sys: switch to Ubuntu 20.04 in Dockerfile to fix build issues on Linux

  3. locked and limited conversation to collaborators on Apr 28, 2021
  4. added a commit that references this issue on Jun 7, 2024
    593003d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions