Re: [R-pkg-devel] openMP/reduction statement causes build crash on travis-ci

2016-08-03 Thread Ott Toomet
Hi Mark, if you consider backward compatibility (and potential compatibility with other compilers) a worthy goal, you can easily reduce manually in a '#pragma omp critical' block. An example here (around the middle of the page): http://www.parallelr.com/r-and-openmp-boosting-compiled-code-on-mult

Re: [R-pkg-devel] openMP/reduction statement causes build crash on travis-ci

2016-08-03 Thread Ege Rubak
I am using #pragma omp statements all over the place and this is the only type causing crashes. I'm guessing it has something to do with travis building on a 12.04 ubuntu VM with a rather old gcc (4.6.3). 2. Is there a workaround, or should I just go for another build service (which one)? Yo

Re: [R-pkg-devel] openMP/reduction statement causes build crash on travis-ci

2016-08-03 Thread Mark van der Loo
Thanks Dirk! that did it. I wasn't aware of the trusty 14.04 option. Just adding sudo: required dist: trusty at the top of my .travis.yaml solved it https://docs.travis-ci.com/user/trusty-ci-environment/, Cheers, Mark Op wo 3 aug. 2016 om 14:38 schreef Dirk Eddelbuettel : > > On 3 August

Re: [R-pkg-devel] openMP/reduction statement causes build crash on travis-ci

2016-08-03 Thread Dirk Eddelbuettel
On 3 August 2016 at 08:13, Mark van der Loo wrote: | Dear pkg developers, | | | I'm working on a package using C code and openMP. The package builds and | tests fine on my own machine[1] and also on r-hub[2]. However on travis-ci | the build crashes[3] with the following message (plus a few simi

[R-pkg-devel] openMP/reduction statement causes build crash on travis-ci

2016-08-03 Thread Mark van der Loo
Dear pkg developers, I'm working on a package using C code and openMP. The package builds and tests fine on my own machine[1] and also on r-hub[2]. However on travis-ci the build crashes[3] with the following message (plus a few similar): gower.c:297:29: error: expected ‘+’, ‘*’, ‘-’, ‘&’, ‘^’,