X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CA+4WVXnmun77_vkL6uPrVHXcS_C2wowY57zvHEk=b-h3JPY4Qg@mail.gmail.com>
References: <CA+4WVXnmun77_vkL6uPrVHXcS_C2wowY57zvHEk=b-h3JPY4Qg@mail.gmail.com>
Date: Thu, 12 Jan 2012 15:34:31 +1100
Message-ID: <CA+4WVXm3aNCOKKyxxA4gq-63M=BFsCEAoWrWq6o5buiJVQRyXQ@mail.gmail.com>
Subject: MinGW gfortran and OpenMP issues...
From: Nick Chilton <nicholas.chilton@monash.edu>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q0C4Yqai011384

Hi,

I'm trying to compile some code with:

x86_64-w64-mingw32-gfortran.exe -o a.exe -mno-cygwin -static -O3 -cpp
-Domp -fopenmp $(SOURCES) -L/lib/ -llapack -lblas

which compiles fine, but upon execution:

a.exe: error while loading shared libraries: ?: cannot open shared
object file: No such file or directory

cygcheck shows it has no dependencies, but it seems to be looking for
something. Code compiles and runs fine when the OMP sections and
-fopenmp flag are removed (sequential) and compiles fine with OpenMP
on Linux using ifort.

Any ideas what I'm missing?

Cheers!
Nick

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


