Skip to content

Unable to build any projects on Ubuntu 24.04 #69375

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

Closed
3mp8r3 opened this issue Sep 10, 2024 · 2 comments
Closed

Unable to build any projects on Ubuntu 24.04 #69375

3mp8r3 opened this issue Sep 10, 2024 · 2 comments

Comments

@3mp8r3
Copy link

3mp8r3 commented Sep 10, 2024

Go version

go version go1.23.1 linux/amd64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/miro/.cache/go-build'
GOENV='/home/miro/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/miro/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/miro/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/snap/go/10711'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/snap/go/10711/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.1'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/miro/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/miro/packer-builder-arm-image/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3084240163=/tmp/go-build -gno-record-gcc-switches'
uname -sr: Linux 6.8.0-41-generic
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble
/lib/x86_64-linux-gnu/libc.so.6: GNU C Library (Ubuntu GLIBC 2.39-0ubuntu8.3) stable release version 2.39.
gdb --version: GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git

What did you do?

When I try to go build on any project I have those errors

In file included from gcc_context.c:7:
libcgo.h:97:15: error: unnecessary parentheses in declaration of ‘_cgo_get_context_function’ [-Werror=parentheses]
97 | extern void ((_cgo_get_context_function(void)))(struct context_arg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libcgo.h:97:15: note: remove parentheses
97 | extern void ((_cgo_get_context_function(void)))(struct context_arg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| - -
cc1plus: all warnings being treated as errors

What did you see happen?

n/a

What did you expect to see?

n/a

@seankhliao
Copy link
Member

Duplicate of #69356

@seankhliao seankhliao marked this as a duplicate of #69356 Sep 10, 2024
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants