# Discussion: if possible to add risc-v support for android gcc toolchain

**URL:** <https://forums.sifive.com/t/discussion-if-possible-to-add-risc-v-support-for-android-gcc-toolchain/4056>\
**Category:** General\
**Created:** [September 22, 2020, 2:13am UTC](https://forums.sifive.com/t/discussion-if-possible-to-add-risc-v-support-for-android-gcc-toolchain/4056 "2020-09-22T02:13:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unicornx](https://avatars.discourse-cdn.com/v4/letter/u/a88e4f/32.png) [@unicornx](https://forums.sifive.com/u/unicornx)\
**Post date:** [September 22, 2020, 2:13am UTC](https://forums.sifive.com/t/discussion-if-possible-to-add-risc-v-support-for-android-gcc-toolchain/4056/1 "2020-09-22T02:13:52Z")

</div>

hello,

I am trying to port android gcc to support riscv. I see the latest android cross gcc version is 4.9. I wonder if possible to do porting work with this version, because I know current riscv-gnu-toolchain has moved to 10.x.  
Any other people has the same plan as me? Welcome to join me 🙂

---

<div class="post-metadata">

**Author:** ![jimw](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@jimw](https://forums.sifive.com/u/jimw)\
**Post date:** [September 22, 2020, 4:23am UTC](https://forums.sifive.com/t/discussion-if-possible-to-add-risc-v-support-for-android-gcc-toolchain/4056/2 "2020-09-22T04:23:42Z")

</div>

Note that android switched from gcc to llvm a while ago, so I don’t think that a gcc based toolchain will be very useful. RISC-V support was added to FSF GCC as of gcc-7.1. You can’t find older gcc versions unless you use non-upstream sources that support older RISC-V architecture versions, which are unlikely to be useful, and unlikely to be stable.  
[https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC\_4\_9\_DEPRECATION.md#:~:text=Android’s%20GCC%204.9%20has%20been,as%20per%20the%20below%20timeline](https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md#:~:text=Android's%20GCC%204.9%20has%20been,as%20per%20the%20below%20timeline).

There is a group making good progress on a Javascript v8 port. I think they have gotten far enough along that they will start upstreaming patches soon. This includes people from Futurewei (Huawei), Chinese Academy of Sciences, and other places.

> **[Sign in - Google Accounts](https://accounts.google.com/ServiceLogin?passive=1209600&osid=1&continue=https:%2F%2Fgroups.google.com%2Fu%2F1%2Fa%2Fgroups.riscv.org%2Fg%2Fsw-dev%2Fc%2FmKkVpecoQyU%2Fm%2FJEQVogsEBwAJ&followup=https:%2F%2Fgroups.google.com%2Fu%2F1%2Fa%2Fgroups.riscv.org%2Fg%2Fsw-dev%2Fc%2FmKkVpecoQyU%2Fm%2FJEQVogsEBwAJ)**

On top of that, there is also a group working on the rest of an aosp port. I think it is mostly the same people as the v8 port.

> **[Sign in - Google Accounts](https://accounts.google.com/ServiceLogin?passive=1209600&osid=1&continue=https:%2F%2Fgroups.google.com%2Fu%2F1%2Fa%2Fgroups.riscv.org%2Fg%2Fsw-dev%2Fc%2Fu9iP7A2Wkc8&followup=https:%2F%2Fgroups.google.com%2Fu%2F1%2Fa%2Fgroups.riscv.org%2Fg%2Fsw-dev%2Fc%2Fu9iP7A2Wkc8)**

If you want to chat with these folks, I would recommend the RISC-V International sw-dev mailing list. Though it looks like you already posted there, so I’m not sure why you are asking here. The SiFive forums are mostly for discsussing SiFive products, and SiFive is not directly involved in any of this work at this time.

---

<div class="post-metadata">

**Author:** ![unicornx](https://avatars.discourse-cdn.com/v4/letter/u/a88e4f/32.png) [@unicornx](https://forums.sifive.com/u/unicornx)\
**Post date:** [September 22, 2020, 5:38am UTC](https://forums.sifive.com/t/discussion-if-possible-to-add-risc-v-support-for-android-gcc-toolchain/4056/3 "2020-09-22T05:38:04Z")

</div>

Thanks， Jim.  
Ok, I will note this later to avoid sending duplicated questions. Sorry for this.
