This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Failure of openmp_stack.f90
- From: "Asher Langton" <langton2 at llnl dot gov>
- To: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Thu, 27 Sep 2007 13:37:29 -0500
- Subject: Re: Failure of openmp_stack.f90
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=vD2RV7kJTduaBV+sk5AcJKe/hc5CfIhYdnefPULjrpQ=; b=AjsEYbcbUuwt/l3S2RKdBK2CRb06qUJEJqJ7isWkzE4sVGN2rlcgOnkQI8WhMjmWm4VBjtvN5suxzvAyZD++k867gzJ1qMpuYAkMjPkAdEqmj0ZxtdDKjdcRROW2QKEK5ARpsfeBj2d8fDrFIpE5emxD6K7otRu3gfva2zqXFUc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=pkbjqe4iLfqROaRf3txlGKOV1VXxknPoqVifLRh5Z8+KC3dJ+aLB181n3moQU/gGZzYSf8BcgwKMjUG4QeurxzzIVevEcATIGAdvaUa6ZKvebzWRBqySlHT5JwTeZ5Ae1HygkHeP3GH06IA26UCfJWK6ReVTsJ1o8p9YTuM581Q=
- References: <339c37f20709271128m3b80beah8e2aa5aa43141c1f@mail.gmail.com>
On 9/27/07, Paul Richard Thomas <paul.richard.thomas@gmail.com> wrote:
> Does anybody else see:
>
> /svn-4.3/bin/gfortran -O3 -static $test/openmp_stack.f90
> /tmp/ccOf3kdc.o: In function `MAIN__':openmp_stack.f90:(.text+0x2c):
> undefined reference to `omp_set_num_threads_'
> :openmp_stack.f90:(.text+0x33): undefined reference to `omp_get_thread_num_'
> collect2: ld returned 1 exit status
Hi Paul,
openmp_stack.f90 needs to be compiled with -fopenmp. There's
currently an open bug regarding opemp_stack.f90, but I don't think
it's causing the problem you're encountering:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33526
In any case, I'll move openmp_stack.f90 into the libgomp test
directory when I have approval from one of the libgomp maintainers.
-Asher