Re: Rust for cygwin (was Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key)

2025-04-21 Thread Jeremy Drake via Cygwin
On Sun, 20 Apr 2025, Takashi Yano via Cygwin wrote: > Is there any other blocker to build Rust for cygwin? https://github.com/rust-lang/rust/issues/137819 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwi

Re: Rust for cygwin (was Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key)

2025-04-19 Thread Jeremy Drake via Cygwin
On Sun, 20 Apr 2025, Takashi Yano via Cygwin wrote: > On Mon, 24 Mar 2025 14:41:19 +0800 > Yuyi Wang wrote: > > > I mean it is some kind of cross compiler. > > > > Yes. Rustc is a cross compiler powered by LLVM. > > > > > ...is it possible to build Rust compiler itself by the cross-compiler? > > >

Rust for cygwin (was Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key)

2025-04-19 Thread Takashi Yano via Cygwin
On Mon, 24 Mar 2025 14:41:19 +0800 Yuyi Wang wrote: > > I mean it is some kind of cross compiler. > > Yes. Rustc is a cross compiler powered by LLVM. > > > ...is it possible to build Rust compiler itself by the cross-compiler? > > Theoretically yes. Actually once a GitHub user @Ookiineko succeed

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-04-08 Thread Takashi Yano via Cygwin
On Sun, 23 Mar 2025 20:32:44 +0800 Yuyi Wang wrote: > It's a bug when I tried to run tests of Rust std lib. The standard > library of Rust tries to create a new pthread_key in the destructor of a > key created previously. Unfortunately, List::for_each locked the mutex > before, so List_insert metho

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-24 Thread Brian Inglis via Cygwin
On 2025-03-23 10:07, Yuyi Wang wrote: Seems that my email username might make someone confused. I'm @Berrysoft, and the maintainer of cygwin target of rustc. That sound interesting and very welcome. As usual in these cases: see below: Problem reports: https://cygwin.com/problems.

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-23 Thread Yuyi Wang via Cygwin
> I mean it is some kind of cross compiler. Yes. Rustc is a cross compiler powered by LLVM. > ...is it possible to build Rust compiler itself by the cross-compiler? Theoretically yes. Actually once a GitHub user @Ookiineko succeeded before, but now the account has been deleted. I think the large

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-23 Thread Takashi Yano via Cygwin
On Sun, 23 Mar 2025 20:32:44 +0800 Yuyi Wang wrote: > It's a bug when I tried to run tests of Rust std lib. The standard > library of Rust tries to create a new pthread_key in the destructor of a > key created previously. Unfortunately, List::for_each locked the mutex > before, so List_insert metho

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-23 Thread Brian Inglis via Cygwin
On 2025-03-23 06:32, Yuyi Wang via Cygwin wrote: It's a bug when I tried to run tests of Rust std lib. The standard library of Rust tries to create a new pthread_key in the destructor of a key created previously. Unfortunately, List::for_each locked the mutex before, so List_insert method cannot

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-23 Thread 王宇逸 via Cygwin
> Rust does not support Cygwin, and gcc-rs is not yet available on Cygwin: what > tools and libraries were used to build this library and utilities? Hello Brian, I'm happy to announce the cygwin target support in rust, which is maintained by myself now:) Now it provides std support but no host to

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-23 Thread Brian Inglis via Cygwin
On 2025-03-23 06:32, Yuyi Wang via Cygwin wrote: It's a bug when I tried to run tests of Rust std lib. The standard library of Rust tries to create a new pthread_key in the destructor of a key created previously. Unfortunately, List::for_each locked the mutex before, so List_insert method cannot

Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-23 Thread Yuyi Wang via Cygwin
Seems that my email username might make someone confused. I'm @Berrysoft, and the maintainer of cygwin target of rustc. Sincerely, Yuyi Wang -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html

Deadlock when calling pthread_key_create in the destructor of a pthread_key

2025-03-23 Thread Yuyi Wang via Cygwin
It's a bug when I tried to run tests of Rust std lib. The standard library of Rust tries to create a new pthread_key in the destructor of a key created previously. Unfortunately, List::for_each locked the mutex before, so List_insert method cannot lock the mutex again. I have searched though the