Giter Site home page Giter Site logo

GCC version in Makefile about cores-veer-eh1 HOT 4 CLOSED

qian-gu avatar qian-gu commented on June 11, 2024
GCC version in Makefile

from cores-veer-eh1.

Comments (4)

agrobman avatar agrobman commented on June 11, 2024

this warning means that that make can't run RISCV GCC. Or you don't have GCC installed or it's name isn't riscv64-unknown-elf-gcc or it is not in the search path. You need to have the RISCV tools, supporting multilib option.
(GCC can be built to support various RISCV extensions both 32 and 64 bit versions. Makefile calls the GCC with appropriate ISA switches, suitable for EH1 .
You can use the gcc with different prefix , supplying GCC_PREFIX= to the make command.

from cores-veer-eh1.

qian-gu avatar qian-gu commented on June 11, 2024

this warning means that that make can't run RISCV GCC. Or you don't have GCC installed or it's name isn't riscv64-unknown-elf-gcc or it is not in the search path. You need to have the RISCV tools, supporting multilib option.
(GCC can be built to support various RISCV extensions both 32 and 64 bit versions. Makefile calls the GCC with appropriate ISA switches, suitable for EH1 .
You can use the gcc with different prefix , supplying GCC_PREFIX= to the make command.

I did have compiled RV32GC GCC and added it to my path in .zshrc file,

./configure --prefix=/opt/rv32gc  --with-arch=rv32gc --with-abi=ilp32d
make

The result is riscv32-unknow-elf-gcc. My question is that the 64bit version gcc is not compatible with any RV32 core, so it should be

GCC_PREFIX=riscv32-unknow-elf

in the makefile.

By the way, does it is mandatory to supporting multilib option?

from cores-veer-eh1.

agrobman avatar agrobman commented on June 11, 2024

Nothing is mandatory - you are using this code with no any guarantee ( read license statements)- it's open source project and you are getting it for free. But we advice to build 64 bit multilib RISCV tools version, which can be used with any flavor of RISCV processor. Regardless the said, you can modify everything in your local DB.

from cores-veer-eh1.

qian-gu avatar qian-gu commented on June 11, 2024

I got it. Although the compiled result of multilib version gcc starts with prefix riscv64-unknow-elf, but it does support any RV32 or RV64 cores by using different -march, -abi options, so there are not any compatible problems. Thanks for your explanation.

from cores-veer-eh1.

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.