Comments (10)
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.
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.
how can i build rv64ima compiler ?????
from riscv-tests.
@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.
@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.
I okey thanks, today I´m going to tried this build. If something happend I will post it. Thanks
from riscv-tests.
@aswaterman
Ah. Good. But that means that multilib should be the default.
from riscv-tests.
@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.
@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.
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)
- how to use debug tools during simulation stage? HOT 5
- How to configure 'expose_csrs' in a jtag-chain structure with multiple taps HOT 2
- Bitmanip? HOT 2
- Question: rv32mi-p-breakpoint *** FAILED *** (tohost = 2)
- Test binaries are not reproducible HOT 2
- debug test failed to read memory HOT 2
- gitlab CI targeting OpenOCD/gdb tests is broken in riscv-tests repository HOT 2
- help me analysing test pass or fail HOT 1
- `--with-xlen=32` builds are failing HOT 2
- `__riscv_flen` not defined, causing `rv64mi-p-csr` to fail HOT 3
- strange behaviors in div.S
- TriggerDmode case fail,when accessing 8-9 trigger HOT 2
- why the RVTEST_PASS and RVTEST_FAIL is difference between P and V
- FSQRT.S HOT 4
- dhrystone.c:20:1: error: return type defaults to 'int' [-Wimplicit-int] HOT 3
- Debug: Spike tests generate distracting/unnecessary IDCODE warnings/errors HOT 3
- Debug: Spike `--dm-auth` causes unnecessary/distracting authentication warnings/errors HOT 4
- [Debug] why are Spike target ISA/architecture specifiers inconsistent? HOT 2
- How to set the pm flag
- rv32mi-p-breakpoint fails without trigger support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riscv-tests.