Closed jwijffels closed 6 years ago
This is really weird. UDPipe does not use math.h
, all includes are at the top of the file and you can verify that it correctly uses cmath
.
Also note that in the error log file trace, no udpipe source is mentioned. The compilation fails during compilation of RcppExports.cpp
and the chain leading to math.h
avoids udpipe completely. So it seems that either the Rcpp* files are wrong, or the whole compiler is somehow broken. (In #43, the udpipe.cpp was compiled as a third file; here the compilation fails during the compilation of the first one.)
Thanks for the feedback. I'll do some more research to find the root cause.
It was fixed by incorporating pull request #54
Instead of #54, I tried to fix this in e5ec349.
Hi,
As the CRAN build farm gives an error when building on Solaris, I'm trying to fix the build errors, so that the package gets accepted by CRAN. When I build the package on Solaris (which is configured as follows: https://www.stats.ox.ac.uk/pub/bdr/Rconfig/r-patched-solaris-x86). with the fix and command explained in issue #43 I still get errors. I've put these below.
This looks like udpipe.cpp does not use cmath but math.h If I look for a solution on this, I see http://kevinushey.github.io/blog/2016/09/14/pitfalls-in-writing-portable-c++98-code/ which pretty much resembles the issues that are raised when building this on Solaris.
How can this be fixed in ufal/udpipe? The following shows the error from building the package: