# Calling metricbeat Makefile issues

**URL:** https://discuss.elastic.co/t/calling-metricbeat-makefile-issues/233949
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 22, 2020, 6:46pm UTC](https://discuss.elastic.co/t/calling-metricbeat-makefile-issues/233949 "2020-05-22T18:46:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ruhlowr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruhlowr/32/68919_2.png) [@ruhlowr](https://discuss.elastic.co/u/ruhlowr)
#### Post date: [May 22, 2020, 6:46pm UTC](https://discuss.elastic.co/t/calling-metricbeat-makefile-issues/233949/1 "2020-05-22T18:46:48Z")

</div>

I am new to ealsticsearch and metricbeat, and GO/MAGE. I've successfully compiled filebeat and am working on metricbeat on a Power9 ppc64le system. The following make commands work successfully:

```auto
make check
make fmt

```

When I issue the make build command, the message states "there is nothing to be done". Other targets states that there are no rule to make target.

And when I issue the make command with no targets, it returns the following.

```auto
[root@r1cn07 metricbeat]# pwd
/root/bld/beats/src/github.com/elastic/beats/metricbeat
[root@r1cn07 metricbeat]# make
Use mage rather than make. Here are the available mage targets:
Targets:
  addLicenseHeaders adds license headers
  build builds the Beat binary.
  buildGoDaemon builds the go-daemon binary (use crossBuildGoDaemon).
  check formats code, updates generated content, check for common errors, and checks for any modified files.
  checkLicenseHeaders checks license headers
  clean cleans all generated files and build artifacts.
  collectAll generates the docs and the fields.

```

I've been searching for documentation that will help me build metricbeat on ppc64le, and a little more info on how to execute the Makefiles and the format for parameters. I could use some help with this.  
Thanks.

---

<div class="post-metadata">

### Author: ![Alex\_Kristiansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_kristiansen/32/46086_2.png) [@Alex\_Kristiansen](https://discuss.elastic.co/u/Alex_Kristiansen)
#### Post date: [May 29, 2020, 8:27pm UTC](https://discuss.elastic.co/t/calling-metricbeat-makefile-issues/233949/2 "2020-05-29T20:27:50Z")

</div>

@ruhlowr,

Try running `mage package`.  
I would strongly recommend you use the `PLATFORMS` environment variable to constrain the build targets. For example: `export PLATFORMS=linux`

---

<div class="post-metadata">

### Author: ![ruhlowr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruhlowr/32/68919_2.png) [@ruhlowr](https://discuss.elastic.co/u/ruhlowr)
#### Post date: [May 29, 2020, 9:56pm UTC](https://discuss.elastic.co/t/calling-metricbeat-makefile-issues/233949/3 "2020-05-29T21:56:39Z")

</div>

Thanks Alex, I set PLATFORMS to linux and issued the mage package, but that tried to compile linux/x86, linux/arm64, and linux/amd64, and failed. I then executed "mage build" and that worked.

---

<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: [June 26, 2020, 9:56pm UTC](https://discuss.elastic.co/t/calling-metricbeat-makefile-issues/233949/4 "2020-06-26T21:56:49Z")

</div>

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