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

auditbeat packaging: exec: "arm-linux-gnueabihf-gcc": executable file not found #25956

Closed
mtojek opened this issue May 27, 2021 · 3 comments · Fixed by #25987
Closed

auditbeat packaging: exec: "arm-linux-gnueabihf-gcc": executable file not found #25956

mtojek opened this issue May 27, 2021 · 3 comments · Fixed by #25987
Labels
Team:Integrations Label for the Integrations team

Comments

@mtojek
Copy link
Contributor

mtojek commented May 27, 2021

Today I noticed some problems with auditbeat:

[2021-05-27T08:52:01.156Z] /tmp/ccf22dYk.o: In function `main':
[2021-05-27T08:52:01.156Z] god.c:(.text+0x2e0): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T08:52:01.156Z] god.c:(.text+0x279): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T08:52:01.156Z] /tmp/ccNgp5Xk.o: In function `main':
[2021-05-27T08:52:01.156Z] god.c:(.text+0x2a6): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T08:52:01.156Z] god.c:(.text+0x23e): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T08:52:01.423Z] Error: failed to run "arm-linux-gnueabihf-gcc /go/pkg/mod/github.com/tsg/go-daemon@v0.0.0-20200207173439-e704b93fd89b/src/god.c -o build/golang-crossbuild/god-linux-armv7 -lpthread -static: exec: "arm-linux-gnueabihf-gcc": executable file not found in $PATH"
[2021-05-27T08:52:01.423Z] Error: failed building for linux/armv7: exit status 1
[2021-05-27T08:52:01.423Z] failed building for linux/armv7: exit status 1

Spotted in: https://beats-ci.elastic.co/blue/organizations/jenkins/Beats%2Fbeats/detail/PR-25926/3/pipeline/

@mtojek mtojek added the Team:Integrations Label for the Integrations team label May 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@mtojek
Copy link
Contributor Author

mtojek commented May 27, 2021

@elastic/observablt-robots maybe you have any idea what has been changed here?

@kaiyan-sheng
Copy link
Contributor

Same issue is happening in x-pack/metricbeat-packaging-linux - mage package in PR #25924:

