Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dhrystone Floating Extension Problem ? #260

Open
drkome opened this issue May 14, 2024 · 0 comments
Open

Dhrystone Floating Extension Problem ? #260

drkome opened this issue May 14, 2024 · 0 comments

Comments

@drkome
Copy link

drkome commented May 14, 2024

hello first,
When I examined your dhrystone commands, I saw that there were float operations in the dhry1 file. I think you used float operation to prevent overflow but I'm running into problems while compiling. How did you prevent this? Or how will my processor perform the float operation when I use this? When I look at it, picorv32 does not have float operations either. Which is the important point here.

/opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/libgcc.a(divsf3.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: failed to merge target specific data of file /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/libgcc.a(divsf3.o) /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/libgcc.a(_clzsi2.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: failed to merge target specific data of file /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/libgcc.a(_clzsi2.o) /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/libgcc.a(_clz.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: failed to merge target specific data of file /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/libgcc.a(_clz.o) /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: warning: dhrystone.riscv has a LOAD segment with RWX permissions /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: dhrystone.riscv-dhry_1.o: in function .L0 ':
dhry_1.c:(.text.startup.main+0x750): undefined reference to __floatsisf' /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: dhry_1.c:(.text.startup.main+0x770): undefined reference to __mulsf3'
/opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: dhry_1.c:(.text.startup.main+0x7b8): undefined reference to __fixsfsi' /opt/riscv/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: dhry_1.c:(.text.startup.main+0x7e0): undefined reference to __fixsfsi'
collect2: error: ld returned 1 exit status
make: *** [Makefile:19: dhrystone] Error 1`

I generally deal with RTL design and I don't know much about compilers. I have struggled with this for a long time, but this problem cannot be solved without removing the float operation. I would be happy if you help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant