mingw/math.h not found while compiling R packages

Enrico Ferrero enricoferrero86@gmail.com
Tue Jul 9 10:47:00 GMT 2013


I have R installed through Cygwin ports, and I am trying to compile some
external R packages (from Bioconductor).

When doing so, I get the following error while building the IRanges
Bioconductor package:

> In file included from IntervalTree.c:3:0:
> common.h:59:24: fatal error: mingw/math.h: No such file or directory
> compilation terminated.
> /usr/lib/R/etc/Makeconf:121: recipe for target `IntervalTree.o' failed
> make: *** [IntervalTree.o] Error 1
> ERROR: compilation failed for package =91IRanges=92

As far as I understand, this is an issue related to paths/links on Cygwin,
as math.h is indeed installed by the mingw-runtime package, but R
apparently can't find it.

If you want to reproduce the issue just install R through the Cygwin ports,
open an R session and write:

> source("http://bioconductor.org/biocLite.R")
> biocLite()

which will perform a standard Bioconductor installation.

Can anybody please help me to find a fix or workaround for this?
Any help is really appreciated.

Thank you.

Enrico Ferrero
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 383637 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130709/ae875bfc/attachment.obj>
-------------- next part --------------
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list