Re: [easybuild] undefined reference to 'omp_get_num_threads' despite openmp=True

2020-03-25 Thread Loris Bennett
Hi Alan, Thanks, setting preconfigopts did the trick. Cheers, Loris Alan O'Cais writes: > Yeah, something like > preconfigopts = 'export LDFLAGS="-fopenmp $LDFLAGS" && ' > > On Mon, 23 Mar 2020 at 14:18, Ward Poelmans wrote: > > On 23/03/2020 14:08, Loris Bennett wrote: > > So the

Re: [easybuild] undefined reference to 'omp_get_num_threads' despite openmp=True

2020-03-23 Thread Alan O'Cais
Yeah, something like preconfigopts = 'export LDFLAGS="-fopenmp $LDFLAGS" && ' On Mon, 23 Mar 2020 at 14:18, Ward Poelmans mailto:wpoel...@gmail.com>> wrote: On 23/03/2020 14:08, Loris Bennett wrote: > So the libraries seem to get build OK, but linking the client against > them seems to fail,

Re: [easybuild] undefined reference to 'omp_get_num_threads' despite openmp=True

2020-03-23 Thread Ward Poelmans
On 23/03/2020 14:08, Loris Bennett wrote: > So the libraries seem to get build OK, but linking the client against > them seems to fail, despite the fact that all the calls to 'gcc' seem to > have the option '-fopenmp' set. The issue is that the last one (--mode=link) does not have -fopenmp.

Re: [easybuild] undefined reference to 'omp_get_num_threads' despite openmp=True

2020-03-23 Thread Loris Bennett
Hi Ward, Ward Poelmans writes: > Hi Loris, > > On 23/03/2020 13:25, Loris Bennett wrote: >> >> ../lib/.libs/libgretl-1.0.so: error: undefined reference to >> 'omp_get_num_threads' >> ../lib/.libs/libgretl-1.0.so: error: undefined reference to 'GOMP_barrier' >> ../lib/.libs/libgretl-1.0.so:

Re: [easybuild] undefined reference to 'omp_get_num_threads' despite openmp=True

2020-03-23 Thread Ward Poelmans
Hi Loris, On 23/03/2020 13:25, Loris Bennett wrote: > > ../lib/.libs/libgretl-1.0.so: error: undefined reference to > 'omp_get_num_threads' > ../lib/.libs/libgretl-1.0.so: error: undefined reference to 'GOMP_barrier' > ../lib/.libs/libgretl-1.0.so: error: undefined reference to >

[easybuild] undefined reference to 'omp_get_num_threads' despite openmp=True

2020-03-23 Thread Loris Bennett
Hi, I'm trying to write an easyconfig for gretl[1]. I have toolchain = {'name': 'foss', 'version': '2019a'} toolchainopts = {'openmp': True} but I am getting the following error: libtool: compile: gcc -mavx -Winline -c -O2 -ftree-vectorize -march=native -fno-math-errno -fopenmp -I..