[R-pkg-devel] trying to understand an error

Kevin Ushey kevinu@hey @ending from gm@il@com
Tue Jun 5 23:53:16 CEST 2018


For what it's worth, the package compiles successfully on my own macOS
machine but it takes a long time to build just because of how large it is.
Perhaps the CRAN build machine is set to interrupt long-running
installations, under the assumption that they're hanging / frozen?

Given how many C++ source files your package has, it may be prudent to
combine some of them into single C++ translation units, so they can be
built faster (avoid re-parsing the heavy BH and RcppEigen headers so many
times during compilation).

A simple way to accomplish this -- suppose you have files A.cpp, B.cpp,
C.cpp and wanted to compile them together. You could create a file:

    #include <src/A.cpp>
    #include <src/B.cpp>
    #include <src/C.cpp>

and then compile that single file to effectively build those three files
all at once. This does of course require that your source files don't have
any accidental symbol collisions, but I think it would be worth
investigating.

Best,
Kevin

On Tue, Jun 5, 2018 at 2:22 PM, Steven Scott <steve.the.bayesian using gmail.com>
wrote:

> Thanks Uwe.   Will do.
>
> On Tue, Jun 5, 2018 at 1:55 PM, Uwe Ligges <ligges using statistik.tu-dortmund.
> de>
> wrote:
>
> > Please ask the Mac maintainer, Simon Urbanek, in such a case where it is
> > not obvious what is going on.
> >
> > Best,
> > Uwe Ligges
> >
> >
> >
> >
> >
> > On 05.06.2018 18:45, Steven Scott wrote:
> >
> >> If there's anyone willing to take a look at the build errors I would
> >> appreciate it.  I'm trying to work a bug report from a downstream user,
> >> and
> >> I think the OSX build has an issue that I don't understand.
> >> Thanks.
> >>
> >> On Thu, May 31, 2018 at 1:49 PM, Steven Scott <
> >> steve.the.bayesian using gmail.com>
> >> wrote:
> >>
> >> Looking at the Boom package results page, I see that it has errors on
> OSX
> >>> and two flavors of Linux.
> >>>
> >>> The OSX install page is here:  https://www.r-project.
> >>> org/nosvn/R.check/r-release-osx-x86_64/Boom-00install.html .
> >>>
> >>> I'm trying to understand the nature of the error.  The last lines say:
> >>>
> >>> clang++ -std=gnu++11 -I"/Library/Frameworks/R.
> framework/Resources/include"
> >>> -DNDEBUG -I. -I../inst/include -IBmath -Imath/cephes
> >>> -I"/Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-c
> >>> apitan-x86_64/Rlib/3.5/BH/include" -I"/Volumes/SSD-Data/Builds/R-
> >>> dev-web/QA/Simon/packages/el-capitan-x86_64/Rlib/3.5/
> RcppEigen/include"
> >>> -I/usr/local/include   -fPIC  -Wall -g -O2 -c
> Models/TimeSeries/ArModel.cpp
> >>> -o Models/TimeSeries/ArModel.o
> >>> clang++ -std=gnu++11 -I"/Library/Frameworks/R.
> framework/Resources/include"
> >>> -DNDEBUG -I. -I../inst/include -IBmath -Imath/cephes
> >>> -I"/Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-c
> >>> apitan-x86_64/Rlib/3.5/BH/include" -I"/Volumes/SSD-Data/Builds/R-
> >>> dev-web/QA/Simon/packages/el-capitan-x86_64/Rlib/3.5/
> RcppEigen/include"
> >>> -I/usr/local/include   -fPIC  -Wall -g -O2 -c
> Models/TimeSeries/ArmaModel.cpp
> >>> -o Models/TimeSeries/ArmaModel.o
> >>> make: *** [Models/TimeSeries/ArmaModel.o] Interrupt: 2
> >>> ERROR: compilation failed for package ‘Boom’
> >>> * removing ‘/Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-
> cap
> >>> itan-x86_64/results/3.5/Boom.Rcheck/Boom’
> >>>
> >>>
> >>> As I read this, it looks like there was no compiler error, but the
> build
> >>> was interrupted for some reason.  Do others read it differently?  If
> I'm
> >>> reading it right, what needs to happen to re-run the check to clear the
> >>> OSX
> >>> error status?
> >>>
> >>> Thanks,
> >>>
> >>> Steve
> >>>
> >>>
> >>         [[alternative HTML version deleted]]
> >>
> >> ______________________________________________
> >> R-package-devel using r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-package-devel
> >>
> >>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list