[Openmp-dev] Error compiling static library for fortran

Churbanov, Andrey via Openmp-dev openmp-dev at lists.llvm.org
Thu Jan 11 03:44:40 PST 2018


Thanks for reporting this, I've just submitted the fix you suggested as https://reviews.llvm.org/D41945.

Regards,
Andrey

-----Original Message-----
From: Openmp-dev [mailto:openmp-dev-bounces at lists.llvm.org] On Behalf Of simone via Openmp-dev
Sent: Thursday, January 11, 2018 3:00 AM
To: openmp-dev at lists.llvm.org
Subject: Re: [Openmp-dev] Error compiling static library for fortran

FYI

The call to "__kmp_itt_reset();" at line 1344 of z_Linux_util.cpp is not
within:

#if USE_ITT_BUILD

#endif /* USE_ITT_BUILD */

doing that solves the problem.

Best,
Simone

On 2018-01-10 15:48, simone wrote:
> Hi all,
> 
> I am getting an error when I try to compile the OpenMP RT with static 
> library for Fortran.
> 
> Here my cmake line:
> 
> cmake -D LIBOMP_ENABLE_SHARED=OFF  -D LIBOMP_FORTRAN_MODULES=ON ..
> 
> and here the error I get:
> 
> z_Linux_util.cpp:1344:3: error: use of undeclared identifier 
> '__kmp_itt_reset'
>   __kmp_itt_reset(); // reset ITT's global state
>   ^
> 1 error generated.
> 
> Is there something wrong in my cmake line?
> 
> Thanks.
> Simone
_______________________________________________
Openmp-dev mailing list
Openmp-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev

--------------------------------------------------------------------
Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


More information about the Openmp-dev mailing list