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

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

Closed
itwaseasy opened this issue Apr 28, 2020 · 1 comment
Closed

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

itwaseasy opened this issue Apr 28, 2020 · 1 comment

Comments

@itwaseasy
Copy link

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
@gopherbot gopherbot added this to the Unreleased milestone Apr 28, 2020
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Apr 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants