Comments (3)
Compile the compiler with following config
./configure --prefix=$RISCV --enable-multilib
make -j4
You will have riscv64-unknown-elf-gcc installed to which if you pass -march=rv32i -mabi=ilp32
will generate a binary complying to rv32i or for other options you can refer to https://www.sifive.com/blog/2017/08/14/all-aboard-part-1-compiler-args/ blog post
from chipyard.
I fix the issue, thanks.
from chipyard.
Hello @codelec,
Seems that this issue persists even with --enable-multilib.....
/home/aignacio/riscv_multilib/bin/riscv64-unknown-elf-gcc -march=rv32imac -mabi=ilp32 -mcmodel=medany -std=gnu99 -O2 -fno-common -fno-builtin-printf -Wall -save-temps=obj -Iinc -c src/rocc_ha.c -o obj/rocc_ha.o
Linking...output/mm.baremetal
/home/aignacio/riscv_multilib/bin/riscv64-unknown-elf-gcc -Tld/link.ld -static -nostdlib -nostartfiles -lgcc -march=rv32imac -mabi=ilp32 -mcmodel=medany -std=gnu99 -O2 -fno-common -fno-builtin-printf -Wall -Iinc obj/crt.o obj/syscalls.o obj/mm.o obj/rocc_ha.o -o output/mm.baremetal
/home/aignacio/riscv_multilib/lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld: obj/syscalls.o: in function `.L48':
syscalls.c:(.text+0x102): undefined reference to `__umoddi3'
/home/aignacio/riscv_multilib/lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld: obj/syscalls.o: in function `.L59':
syscalls.c:(.text+0x122): undefined reference to `__udivdi3'
/home/aignacio/riscv_multilib/lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld: syscalls.c:(.text+0x132): undefined reference to `__umoddi3'
collect2: error: ld returned 1 exit status
Makefile:32: recipe for target 'output/mm.baremetal' failed
make: *** [output/mm.baremetal] Error 1
Update: It was a silly error in makefiles, I forgot to put LDFLAGS after the compiled objects, so it now finds the correspondent functions.
from chipyard.
Related Issues (20)
- Terminal output becomes weird when running build-setup.sh HOT 2
- Error while running Torture test HOT 6
- Sky 130 commercial tutorial breaks with latest Hammer version
- jitter > 300 constrain, because the vivado route has critical warning , so I have to set the frq to 10MHz
- Dead link in documentation HOT 2
- Revert order-only dependency change from #1758
- ./scripts/build-setup.sh esp-tools terminated at step 3
- Update doc for GCD changes HOT 3
- How can I generate a reset_vector io at DigitalTop module? HOT 20
- ./build-setup.sh should check for existence of the .conda-env before attempting to recreate it HOT 2
- Obsolete documentation.
- JTAG on VCU118 HOT 11
- GitHub action chipyard-run-tests.yml error HOT 6
- Taken Out the reset_vector pin out of the TestHarness Top module File
- How can I add another AXI MMIO port in rocket chip environment?
- Use statically linked CIRCT in Chipyard HOT 1
- make debug fails in verilator HOT 2
- 'Debugging with JTAG' section incomplete in docs HOT 2
- "Hammer Mentor Plugin" does not exist HOT 2
- How to print the cycle along with the instruction being executed at that cycle in RTL simulation.
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 chipyard.