__builtin_thread_pointer

2025-02-11 Thread Ken Brown via Cygwin
Does Cygwin support __builtin_thread_pointer? I'm guessing not, because I'm getting a link error (undefined reference to `__builtin_thread_pointer') when I try to build some software that uses it. Or is there something that would have to be added to the link command line? The full command li

Re: __builtin_thread_pointer

2025-02-11 Thread Brian Inglis via Cygwin
On 2025-02-11 12:41, Dimitry Andric via Cygwin wrote: On 11 Feb 2025, at 20:26, Ken Brown via Cygwin wrote: Does Cygwin support __builtin_thread_pointer? I'm guessing not, because I'm getting a link error (undefined reference to `__builtin_thread_pointer') when I try to build some software that

Re: __builtin_thread_pointer

2025-02-11 Thread Dimitry Andric via Cygwin
It does not look like it's supported by Cygwin's gcc: $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/12/lto-wrapper.exe Target: x86_64-pc-cygwin Configured with: /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-12.4.0/configure --srcdir=/mnt/share/cygpkg

Re: __builtin_thread_pointer

2025-02-11 Thread Corinna Vinschen via Cygwin
On Feb 11 20:41, Dimitry Andric via Cygwin wrote: > It's a gcc builtin function, not something implemented in an external > library. Therefore, there is no linker option that can fix this. > > Also, as far as I can see from gcc's documentation, > __builtin_thread_pointer() is only supported for

Re: __builtin_thread_pointer

2025-02-11 Thread Brian Inglis via Cygwin
On 2025-02-11 13:58, Dimitry Andric wrote: On 11 Feb 2025, at 21:45, Brian Inglis via Cygwin wrote: On 2025-02-11 12:41, Dimitry Andric via Cygwin wrote: On 11 Feb 2025, at 20:26, Ken Brown via Cygwin wrote: Does Cygwin support __builtin_thread_pointer? I'm guessing not, because I'm getting a l

App Closes Unexpectedly When Resizing

2025-02-11 Thread Thomas Lake via Cygwin
When I open an app that uses Cygwin, I can't resize the window. When I try, the app closes with no warning or error message. I'm using Win 11 24H2 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs

Re: __builtin_thread_pointer

2025-02-11 Thread Brian Inglis via Cygwin
On 2025-02-11 13:58, Dimitry Andric wrote: On 11 Feb 2025, at 21:45, Brian Inglis via Cygwin wrote: On 2025-02-11 12:41, Dimitry Andric via Cygwin wrote: On 11 Feb 2025, at 20:26, Ken Brown via Cygwin wrote: Does Cygwin support __builtin_thread_pointer? I'm guessing not, because I'm getting a l

Re: __builtin_thread_pointer

2025-02-11 Thread Dimitry Andric via Cygwin
It's a gcc builtin function, not something implemented in an external library. Therefore, there is no linker option that can fix this. Also, as far as I can see from gcc's documentation, __builtin_thread_pointer() is only supported for the RISCV and SH architectures. Then again, gcc's implement

Window Closes When Resizing

2025-02-11 Thread Thomas Lake via Cygwin
When I run an Cygwin app and try to resize the window, it closes unexpectedly with no warning or error message. I'm running Win 11 24H2 and 64-bit Cygwin. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.

Re: Window Closes When Resizing

2025-02-11 Thread Marco Atzeri via Cygwin
On 11/02/2025 19:19, Thomas Lake via Cygwin wrote: When I run an Cygwin app and try to resize the window, it closes unexpectedly with no warning or error message. I'm running Win 11 24H2 and 64-bit Cygwin. Hi Thomas, Are you use the Cygwin terminal ? Which App ? How are you running it ? plea

Re: App Closes Unexpectedly When Resizing

2025-02-11 Thread Brian Inglis via Cygwin
On 2025-02-11 11:13, Thomas Lake via Cygwin wrote: When I open an app that uses Cygwin, I can't resize the window. When I try, the app closes with no warning or error message. I'm using Win 11 24H2 Talk to whoever provided the app that uses Cygwin. We have no idea what the app is, does, or ev

Re: __builtin_thread_pointer

2025-02-11 Thread Ken Brown via Cygwin
On 2/11/2025 4:03 PM, Corinna Vinschen via Cygwin wrote: Ken, check the source or configury of your package. It looks weird that this function should be called architecture-independently. Thanks for the suggestion. It's actually not called architecture-independently, but the code was convolute

Re: Potential Argument Injection Issue in Cygwin's Command Line Handling

2025-02-11 Thread Brian Inglis via Cygwin
On 2025-02-10 19:09, Kaz Kylheku wrote: On 2025-02-10 12:32, Brian Inglis via Cygwin wrote: One can avoid any issues by running Cygwin programs only from other Cygwin programs, and Windows programs only from other Windows programs. Microsoft has provided a documented algorithm, which is imple

Re: __builtin_thread_pointer

2025-02-11 Thread Dimitry Andric via Cygwin
On 11 Feb 2025, at 23:25, Brian Inglis wrote: > > On 2025-02-11 13:58, Dimitry Andric wrote: >>> On 11 Feb 2025, at 21:45, Brian Inglis via Cygwin wrote: >>> On 2025-02-11 12:41, Dimitry Andric via Cygwin wrote: > On 11 Feb 2025, at 20:26, Ken Brown via Cygwin wrote: > Does Cygwin support