pkarashchenko commented on issue #10594:
URL: https://github.com/apache/nuttx/issues/10594#issuecomment-1721864886

   I downloaded and installed the same toolchain and am able to reproduce an 
issue. I think the case is that toolchain is build without support of `medany` 
model as `riscv64-unknown-elf-gcc -v` outputs
   ```
   Using built-in specs.
   COLLECT_GCC=riscv64-unknown-elf-gcc
   
COLLECT_LTO_WRAPPER=/usr/share/riscv64-elf-gcc-nightly-2023.09.13/bin/../libexec/gcc/riscv64-unknown-elf/12.2.0/lto-wrapper
   Target: riscv64-unknown-elf
   Configured with: 
/home/runner/work/riscv-gnu-toolchain/riscv-gnu-toolchain/gcc/configure 
--target=riscv64-unknown-elf --prefix=/opt/riscv --disable-shared 
--disable-threads --enable-languages=c,c++ --with-pkgversion= 
--with-system-zlib --enable-tls --with-newlib 
--with-sysroot=/opt/riscv/riscv64-unknown-elf 
--with-native-system-header-dir=/include --disable-libmudflap --disable-libssp 
--disable-libquadmath --disable-libgomp --disable-nls 
--disable-tm-clone-registry --src=.././gcc --disable-multilib --with-abi=lp64d 
--with-arch=rv64gc --with-tune=rocket --with-isa-spec=20191213 
'CFLAGS_FOR_TARGET=-Os    -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-Os    
-mcmodel=medlow'
   Thread model: single
   Supported LTO compression algorithms: zlib
   gcc version 12.2.0 ()
   ```
   I think the best would be to use toolchain from 
https://github.com/apache/nuttx/pull/10306


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to