[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Solving the Pthreads issue
From: |
Volker Grabsch |
Subject: |
Re: [Mingw-cross-env-list] Solving the Pthreads issue |
Date: |
Sun, 9 May 2010 23:18:38 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Tony Theodore <address@hidden> schrieb:
> On 9 May 2010 20:05, Volker Grabsch <address@hidden> wrote:
> > Tony Theodore <address@hidden> schrieb:
> >> I found this snippet at the OpenMP site[1]:
> >>
> >> #include <omp.h>
> >> #include <stdio.h>
> >> int main() {
> >> #pragma omp parallel
> >> printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(),
> >> omp_get_num_threads());
[...]
> >> gcc -fopenmp hello.c -o hello.exe -lgomp -lpthread -static
> >>
> >> The same using the cross-gcc compiles but doesn't run in Windows, and
> >> there's no sensible error message.
[...]
> > What do you get if you run it under Wine?
> >
> > Do you see the "err:ntdll:RtlpWaitForCriticalSection" messages
> > that I mentioned at the beginning of this thread?
>
> Yes, I just installed wine and that's the error.
Okay, this is the expected problem.
Now we are at the point where we'll either have to patch libgomp
to work with static Pthreads-w32, as described earlier in this
thread. Or we'll have to build and use a shared Pthreads-w32
library.
> > And what about the "-static" option? Is it really needed to
> > compile the test program? What happens if you remove it?
>
> Actually, those options do nothing, just compiling with :
>
> i686-pc-mingw32-gcc -fopenmp hello.c -o hello.exe
>
> achieves the same result.
Okay. :-)
So I improved the test script and included it.
http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/243f4942dc82
This might be a good test case for anyone trying to patch libgomp
accordingly.
Greets,
Volker
--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, (continued)
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Volker Grabsch, 2010/05/04
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Dmitry Groshev, 2010/05/06
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Volker Grabsch, 2010/05/06
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Volker Grabsch, 2010/05/06
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Tony Theodore, 2010/05/07
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Volker Grabsch, 2010/05/07
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Gregory Smith, 2010/05/07
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Tony Theodore, 2010/05/08
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Volker Grabsch, 2010/05/09
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Tony Theodore, 2010/05/09
- Re: [Mingw-cross-env-list] Solving the Pthreads issue,
Volker Grabsch <=
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Tony Theodore, 2010/05/10
- Re: [Mingw-cross-env-list] Solving the Pthreads issue, Volker Grabsch, 2010/05/10
- [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Volker Grabsch, 2010/05/09
- Re: [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Martin Lambers, 2010/05/09
- Re: [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Volker Grabsch, 2010/05/12
- Re: [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Martin Gerhardy, 2010/05/13
- Re: [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Volker Grabsch, 2010/05/13
- Re: [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Tony Theodore, 2010/05/14
- Re: [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Gregory Smith, 2010/05/14
- Re: [Mingw-cross-env-list] Support for Windows 95/98/ME? (was: Solving the Pthreads issue), Tony Theodore, 2010/05/14