[Openmp-commits] [openmp] r278036 - Fix linking of omp_foreign_thread_team_reuse test on FreeBSD

Dimitry Andric via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 8 14:25:00 PDT 2016


Hi Hans,

I would like to merge this one to release_39, since it fixes at least one openmp test on FreeBSD.

-Dimitry

> On 08 Aug 2016, at 20:34, Dimitry Andric via Openmp-commits <openmp-commits at lists.llvm.org> wrote:
> 
> Author: dim
> Date: Mon Aug  8 13:34:05 2016
> New Revision: 278036
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=278036&view=rev
> Log:
> Fix linking of omp_foreign_thread_team_reuse test on FreeBSD
> 
> Summary:
> On FreeBSD, linking the misc_bugs/omp_foreign_thread_team_reuse.c test
> case fails with:
> 
>   /usr/local/bin/ld: /tmp/omp_foreign_thread_team_reuse-c5e71b.o: undefined reference to symbol 'pthread_create@@FBSD_1.0'
> 
> This is because the program is linked without `-lpthread`.  Since the
> %libomp-compile-and-run macro does not allow that option to be added to
> the compile command line, split it up and add the required `-lpthread`
> between %libomp-compile and %libomp-run.
> 
> Reviewers: jlpeyton, hfinkel, Hahnfeld
> 
> Subscribers: Hahnfeld, emaste, openmp-commits
> 
> Differential Revision: https://reviews.llvm.org/D23084
> 
> Modified:
>    openmp/trunk/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
> 
> Modified: openmp/trunk/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
> URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c?rev=278036&r1=278035&r2=278036&view=diff
> ==============================================================================
> --- openmp/trunk/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c (original)
> +++ openmp/trunk/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c Mon Aug  8 13:34:05 2016
> @@ -1,4 +1,4 @@
> -// RUN: %libomp-compile-and-run
> +// RUN: %libomp-compile -lpthread && %libomp-run
> #include <stdio.h>
> #include "omp_testsuite.h"
> 
> 
> 
> _______________________________________________
> Openmp-commits mailing list
> Openmp-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-commits

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160808/7d485279/attachment.sig>


More information about the Openmp-commits mailing list