pfeerick / ArduinoCore-bouffalo-packages

GNU Lesser General Public License v2.1
0 stars 0 forks source link

Linux toolchain execution permissions #1

Open pfeerick opened 3 years ago

pfeerick commented 3 years ago

Exeution permission are not set, thus executable cannot run OOTB

fork/exec /home/pfeerick/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/bin/riscv64-unknown-elf-g++: permission denied
Error compiling for board PINE64 PineCone.

Probably need to use a tar package instead

pfeerick commented 3 years ago

In total, on linux it looks like

    riscv64-unknown-elf/0.0.1/bin/ [all of]
    riscv64-unknown-elf/0.0.1/riscv64-unknown-elf/bin/ [all of]
    riscv64-unknown-elf/0.0.1/libexec/gcc/riscv64-unknown-elf/8.3.0/ [{cc1,cc1plus,collect2,lto1,lto-wrapper}]

e.g.

chmod +x /home/pfeerick/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/bin/*
chmod +x /home/pfeerick/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/riscv64-unknown-elf/bin/*
chmod +x /home/pfeerick/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/libexec/gcc/riscv64-unknown-elf/8.3.0/{cc1,cc1plus,collect2,lto1,lto-wrapper}