Open jordankrim opened 3 months ago
I think my conda env was not correct. Now I can compile both the chipyard and then created the verilatored binary but I cannot seem to compile the Baremetal tests (i.e. creating the elf etc files like risc_wrapper.elf): I get this:
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc: In function 'int cep_exchAtomicTest(int, uint64_t, uint64_t, uint64_t, uint64_t, int)':
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc:120:36: warning: invalid failure memory model 'memory_order_acq_rel' for 'bool __atomic_compare_exchange_8(volatile void, void*, long unsigned int, bool, int, int)' [-Winvalid-memory-model]
120 | if (__atomic_compare_exchange_n(ptr, &myCurSig, partSig, 0, ATOMIC_ACQ_REL, ATOMIC_ACQ_REL)) { // next
| ~~~~~^~~~~~~~~~~~~~
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc:120:36: note: valid failure models are 'memory_order_relaxed', 'memory_order_seq_cst', 'memory_order_acquire', 'memory_order_consume'
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc: Assembler messages:
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc:272: Error: unrecognized opcode fence.i', extension
zifencei' required
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc:272: Error: unrecognized opcode fence.i', extension
zifencei' required
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc:272: Error: unrecognized opcode fence.i', extension
zifencei' required
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/drivers/cep_tests/cep_riscv.cc:272: Error: unrecognized opcode fence.i', extension
zifencei' required
make: *** [/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/cep_buildSW.make:355: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/lib/cep_tests/cep_riscv.bobj] Error 1
This one I can answer in spite of my own verilator build being messed up....
In cep_buildSW.make:
...
ifeq ($(BAREMETAL_PRINTF), libgloss)
RISCV_BARE_CFLAGS += -DVERILATOR
RISCV_BARE_LFLAGS += -L libgloss -specs=htif_nano.specs
else ifeq ($(BAREMETAL_PRINTF), kputc)
RISCV_BARE_CFLAGS += -DENABLE_KPUTC -mabi=lp64 -march=rv64ima_zicsr_zifencei
RISCV_BARE_LFLAGS += -nostdlib -nostartfiles -T ${RISCV_BARE_LFILE}
else
RISCV_BARE_CFLAGS += -mabi=lp64 -march=rv64ima_zicsr_zifencei
RISCV_BARE_LFLAGS += -nostdlib -nostartfiles -T ${RISCV_BARE_LFILE}
endif
...
"-mabi=lp64 -march=rv64ima_zicsr_zifencei" needs to be added to RISCV_BARE_CFLAGS under "ifeq ($(BAREMETAL_PRINTF), libgloss)"
OK. I think that solved that issue but now there is this:
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-exit.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-exit.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-findfp.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-findfp.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fwalk.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fwalk.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-printf.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-printf.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-stdio.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-stdio.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-closer.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-closer.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-reent.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-reent.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-impure.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-impure.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-lseekr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-lseekr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-readr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-readr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-writer.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-writer.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memset.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memset.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-freer.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-freer.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-mallocr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-mallocr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-mlock.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-mlock.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-nano-vfprintf.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-nano-vfprintf.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-nano-vfprintf_i.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-nano-vfprintf_i.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fflush.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fflush.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fvwrite.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fvwrite.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-wbuf.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-wbuf.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-wsetup.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-wsetup.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memchr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memchr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-sbrkr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-sbrkr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memmove.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memmove.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memcpy-asm.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-memcpy-asm.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-reallocr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-reallocr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-makebuf.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-makebuf.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fstatr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fstatr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-isattyr.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-isattyr.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-msizer.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-msizer.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(close.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(close.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(exit.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(exit.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(fstat.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(fstat.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(isatty.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(isatty.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(lseek.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(lseek.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(read.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(read.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(sbrk.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(sbrk.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(write.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(write.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(crt0.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(crt0.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(crtmain.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(crtmain.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(traps.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(traps.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(tls.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(tls.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(main.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(main.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(htif.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libgloss_htif.a(htif.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-atexit.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-atexit.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-environ.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-environ.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-errno.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-errno.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-init.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-init.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fini.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-fini.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-atexit.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-atexit.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-__call_atexit.o): can't link double-float modules with soft-float modules /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/lib/libc_nano.a(libc_a-__call_atexit.o) /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/13.2.0/../../../../riscv64-unknown-elf/bin/ld: warning: riscv_wrapper.elf has a LOAD segment with RWX permissions collect2: error: ld returned 1 exit status make: *** [/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/cep_cosim/cep_buildSW.make:393: riscv_wrapper.img] Error 1
And the answer is (drumroll, please !!!): Need to change one of the lines you gave me to this:
RISCV_BARE_CFLAGS += -DENABLE_KPUTC -mabi=lp64d -march=rv64imad_zicsr_zifencei
Adding the "d" (to both the -mabi and -march args) fixes the issue (as found on the Internet).
BUT, unfortunately I was incorrect as I still cannot compile the Verilated code (even with conda 24) getting this same as before:
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/bin/x86_64-conda-linux-gnu-c++ SimDRAM.o SimJTAG.o SimTSI.o SimUART.o mm.o mm_dramsim2.o remote_bitbang.o testchip_htif.o testchip_tsi.o uart.o verilated.o verilated_dpi.o verilated_vpi.o verilated_vcd_c.o verilated_timing.o verilated_threads.o VTestDriverALL.a -L/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/lib -Wl,-rpath,/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/riscv-tools/lib -L/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/verilator -L/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/tools/DRAMSim2 -lriscv -lfesvr -ldramsim -pthread -lpthread -latomic -o /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/verilator/simulator-chipyard.harness-CEPVerilatorRocketConfig
/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/bin/../lib/gcc/x86_64-conda-linux-gnu/13.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib/../lib/Scrt1.o: in function _start': (.text+0x20): undefined reference to
main'
collect2: error: ld returned 1 exit status
make[1]: *** [VTestDriver.mk:94: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/verilator/simulator-chipyard.harness-CEPVerilatorRocketConfig] Error 1
rm VTestDriverALL.verilator_deplist.tmp
make[1]: Leaving directory '/mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/verilator/generated-src/chipyard.harness.TestHarness.CEPVerilatorRocketConfig/chipyard.harness.TestHarness.CEPVerilatorRocketConfig'
make: *** [Makefile:261: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/sims/verilator/simulator-chipyard.harness-CEPVerilatorRocketConfig] Error 2
I found this file: software/firemarshal/boards/default/distros/br/buildroot/package/riscv-isa-sim/0001-riscv-disable-precompiled-headers.patch
with these contents:
From 980d5143089bf32ef8a6dfdf1bb9e9fe92fa7bf5 Mon Sep 17 00:00:00 2001 From: Julien Olivain ju.o@free.fr Date: Sun, 9 Jan 2022 13:38:48 +0100 Subject: [PATCH] riscv: disable precompiled headers
While precompiling header, some toolchains fail with the message:
/path/to/toolchain/bin/ld: /path/to/sysroot/usr/lib/Scrt1.o: in function `_start':
(.text+0x54): undefined reference to `main'
The patch totally disable precompiled headers.
riscv/riscv.mk.in | 3 --- 1 file changed, 3 deletions(-)
diff --git a/riscv/riscv.mk.in b/riscv/riscv.mk.in index 2347ce6..4f56eaf 100644 --- a/riscv/riscv.mk.in +++ b/riscv/riscv.mk.in @@ -35,9 +35,6 @@ riscv_hdrs = \
riscv_install_hdrs = mmio_plugin.h
-riscv_precompiled_hdrs = \
- insn_template.h \
-
riscv_srcs = \
processor.cc \
execute.cc \
-- 2.34.1
This seems to be the exact error message I am getting attempting to create the Verilated code (make SUB_PROJECT=ce_verilator). Is this patch applied and if not do I need to do that to get around tis loader issue and also how do I do it?
Checking again if any ideas/thoughts on why the loader is failing on Sctrl1.o: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/bin/../lib/gcc/x86_64-conda-linux-gnu/13.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: /mnt/data/projects/avalon/jkrim/cep_v4_7_test_verilator/CEP/.conda-env/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib/../lib/Scrt1.o: in function _start': (.text+0x20): undefined reference to main' collect2: error: ld returned 1 exit status
Jordan - I wished I had an immediate answer for you. Project priorities have shifted and I don't have the cycles to devote as much time to the CEP as I would like.
From: sims/verilator make SUB_PROJECT=cep_verilator
... /mnt/data/projects/ipvault/jkrim/cep_v4_4_new3a_test_verilator/CEP/.conda-env/bin/x86_64-conda-linux-gnu-c++ -Os -I. -MMD -I/mnt/data/projects/ipvault/jkrim/cep_v4_4_new3a_test_verilator/CEP/.conda-env/share/verilator/include -I/mnt/data/projects/ipvault/jkrim/cep_v4_4_new3a_test_verilator/CEP/.conda-env/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=1 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-shadow -Wno-sign-compare -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -O3 -std=c++17 -I/mnt/data/projects/ipvault/jkrim/cep_v4_4_new3a_test_verilator/CEP/.conda-env/riscv-tools/include -I/mnt/data/projects/ipvault/jkrim/cep_v4_4_new3a_test_verilator/CEP/tools/DRAMSim2 -I/mnt/data/projects/ipvault/jkrim/cep_v4_4_new3a_test_verilator/CEP/sims/verilator/generated-src/chipyard.harness.TestHarness.CEPVerilatorRocketConfig/gen-collateral -DVERILATOR -I./generated-src/chipyard.harness.TestHarness.CEPVerilatorRocketConfig/gen-collateral -include /mnt/data/projects/ipvault/jkrim/cep_v4_4_new3a_test_verilator/CEP/sims/verilator/generated-src/chipyard.harness.TestHarness.CEPVerilatorRocketConfig/chipyard.harness.TestHarness.CEPVerilatorRocketConfig/VTestDriver.h -fcoroutines -include VTestDriver__pch.h.fast -c -o VTestDriver.o VTestDriver.cpp