This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: mingw32 + libgomp
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: FX Coudert <fxcoudert at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Sun, 15 Apr 2007 22:49:36 +0200
- Subject: Re: mingw32 + libgomp
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=fioMoJ8Wl5CKYkbUuvxkkEvVBqMYtmf0d11y1sev72EsNFhxQL6trLdSEKeoM1fqA6kivxbHFzmrSJ4pMG9rM32b5pSS4/htn8xcuS1r/znwVGAPTXu/Q7AT0jwzjWk5lYOg1iyWcZ53WeB2dk3wEiOTau+EzfH0F6gFGmDQDys=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Yg81RWMXnqMrblb+nGY28oKWwX3tR8GDZ2pq2yF/HF3Moc7FOwWzOoVaJjDvuZjL/+3qTDb6Gjq9iviLuQxLQoK0a4zDulnebz+2ebbV39H7RaVscvMy5i8wjOBRYE2ALLlKa0HDwcck9O5NySs6YG0jHsxBJwh8AcWl2zSgBTM=
- References: <200704152043.07327.franke.daniel@gmail.com> <200704152109.24416.franke.daniel@gmail.com> <0BC64FE7-6E06-475F-8510-2B3909966ABC@gmail.com>
On Sunday 15 April 2007 21:15:38 FX Coudert wrote:
> I never bothered enough to try with --enable-threads=win32 because I
> had a working installation (with pthreads-win32), but I'd
> nevertheless be interested in knowing if building with --enable-
> libgomp --enable-threads=win32 yields a working libgomp. So, if you
> can be so kind as to report your success or failure, I'd be very
> grateful!
Configuring with "--enable-threads=win32":
[... libgomp ...]
configure: error: Pthreads are required to build libgomp
make[1]: *** [configure-target-libgomp] Error 1
make[1]: Leaving directory `/home/daniel/svn-build/gcc-4.2-mingw'
Configuring with "--enable-threads=posix" (without pthreads-win32):
[... libgcc ...]
In file included from ./gthr-default.h:1,
from ../../../svn/gcc-4.2/gcc/gthr.h:114,
from ../../../svn/gcc-4.2/gcc/unwind-dw2.c:42:
../../../svn/gcc-4.2/gcc/gthr-posix.h:43:21: error: pthread.h: No such file or
directory
Configuring with "--enable-threads=posix" (with pthreads-win32-2.8.0):
[...]
$> i686-pc-mingw32-gfortran-4.2 -fopenmp *.f90
collect2: ld terminated with signal 11 [Segmentation fault]
I.e. libgomp is built, but gfortran won't link anything. This will need
further investigation -- but not today.
FX, although this doesn't work yet, thank you very much for get me going :)
Regards
Daniel