public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* undefined reference to __ssputws_r with --specs=nano.specs
@ 2024-02-06 17:40 Torbjorn SVENSSON
  2024-02-15 15:19 ` Torbjorn SVENSSON
  0 siblings, 1 reply; 7+ messages in thread
From: Torbjorn SVENSSON @ 2024-02-06 17:40 UTC (permalink / raw)
  To: Newlib

Hi,

I noticed that a lot of testcases fails when running the GCC testsuite 
with --specs=nano.specs.
Below is an example that fails with --specs=nano.specs:

$ /build/13-head-bin/bin/arm-none-eabi-g++ 
/build/gcc13_src/gcc/testsuite/g++.dg/coroutines/pr100611.C -std=c++20 
--specs=nosys.specs -o /dev/null --specs=nano.specs
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: 
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/lib/libc_nano.a(libc_a-svfwprintf.o): 
in function `_svfwprintf_r':
(.text._svfwprintf_r+0xd8): undefined reference to `__ssputws_r'
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: 
(.text._svfwprintf_r+0x834): undefined reference to `__ssputws_r'
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: 
(.text._svfwprintf_r+0x85c): undefined reference to `__ssputws_r'
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: 
(.text._svfwprintf_r+0x8a8): undefined reference to `__ssputws_r'
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: 
(.text._svfwprintf_r+0x8dc): undefined reference to `__ssputws_r'
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: 
/build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/lib/libc_nano.a(libc_a-svfwprintf.o):(.text._svfwprintf_r+0x900): 
more undefined references to `__ssputws_r' follow
collect2: error: ld returned 1 exit status


The newlib nano is configured with:

--disable-newlib-supplied-syscalls
--enable-newlib-reent-check-verify
--enable-newlib-reent-small
--enable-newlib-retargetable-locking
--disable-newlib-fvwrite-in-streamio
--disable-newlib-fseek-optimization
--disable-newlib-wide-orient
--enable-newlib-nano-malloc
--disable-newlib-unbuf-stream-opt
--enable-lite-exit
--enable-newlib-global-atexit
--enable-newlib-nano-formatted-io
--disable-nls


Is it expected that the symbol __ssputws_r is referenced but not 
provided when (I presume this is the reason) 
--enable-newlib-nano-formatted-io and --disable-newlib-wide-orient is used?

Kind regards,
Torbjörn

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-11 10:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 17:40 undefined reference to __ssputws_r with --specs=nano.specs Torbjorn SVENSSON
2024-02-15 15:19 ` Torbjorn SVENSSON
2024-02-19 16:20   ` Richard Earnshaw (lists)
2024-02-23 15:31     ` [PATCH] libc/stdio: Remove wchar_t functions from NEWLIB_NANO_FORMATTED_IO Torbjörn SVENSSON
2024-02-23 16:05       ` R. Diez
2024-03-09  8:15       ` [PATCH v2] " Torbjörn SVENSSON
2024-03-11 10:30         ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).