go.mod, build: upgrade c-kzg-4844#27907
Conversation
| github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= | ||
| github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= | ||
| github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= | ||
| github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= |
There was a problem hiding this comment.
How can c-kzg affect go-conntrack? Are you sure this is correct?
| // CKZG by default is not portable, append the necessary build flags to make | ||
| // it not rely on modern CPU instructions and enable linking against | ||
| tool.Env = append(tool.Env, "CGO_CFLAGS=-D__BLST_PORTABLE__") | ||
| tool.Env = append(tool.Env, "CGO_CFLAGS=-std=c99 -O2 -D__BLST_PORTABLE__") |
There was a problem hiding this comment.
I'm adding this change as an attempt to fix this build failure: https://launchpadlibrarian.net/681424348/buildlog_ubuntu-trusty-amd64.ethereum-unstable_1.13.0+build28791+trusty_BUILDING.txt.gz
|
Not sure why, but changing |
|
Just FYI, a new version of c-kzg-4844 (v0.3.1) was just released: |
| // CKZG by default is not portable, append the necessary build flags to make | ||
| // it not rely on modern CPU instructions and enable linking against | ||
| tool.Env = append(tool.Env, "CGO_CFLAGS=-D__BLST_PORTABLE__") | ||
| tool.Env = append(tool.Env, "CGO_CFLAGS=-std=c11 -O2 -D__BLST_PORTABLE__") |
There was a problem hiding this comment.
You need to surround the values in quotation marks.
| tool.Env = append(tool.Env, "CGO_CFLAGS=-std=c11 -O2 -D__BLST_PORTABLE__") | |
| tool.Env = append(tool.Env, "CGO_CFLAGS=\"-std=c11 -O2 -D__BLST_PORTABLE__\"") |
There was a problem hiding this comment.
I don't think it's required here. The process environment is a slice of strings and everything after the first = is the variable value. The env slice is not interpreted by shell.
There was a problem hiding this comment.
Oh gotcha. I didn't know that. You're right.
|
Submitted a different approach for fixing the Launchpad build now, just disable ckzg on Ubuntu Trusty where the build fails. |
This upgrades to the latest release of ckzg, and also attempts to fix some blst-related build errors that occur on launchpad.net.
This upgrades to the latest release of ckzg, and also attempts to fix some blst-related build errors that occur on launchpad.net.
This reverts commit 136f846.
This reverts commit 136f846.
This upgrades to the latest release of ckzg, and also attempts to fix some blst-related
build errors that occur on launchpad.net.