Giter Site home page Giter Site logo

Comments (13)

AbdulrahmanKH7 avatar AbdulrahmanKH7 commented on May 4, 2024 1

I think I understand the problem now; I created an opt folder while there is one in the computer directory. I will try again with this folder and see.

from neorv32.

AbdulrahmanKH7 avatar AbdulrahmanKH7 commented on May 4, 2024 1

It worked! Thanks a lot, sorry I am new to Linux so I needed sometime =D.
Kindest regards!

from neorv32.

stnolting avatar stnolting commented on May 4, 2024

Hey there!
Thank you very much for the nice words! :)

Regarding your issue:
I think there might be a problem with your toolchain installation. Please try running riscv32-unknown-elf-gcc -v in your console. If this fails, the binaries of the toolchain cannot be found. Do you see riscv32-unknown-elf-gcc (and all the other binaries) when executing ls /opt/riscv/bin?

from neorv32.

AbdulrahmanKH7 avatar AbdulrahmanKH7 commented on May 4, 2024

Yes Isee them but I need to add this ~ before the path: ls ~/opt/riscv/bin

from neorv32.

stnolting avatar stnolting commented on May 4, 2024

I need to add this ~ before the path: ls ~/opt/riscv/bin

I'm no Linux guru, but doesn't that mean opt/riscv/bin is in your home folder (~ = $HOME)?

You could try modifying your PATH variable again: export PATH=$PATH:~/opt/riscv/bin
Or copy ~/opt/riscv/bin to /opt/riscv/bin.

from neorv32.

stnolting avatar stnolting commented on May 4, 2024

I think I understand the problem now; I created an opt folder while there is one in the computer directory. I will try again with this folder and see.

I'm no Linux guru, but doesn't that mean opt/riscv/bin is in your home folder (~ = $HOME)?

Seems like we had perfect timing with our responses! 😄 👍

from neorv32.

AbdulrahmanKH7 avatar AbdulrahmanKH7 commented on May 4, 2024

Yes we had =D
I moved the folder to /opt/riscv/bin but still the same problem..

from neorv32.

stnolting avatar stnolting commented on May 4, 2024

Do you now see riscv32-unknown-elf-gcc when running ls /opt/riscv/bin (no tilde)?

If you cannot run riscv32-unknown-elf-gcc -v your PATH variable might be "corrupted". Try again in a new, clean shell (export ... and riscv32-unknown-elf-gcc -v).

from neorv32.

AbdulrahmanKH7 avatar AbdulrahmanKH7 commented on May 4, 2024

This is what I receive when I run riscv32-unknown-elf-gcc -v

Using built-in specs.
COLLECT_GCC=riscv32-unknown-elf-gcc
COLLECT_LTO_WRAPPER=/opt/riscv/bin/../libexec/gcc/riscv32-unknown-elf/10.2.0/lto-wrapper
Target: riscv32-unknown-elf
Configured with: /home/stnolting/tmp/riscv-gnu-toolchain/riscv-gcc/configure --target=riscv32-unknown-elf --prefix=/tmp/riscv --disable-shared --disable-threads --enable-languages=c,c++ --with-system-zlib --enable-tls --with-newlib --with-sysroot=/tmp/riscv/riscv32-unknown-elf --with-native-system-header-dir=/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --disable-tm-clone-registry --src=.././riscv-gcc --disable-multilib --with-abi=ilp32 --with-arch=rv32i --with-tune=rocket 'CFLAGS_FOR_TARGET=-Os -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-Os -mcmodel=medlow'
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (GCC)

from neorv32.

stnolting avatar stnolting commented on May 4, 2024

That looks good! 👍
Now neorv32/sw/example/blink_led$ make check should work as well.

from neorv32.

AbdulrahmanKH7 avatar AbdulrahmanKH7 commented on May 4, 2024

Still not working, maybe because my example path is:
/neorv32/sw/example/blink_led$
with a slash at the beginning?

from neorv32.

stnolting avatar stnolting commented on May 4, 2024

You just need to navigate (using cd) into that folder and run make check there.

from neorv32.

stnolting avatar stnolting commented on May 4, 2024

Good to hear! 👍

Thanks a lot, sorry I am new to Linux so I needed sometime =D.

No worries! Linux (and especially VMs) can be tricky sometimes. 😉

from neorv32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.