The following warnings occurred:
Warning [2] Undefined variable $usersbrowsing - Line: 92 - File: showthread.php(1617) : eval()'d code PHP 8.1.16 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 92 errorHandler->error_callback
/showthread.php 1617 eval

Cannot open linker script file riscv.ld
I downloaded pulp-riscv-gnu-toolchain and did installation(PULP). When i try to compile a program using riscv32-unknown-elf-gcc, I get the following error

/opt/riscv/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/bin/ld: cannot open linker script file riscv.ld: No such file or directory

collect2: error: ld returned 1 exit status
Yes that is a known bug with the pulp-gcc port (not having a default working linker script). You need to pass your linker script with `-T your-linker-script.ld`

Forum Jump: