Git Product home page Git Product logo

Comments (10)

aswaterman avatar aswaterman commented on August 17, 2024

libgcc is supposed to contain definitions of __addsf3 and __mulsf3, but only if the compiler was built to to assume there is no hardware floating-point. It sort of looks like you're using an rv64imafd compiler, but trying to build rv64ima code.

from riscv-tests.

jhcloos avatar jhcloos commented on August 17, 2024

Any riscv gcc/binutils ought to be able to target any rv isa.

The current ones seem to be rv32 or rv64 (or rv128?) only, but w/in those sets they should be able to compile to each of the possible sets of extensions.

If the current config for gcc fails to support that, that ought to be handled as a bug.

from riscv-tests.

esolera avatar esolera commented on August 17, 2024

how can i build rv64ima compiler ?????

from riscv-tests.

aswaterman avatar aswaterman commented on August 17, 2024

@jhcloos It's not a bug. You need to enable multilibs for that to really work, because you need to generate a libgcc for each ISA. If you enable multilibs, it works as you'd hope. This is the same for other architectures, too.

from riscv-tests.

aswaterman avatar aswaterman commented on August 17, 2024

@esolera you can try adding --with-arch=rv64ima --with-abi=lp64 to the configure command line when you build riscv-gnu-toolchain.

from riscv-tests.

esolera avatar esolera commented on August 17, 2024

I okey thanks, today I´m going to tried this build. If something happend I will post it. Thanks

from riscv-tests.

jhcloos avatar jhcloos commented on August 17, 2024

@aswaterman
Ah. Good. But that means that multilib should be the default.

from riscv-tests.

esolera avatar esolera commented on August 17, 2024

@aswaterman The compilation was well. Now I have all the test in RV64IMA but a build a rocket with this instruction set. The rocket build adding this configuration in config file in system:

class Default64sinFDsinC extends Config( new WithoutFPU ++ new WithoutCompressed ++ new DefaultConfig )

The build run well. When a tried to run my benchmark fir test, I got this error :

./emulator-freechips.rocketchip.system-Default64sinFDsinC +max-cycles=100000000 +verbose output/fir.riscv 3>&1 1>&2 2>&3 | /home/edgar/Desktop/RISCV_FOLDERS/rocket-chip/riscv-tools/bin/spike-dasm > output/fir.riscv.out && [ $PIPESTATUS -eq 0 ]
Makefile:40: recipe for target 'output/fir.riscv.out' failed
make: *** [output/fir.riscv.out] Error 1

In the next link are all log for building the test, the log for run fir.c in RV64IMA rocket and also the link have the fir.c test. I think maybe is a memory problem with the scratchpad but I'm not sure how I can make it bigger. This is the link, if you need something else please say me.

https://www.dropbox.com/sh/cvqezzxmr9x3dq9/AACohIhNah3tRQqWZZiUPVjpa?dl=0

from riscv-tests.

aswaterman avatar aswaterman commented on August 17, 2024

@jhcloos it's really up to the distro. For example, the default on Ubuntu for x86-64 is to not ship the IA-32 multilibs these days...

from riscv-tests.

aswaterman avatar aswaterman commented on August 17, 2024

An indirect jump at pc=80001fc4 (line 161816 in the log) is going to a bad address. Unfortunately I don't have time to look into it further, but you can look at the objdump for your program and try to see why things are going wrong.

from riscv-tests.

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.