Compiling filebeat on ARM64 : go1.12.1/pkg/tool/linux_arm64/link: running gcc failed: exit status 1

Dear Community,

I tried to compile and install filebeat on aarch64 GNU/Linux ( ARM 64bit ) manually as it is not available as package on this platform.
I upgrade language GO from version 1.7 to the latest available "go version go1.12.1 linux/arm64"

Following the instructions at "https://github.com/linux-on-ibm-z/docs/wiki/Building-Beats" I run into the follwoing issue executing "make"

root# make
go build -i
# github.com/elastic/beats/filebeat
go1.12.1/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
/usr/bin/ld.gold: internal error in global, at ../../gold/aarch64.cc:4973
collect2: error: ld returned 1 exit status

../libbeat/scripts/Makefile:95: recipe for target 'filebeat' failed
make: *** [filebeat] Error 2

Any help how to continue would be appreciated.

// Hans

This is the linker failing. Have you tried to update or replace the gold linker. This doesn't look related to Beats, but Go + CGo + system linker related. Have tried to build other projects requiring CGO?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.