# Is there a gnu toolchain that can work natively on the RISC-V environment?

**URL:** <https://forums.sifive.com/t/is-there-a-gnu-toolchain-that-can-work-natively-on-the-risc-v-environment/6057>\
**Category:** HiFive Unmatched\
**Created:** [March 2, 2023, 8:49am UTC](https://forums.sifive.com/t/is-there-a-gnu-toolchain-that-can-work-natively-on-the-risc-v-environment/6057 "2023-03-02T08:49:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BichengYang](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@BichengYang](https://forums.sifive.com/u/BichengYang)\
**Post date:** [March 2, 2023, 8:49am UTC](https://forums.sifive.com/t/is-there-a-gnu-toolchain-that-can-work-natively-on-the-risc-v-environment/6057/1 "2023-03-02T08:49:58Z")

</div>

Hi there, I am wondering whether there is a GNU toolchain that can work natively on the RISC-V environment, rather than a cross-compiler such as `riscv64-*-linux/elf` that works on x86.

---

<div class="post-metadata">

**Author:** ![macro](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@macro](https://forums.sifive.com/u/macro)\
**Post date:** [March 2, 2023, 2:31pm UTC](https://forums.sifive.com/t/is-there-a-gnu-toolchain-that-can-work-natively-on-the-risc-v-environment/6057/2 "2023-03-02T14:31:01Z")

</div>

There’s one supplied with the board already:

```auto
$ uname -m
riscv64
$ gcc -dumpmachine
riscv64-oe-linux
$ 

```

Other distributions come with one too. It may not be the fastest way to build your software though. For small programs it should do.
