This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failure of openmp_stack.f90


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]