# Compiling filebeat on ARM64 : go1.12.1/pkg/tool/linux\_arm64/link: running gcc failed: exit status 1

**URL:** <https://discuss.elastic.co/t/compiling-filebeat-on-arm64-go1-12-1-pkg-tool-linux-arm64-link-running-gcc-failed-exit-status-1/174296>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 28, 2019, 10:06am UTC](https://discuss.elastic.co/t/compiling-filebeat-on-arm64-go1-12-1-pkg-tool-linux-arm64-link-running-gcc-failed-exit-status-1/174296 "2019-03-28T10:06:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayer/32/42164_2.png) [@mayer](https://discuss.elastic.co/u/mayer)\
**Post date:** [March 28, 2019, 10:06am UTC](https://discuss.elastic.co/t/compiling-filebeat-on-arm64-go1-12-1-pkg-tool-linux-arm64-link-running-gcc-failed-exit-status-1/174296/1 "2019-03-28T10:06:37Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 29, 2019, 3:49pm UTC](https://discuss.elastic.co/t/compiling-filebeat-on-arm64-go1-12-1-pkg-tool-linux-arm64-link-running-gcc-failed-exit-status-1/174296/2 "2019-03-29T15:49:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 26, 2019, 3:49pm UTC](https://discuss.elastic.co/t/compiling-filebeat-on-arm64-go1-12-1-pkg-tool-linux-arm64-link-running-gcc-failed-exit-status-1/174296/3 "2019-04-26T15:49:08Z")

</div>

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