Skip to content

open mp problem when installing R

2 messages · Erin Hodgess, Brian Ripley

#
Dear R People:

I'm back to installing R from source, this time on a 64 bit machine.

I'm using the R-Patched.tar.gz as my source.

When I have the openmp option set to -fopenmp, I get the error that
libgomp.spec is not found.  Ok, so I commented out the reference to
openmp.

However, I ran an openmp "hello world" program using gcc and the
-fopenmp option, and it ran fine.

What am I missing, please?

Thanks,
Erin
#
On 03/07/2012 06:56, Erin Hodgess wrote:
What OS?
This is not the list to discuss such matters, but something is wrong 
with your toolchain.  A version of gcc which supports OpenMP should have 
a libgomp.spec file, in one of the places it looks for .spec files.

It maybe that you need to install something other than gcc to get it, 
especially on micro-packaged distributions.

But e.g. on my Fedora 16 it is file
/usr/lib/gcc/x86_64-redhat-linux/4.6.3/libgomp.spec
which is part of the gcc RPM.