You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to calculate cpu time in main.c. After executing the makefile, I got the following linker error.
CC main.o
CC firmware.elf
/usr/lib/riscv64-unknown-elf/bin/ld: ../build//software/libc/libc.a(libc_time_clock.c.o): in function clock': /home/user/Desktop/Gayathri_examples/github_lab_examples/fpga_101/lab004/build/software/libc/../../../../../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/time/clock.c:73: undefined reference to times'
collect2: error: ld returned 1 exit status
make: *** [Makefile:18: firmware.elf] Error 1
I have no idea what happened. I didn't expect the error because I followed the instructions carefully. Can anyone tell me why I got this error and how to resolve it?
If my hardware doesn't support times, is there any way to calculate clock cycles taken by main.c in liteX?
The text was updated successfully, but these errors were encountered:
I want to calculate cpu time in main.c. After executing the makefile, I got the following linker error.
CC main.o
CC firmware.elf
/usr/lib/riscv64-unknown-elf/bin/ld: ../build//software/libc/libc.a(libc_time_clock.c.o): in function
clock': /home/user/Desktop/Gayathri_examples/github_lab_examples/fpga_101/lab004/build/software/libc/../../../../../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/time/clock.c:73: undefined reference to
times'collect2: error: ld returned 1 exit status
make: *** [Makefile:18: firmware.elf] Error 1
I have no idea what happened. I didn't expect the error because I followed the instructions carefully. Can anyone tell me why I got this error and how to resolve it?
If my hardware doesn't support times, is there any way to calculate clock cycles taken by main.c in liteX?
The text was updated successfully, but these errors were encountered: