# Building for ppc64le

**URL:** <https://discuss.elastic.co/t/building-for-ppc64le/225290>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 26, 2020, 8:49pm UTC](https://discuss.elastic.co/t/building-for-ppc64le/225290 "2020-03-26T20:49:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugeneswalker](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@eugeneswalker](https://discuss.elastic.co/u/eugeneswalker)\
**Post date:** [March 26, 2020, 8:49pm UTC](https://discuss.elastic.co/t/building-for-ppc64le/225290/1 "2020-03-26T20:49:16Z")

</div>

I'm trying to build the deb package for `Filebeat` for `ppc64le` . I've followed the developer guide and setup a Go environment with Python 3.7, Mage, and Virtualenv on my system. When I navigate to `beats/filebeat` directory and run `PLATFORMS=linux/ppc64le make release` it says:

```auto
2020/03/26 13:41:58 Found Elastic Beats dir at /luke-perm/go/src/github.com/elastic/beats
Generated fields.yml for filebeat to /luke-perm/go/src/github.com/elastic/beats/filebeat/fields.yml
No fields files for module apache2
Generated fields.yml for filebeat to /luke-perm/go/src/github.com/elastic/beats/filebeat/fields.yml
>> Building filebeat.yml for linux/amd64
>> Building filebeat.reference.yml for linux/amd64
>> Building filebeat.docker.yml for linux/amd64
2020/03/26 13:42:03 Found Elastic Beats dir at /luke-perm/go/src/github.com/elastic/beats
Generated fields.yml for filebeat to /luke-perm/go/src/github.com/elastic/beats/filebeat/build/fields/fields.all.yml
>> package: Skipping because the platform list is empty
>> Testing package contents
package ran for 10.335682943s

```

It looks like it is not recognizing the value of PLATFORMS variable...

I also tried using the Docker cross-build container from [https://github.com/elastic/golang-crossbuild](https://github.com/elastic/golang-crossbuild) to build for ppc64le on an x86 machine, but when I run:

```auto
docker run -it --rm \
  -v $GOPATH/src/github.com/elastic/beats:/go/src/github.com/elastic/beats \
  -w /go/src/github.com/elastic/beats/filebeat \
  -e CGO_ENABLED=1 \
  docker.elastic.co/beats-dev/golang-crossbuild:1.13.9-ppc \
  --build-cmd "make release" \
  -p "linux/ppc64le"

```

it complains about `mage` command not existing...

Can anyone tell me what I'm doing wrong? Thanks.

---

<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 23, 2020, 8:49pm UTC](https://discuss.elastic.co/t/building-for-ppc64le/225290/2 "2020-04-23T20:49:18Z")

</div>

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