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

Master breaks docker builds #368

Open
kevburnsjr opened this issue Feb 3, 2023 · 0 comments
Open

Master breaks docker builds #368

kevburnsjr opened this issue Feb 3, 2023 · 0 comments

Comments

@kevburnsjr
Copy link

The latest commit to master upgrades to C++ 17 which requires gcc11, which is not included in the latest official dockerhub golang containers (gcc10).

FROM golang:1.20 as builder
WORKDIR /
COPY go.* .
RUN go mod download
COPY . .
RUN go build -ldflags="-s -w -extldflags \"-static\"" -tags="netgo" -o binaryname /

This used to work but now produces the following error:

#12 13.18 /usr/bin/ld: /go/pkg/mod/rogchap.com/v8go@v0.8.1-0.20230130145145-02e1763d0176/deps/linux_x86_64/libv8.a(pgo.o): in function `v8::internal::wasm::DeserializeTypeFeedback(v8::internal::wasm::Decoder&, v8::internal::wasm::WasmModule*)':
#12 13.18 pgo.cc:(.text._ZN2v88internal4wasm23DeserializeTypeFeedbackERNS1_7DecoderEPNS1_10WasmModuleE+0x868): undefined reference to `std::__throw_bad_array_new_length()'

We're reverting to v0.8.0 since we haven't identified any features in 10.9.x that would justify the added operational complexity.

Would it be more prudent to wait until the official golang containers support gcc11 before requiring it?

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

1 participant