Re: clang-cl: undeclared library function 'sprintf'

2025-06-15 Thread Kirill Makurin
This issue was coming from "NM=llvm-nm.exe". I was setting some of variables to use llvm tools, since they are installed alongside clang-cl.exe. I *did not* expect this to cause any issues, since most packages were building successfully. It was happening when libtool was running $NM on all objec

Re: clang-cl: undeclared library function 'sprintf'

2025-06-15 Thread Kirill Makurin
Thanks for the info. Now I see that affected files are compiled twice and only the second compilation fails. I will try to find out what causes iconv-2.dll to export sprintf. It should at least give us some answers. - Kirill Makurin From: Bruno Haible Sent: Mon

Re: clang-cl: undeclared library function 'sprintf'

2025-06-15 Thread Bruno Haible via Gnulib discussion list
Kirill Makurin wrote: > I tried further investigate this issue and I have discovered that > libtextstyle/lib/config.h contains following lines: > > ``` > #define sprintf libtextstyle_sprintf > #define sscanf libtextstyle_sscanf > ``` > > Since config.h is included before any system header file,

Re: clang-cl: undeclared library function 'sprintf'

2025-06-15 Thread Kirill Makurin
Hi Bruno, I tried further investigate this issue and I have discovered that libtextstyle/lib/config.h contains following lines: ``` #define sprintf libtextstyle_sprintf #define sscanf libtextstyle_sscanf ``` Since config.h is included before any system header file, later when system's stdio.h

Re: fenv-env tests do not compile on sh4

2025-06-15 Thread Bruno Haible via Gnulib discussion list
Collin Funk wrote: > I haven't run 'make check' since I do not have access to a sh4 machine. Neither do I, but ... > One could do the following in a debian container: > >$ apt install gcc-sh4-linux-gnu gcc-sh4-linux-gnu libc6-sh4-cross >$ apt install qemu-system qemu-user-binfmt >$ e

Re: fenv-env tests do not compile on sh4

2025-06-15 Thread Collin Funk
Hi Bruno, Bruno Haible writes: > Fixed through this patch: > > > 2025-06-15 Bruno Haible > > fenv-environment tests: Fix compilation errors on Linux/sh4. > Reported by Collin Funk in > . > * tests/tes

Re: fenv-env tests do not compile on sh4

2025-06-15 Thread Bruno Haible via Gnulib discussion list
Hi Collin, > I found that the fenv-env tests do not compile on sh4. This is the > error: > > test-fenv-env-2.c: In function 'main': > test-fenv-env-2.c:49:15: error: 'FE_UPWARD' undeclared (first use in this > function) >49 | fesetround (FE_UPWARD); > |