FS#66548 - [riscv64-elf-newlib] libgloss_nano.a not shipped but specified in nano.specs
Attached to Project:
Community Packages
Opened by Janis König (LeonardK) - Tuesday, 05 May 2020, 15:38 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Monday, 25 April 2022, 11:47 GMT
Opened by Janis König (LeonardK) - Tuesday, 05 May 2020, 15:38 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Monday, 25 April 2022, 11:47 GMT
|
Details
Description:
The nano specs files, e.g. /usr/riscv64-elf/lib/nano.specs, specify that the compiler should link against -lgloss_nano, however this file is not shipped as part of this package. The pre-built GNU embedded toolchain at https://www.sifive.com/boards/ contains such a file, which is required to use the Freedom E SDK. Please excuse, if this is simply a different toolchain targeting a different platform and thus the wrong place to report. Additional info: * package version(s): 3.3.0-1 * config and/or log files etc.: See "reproduce" * link to upstream bug report, if any: N/A Steps to reproduce: 1. Create a minimal C main function 2. Compile using $ riscv64-elf-gcc --specs=nano.specs mwe.o -o mwe /usr/lib/gcc/riscv64-elf/9.3.0/../../../../riscv64-elf/bin/ld: cannot find -lgloss_nano collect2: error: ld returned 1 exit status |
This task depends upon
Closed by Massimiliano Torromeo (mtorromeo)
Monday, 25 April 2022, 11:47 GMT
Reason for closing: Fixed
Additional comments about closing: riscv64-elf-newlib-4.1.0-2
Monday, 25 April 2022, 11:47 GMT
Reason for closing: Fixed
Additional comments about closing: riscv64-elf-newlib-4.1.0-2
No, this is correct. Sorry. I'll try to fix it soon.
In newlib 4.1.0 libm_nano is also used by nano.specs (it wasn't before), so most nano builds will probably break.