-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed as not planned
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Description
What version of Go are you using (go version
)?
go version go1.19 darwin/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="on" GOARCH="amd64" GOBIN="" GOCACHE="/Users/tochka/Library/Caches/go-build" GOENV="/Users/tochka/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/tochka/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/tochka/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GOVCS="" GOVERSION="go1.19" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/tochka/GolandProjects/seaweedfs/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/zv/tqq_jjhx3sb04kjw8565qmf00000gn/T/go-build1384732046=/tmp/go-build -gno-record-gcc-switches -fno-common" ```
What did you do?
- git clone https://github.com/seaweedfs/seaweedfs.git
- cd ../weed; CGO_ENABLED=1 GOOS=linux go build -race -tags "" -ldflags "-extldflags -static "
What did you expect to see?
make dev
export SWCOMMIT=fa2ccd8e
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT="
cd ../weed; CGO_ENABLED=0 GOOS=linux go build -tags "" -ldflags "-extldflags -static "; mv weed ../docker/
docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local .
What did you see instead?
make dev_race
export SWCOMMIT=fa2ccd8e
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT="
cd ../weed; CGO_ENABLED=1 GOOS=linux go build -race -tags "" -ldflags "-extldflags -static "; mv weed ../docker/
# runtime/cgo
linux_syscall.c:67:13: error: implicit declaration of function 'setresgid' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
linux_syscall.c:67:13: note: did you mean 'setregid'?
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/unistd.h:593:6: note: 'setregid' declared here
linux_syscall.c:73:13: error: implicit declaration of function 'setresuid' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
linux_syscall.c:73:13: note: did you mean 'setreuid'?
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/unistd.h:595:6: note: 'setreuid' declared here
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.