[2021-05-27T18:02:45.622Z] Error: failed to run "arm-linux-gnueabihf-gcc /go/pkg/mod/github.com/tsg/go-daemon@v0.0.0-20200207173439-e704b93fd89b/src/god.c -o build/golang-crossbuild/god-linux-armv7 -lpthread -static: exec: "arm-linux-gnueabihf-gcc": executable file not found in $PATH"
[2021-05-27T18:02:45.622Z] Error: failed building for linux/armv7: exit status 1
[2021-05-27T18:02:45.622Z] failed building for linux/armv7: exit status 1
[2021-05-27T18:02:45.890Z] >> golangCrossBuild: Building for darwin/amd64
[2021-05-27T18:02:45.890Z] /tmp/ccRCcBOq.o: In function `main':
[2021-05-27T18:02:45.890Z] god.c:(.text+0x2a6): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T18:02:45.890Z] god.c:(.text+0x23e): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T18:02:45.890Z] >> golangCrossBuild: Building for linux/386
[2021-05-27T18:02:46.512Z] >> buildGoDaemon: Building for linux/arm64
[2021-05-27T18:02:46.778Z] >> Building using: cmd='build/mage-linux-amd64 golangCrossBuild', env=[CC=o64-clang, CXX=o64-clang++, GOARCH=amd64, GOARM=, GOOS=darwin, PLATFORM_ID=darwin-amd64]
[2021-05-27T18:02:47.065Z] >> Building using: cmd='build/mage-linux-amd64 golangCrossBuild', env=[CC=gcc, CXX=g++, GOARCH=386, GOARM=, GOOS=linux, PLATFORM_ID=linux-386]
[2021-05-27T18:02:47.065Z] >> Building using: cmd='build/mage-linux-amd64 buildGoDaemon', env=[CC=aarch64-linux-gnu-gcc, CXX=aarch64-linux-gnu-g++, GOARCH=arm64, GOARM=, GOOS=linux, PLATFORM_ID=linux-arm64]
[2021-05-27T18:02:48.461Z] /tmp/ccvJ1GkS.o: In function `main':
[2021-05-27T18:02:48.461Z] god.c:(.text+0x2ac): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T18:02:48.461Z] god.c:(.text+0x230): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[2021-05-27T18:02:49.418Z] # runtime/cgo
[2021-05-27T18:02:49.418Z] cgo: exec arm-linux-gnueabihf-gcc: exec: "arm-linux-gnueabihf-gcc": executable file not found in $PATH
[2021-05-27T18:04:11.008Z] # crypto/x509
[2021-05-27T18:04:11.008Z] ld: warning: object file (/tmp/go-build972269825/b101/_cgo_main.o) was built for newer OSX version (10.11) than being linked (10.10)
[2021-05-27T18:04:11.008Z] ld: warning: object file (/tmp/go-build972269825/b101/_x001.o) was built for newer OSX version (10.11) than being linked (10.10)
[2021-05-27T18:04:11.008Z] ld: warning: object file (/tmp/go-build972269825/b101/_x002.o) was built for newer OSX version (10.11) than being linked (10.10)
[2021-05-27T18:04:49.805Z] Error: running "go build -o build/golang-crossbuild/metricbeat-linux-armv7 -buildmode pie -ldflags -s -X github.com/elastic/beats/v7/libbeat/version.buildTime=2021-05-27T18:02:45Z -X github.com/elastic/beats/v7/libbeat/version.commit=2d964f3eca2a06a7791297b1d4e681afc1034fae" failed with exit code 2
[2021-05-27T18:04:49.805Z] Error: failed building for linux/armv7: exit status 2
[2021-05-27T18:04:49.805Z] failed building for linux/armv7: exit status 2
[2021-05-27T18:09:56.577Z] # github.com/elastic/beats/v7/x-pack/metricbeat
[2021-05-27T18:09:56.577Z] ld: warning: object file (/tmp/go-link-423449323/000038.o) was built for newer OSX version (10.11) than being linked (10.10)
[2021-05-27T18:09:56.577Z] ld: warning: object file (/tmp/go-link-423449323/000039.o) was built for newer OSX version (10.11) than being linked (10.10)
[2021-05-27T18:10:04.723Z] package ran for 7m35.316574607s
[2021-05-27T18:10:04.723Z] Error: running "docker run --env EXEC_UID=1163 --env EXEC_GID=1164 -v /var/lib/jenkins/workspace/PR-25924-4-342879f8-30a6-417e-9667-bc01884093b7/pkg/mod:/go/pkg/mod:ro --rm --env GOFLAGS=-mod=readonly --env MAGEFILE_VERBOSE= --env MAGEFILE_TIMEOUT= --env SNAPSHOT=true --env DEV=false -v /var/lib/jenkins/workspace/PR-25924-4-342879f8-30a6-417e-9667-bc01884093b7/src/github.com/elastic/beats:/go/src/github.com/elastic/beats -w /go/src/github.com/elastic/beats/x-pack/metricbeat docker.elastic.co/beats-dev/golang-crossbuild:1.15.12-arm --build-cmd build/mage-linux-amd64 buildGoDaemon -p linux/armv7" failed with exit code 1
[2021-05-27T18:10:04.723Z] running "docker run --env EXEC_UID=1163 --env EXEC_GID=1164 -v /var/lib/jenkins/workspace/PR-25924-4-342879f8-30a6-417e-9667-bc01884093b7/pkg/mod:/go/pkg/mod:ro --rm --env GOFLAGS=-mod=readonly --env MAGEFILE_VERBOSE= --env MAGEFILE_TIMEOUT= --env SNAPSHOT=true --env DEV=false -v /var/lib/jenkins/workspace/PR-25924-4-342879f8-30a6-417e-9667-bc01884093b7/src/github.com/elastic/beats:/go/src/github.com/elastic/beats -w /go/src/github.com/elastic/beats/x-pack/metricbeat docker.elastic.co/beats-dev/golang-crossbuild:1.15.12-arm --build-cmd build/mage-linux-amd64 golangCrossBuild -p linux/armv7" failed with exit code 1
script returned exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants