Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Bob Friesenhahn
On Wed, 31 Jul 2019, Alexander Pyhalov via oi-dev wrote: No, -fopenmp seems to be implemented wrong. _REENTRANT is not defined, libgomp is not linked. If we specify "clang++ omp.cc -fopenmp=libgomp -o omp", application is linked, but pragma parallel uses just one thread. When -pthreads is use

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Alexander Pyhalov via oi-dev
Отправлено: 31 июля 2019 г. 22:28 Кому: Alexander Pyhalov via oi-dev Копия: Alexander Pyhalov Тема: Re: [oi-dev] Clang and GCC6 runtime No, -fopenmp seems to be implemented wrong. _REENTRANT is not defined, libgomp is not linked. If we specify "clang++ omp.cc -fopenmp=libgomp -o omp", a

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Alexander Pyhalov via oi-dev
v Тема: Re: [oi-dev] Clang and GCC6 runtime On Wed, 31 Jul 2019, Alexander Pyhalov via oi-dev wrote: > OK > I have almost working Clang 8.0.1. Do the normal -pthreads and -fopenmp (OpenMP) options work with this build? I was excited when I found Clang 8 available from pkgsrc but was disappoin

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Bob Friesenhahn
On Wed, 31 Jul 2019, Alexander Pyhalov via oi-dev wrote: OK I have almost working Clang 8.0.1. Do the normal -pthreads and -fopenmp (OpenMP) options work with this build? I was excited when I found Clang 8 available from pkgsrc but was disappointed when I found that GCC options normally ava

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Alexander Pyhalov via oi-dev
OK I have almost working Clang 8.0.1. The only issue, it doesn't include G++ runpaths in resulting binary. But (suddenly), resulting binaries seem to work with either runtime (GCC4 or 6)... С уважением, Александр Пыхалов, программист отдела телекоммуникационной инфраструктуры управления информац

[oi-dev] Clang and GCC6 runtime

2019-07-30 Thread Alexander Pyhalov via oi-dev
Hi. I've looked at https://www.illumos.org/issues/11507, and first issue is clear, 01-openindiana.patch needs fixing. diff --git a/components/developer/clang-40/patches/01-openindiana.patch b/components/developer/clang-40/patches/01-openindiana.patch index cf4548b7e..f18920444 100644 --- a/comp