Skip to content

add risc-v toolchain#39

Merged
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030:add_riscv_toolchain
Apr 4, 2018
Merged

add risc-v toolchain#39
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030:add_riscv_toolchain

Conversation

@kaspar030
Copy link
Copy Markdown
Contributor

This PR adds the RISC-V toolchain.

@kaspar030
Copy link
Copy Markdown
Contributor Author

Got a problem:

riscv-none-embed-ar: error while loading shared libraries: libfl.so.2: cannot open shared object file: No such file or directory

... but ubuntu xenial's libfl is some black magic hack to libfl_pic.a ?

@kaspar030 kaspar030 changed the title WIP add risc-v toolchain add risc-v toolchain Feb 20, 2018
@kaspar030
Copy link
Copy Markdown
Contributor Author

Got a problem:

Fixed it through injecting Arch Linux' libfl.so.2.0.0 ...

@kaspar030 kaspar030 requested a review from jnohlgard February 20, 2018 13:14
wget -q https://github.com/gnu-mcu-eclipse/riscv-none-gcc/releases/download/v7.2.0-2-20180110/gnu-mcu-eclipse-riscv-none-gcc-7.2.0-2-20180111-2230-centos64.tgz -O- \
| tar -C /opt -xz

# HACK download arch linux' flex dynamic library
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is ugly... Hopefully bionic beaver will solve the issue.
Or are there other options?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there no RISC-V toolchain for Ubuntu?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean, pre-packaged? Didn't find one.
The eclipse one used in this PR claims "tested on Debian, Ubuntu, ...". :/

@kaspar030
Copy link
Copy Markdown
Contributor Author

This is blocking RISC-V-support. I propose going with the hack for now and revisiting when migrating to bionic beaver.

@jnohlgard
Copy link
Copy Markdown
Member

Right, I don't mind

@kaspar030
Copy link
Copy Markdown
Contributor Author

Let's go.

@kaspar030 kaspar030 force-pushed the add_riscv_toolchain branch from 415572c to 68bce9c Compare April 4, 2018 12:33
@kaspar030
Copy link
Copy Markdown
Contributor Author

  • squashed, waiting for travis

@kaspar030
Copy link
Copy Markdown
Contributor Author

&go

@kaspar030 kaspar030 merged commit 78d6c96 into RIOT-OS:master Apr 4, 2018
@kaspar030 kaspar030 deleted the add_riscv_toolchain branch April 4, 2018 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants