CRAN Package Check Results for Package BuildSys

Last updated on 2021-05-14 09:50:43 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.0 3.35 30.61 33.96 OK
r-devel-linux-x86_64-debian-gcc 1.1.0 2.40 24.38 26.78 OK
r-devel-linux-x86_64-fedora-clang 1.1.0 50.63 ERROR
r-devel-linux-x86_64-fedora-gcc 1.1.0 39.03 ERROR
r-devel-windows-ix86+x86_64 1.1.0 7.00 53.00 60.00 OK
r-devel-windows-x86_64-gcc10-UCRT 1.1.0 OK
r-patched-linux-x86_64 1.1.0 3.15 30.13 33.28 OK
r-patched-solaris-x86 1.1.0 66.50 OK
r-release-linux-x86_64 1.1.0 3.29 29.78 33.07 OK
r-release-macos-x86_64 1.1.0 OK
r-release-windows-ix86+x86_64 1.1.0 6.00 37.00 43.00 OK
r-oldrel-macos-x86_64 1.1.0 OK
r-oldrel-windows-ix86+x86_64 1.1.0 6.00 40.00 46.00 ERROR

Check Details

Version: 1.1.0
Check: examples
Result: ERROR
    Running examples in ‘BuildSys-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: BuildSys-package
    > ### Title: System for Building and Debugging C/C++ Dynamic Libraries
    > ### Aliases: BuildSys-package BuildSys
    > ### Keywords: package debugging programming utilities
    >
    > ### ** Examples
    >
    > ProjectFolder <- tempdir()
    >
    > # Create source file for finite convolution example in "Writing R Extensions"
    > lines <- c(
    + "#include <R.h>",
    + "#include <Rinternals.h>",
    + "",
    + "SEXP convolve2(SEXP a, SEXP b)",
    + "{",
    + " int na, nb, nab;",
    + " double *xa, *xb, *xab;",
    + " SEXP ab;",
    + "",
    + " a = PROTECT(coerceVector(a, REALSXP));",
    + " b = PROTECT(coerceVector(b, REALSXP));",
    + " na = length(a); nb = length(b); nab = na + nb - 1;",
    + " ab = PROTECT(allocVector(REALSXP, nab));",
    + " xa = REAL(a); xb = REAL(b); xab = REAL(ab);",
    + " for(int i = 0; i < nab; i++) xab[i] = 0.0;",
    + " for(int i = 0; i < na; i++)",
    + " for(int j = 0; j < nb; j++) xab[i + j] += xa[i] * xb[j];",
    + " UNPROTECT(3);",
    + " return ab;",
    + "}")
    >
    > SourceFilePath <- paste0(ProjectFolder, "/convolve.c")
    > writeLines(lines, SourceFilePath)
    >
    > # digest need not be loaded but the digest package needs to be installed
    > # as it is used to create a digest of the project to track the need for
    > # makefile re-creation.
    > require(BuildSys)
    >
    > # create project to build shared library, a flat project with source in current working directory.
    > Project <- new("BSysProject", ProjectFolder)
    >
    > # re-initialise project from current working directory, new("BSysProject") calls this internally
    > Project <- initProjectFromFolder(Project, ProjectFolder)
    >
    > # build the shared library
    > make(Project)
    make[1]: Entering directory '/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD'
    rm convolve.so convolve.o
    rm: cannot remove 'convolve.so': No such file or directory
    rm: cannot remove 'convolve.o': No such file or directory
    make[1]: *** [makefile:26: clean] Error 1
    make[1]: Leaving directory '/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD'
    make[1]: Entering directory '/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD'
    gcc -O0 -g -DDEBUG -D_DEBUG -fPIC -I/data/gannet/ripley/R/R-clang/include -c -o convolve.o convolve.c
    g++ -o convolve.so -shared -fPIC convolve.o -L/data/gannet/ripley/R/R-clang/lib -lR
    /usr/bin/ld: cannot find -lR
    collect2: error: ld returned 1 exit status
    make[1]: *** [makefile:21: convolve.so] Error 1
    make[1]: Leaving directory '/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD'
    BuildSys Project: convolve
    Working Folder: /tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD/
    >
    > # get project library path
    > libraryPath(Project)
    [1] "/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD/convolve.so"
    >
    > # get project source path
    > sourcePath(Project)
    [1] "/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD/"
    >
    > # get project include path
    > includePath(Project)
    [1] "/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD/"
    >
    > # get project object path
    > objPath(Project)
    [1] "/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD/"
    >
    > # get project install library path
    > installLibraryPath(Project)
    NULL
    >
    > # get project install include path
    > installIncludePath(Project)
    NULL
    >
    > # load the library
    > loadLibrary(Project)
    Error in dyn.load(libraryPath(.Object)) :
     unable to load shared object '/tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD/convolve.so':
     /tmp/RtmpbiW3bL/working_dir/RtmpLp9XJD/convolve.so: cannot open shared object file: No such file or directory
    Calls: loadLibrary -> loadLibrary -> .local -> dyn.load
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.1.0
Check: examples
Result: ERROR
    Running examples in ‘BuildSys-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: BuildSys-package
    > ### Title: System for Building and Debugging C/C++ Dynamic Libraries
    > ### Aliases: BuildSys-package BuildSys
    > ### Keywords: package debugging programming utilities
    >
    > ### ** Examples
    >
    > ProjectFolder <- tempdir()
    >
    > # Create source file for finite convolution example in "Writing R Extensions"
    > lines <- c(
    + "#include <R.h>",
    + "#include <Rinternals.h>",
    + "",
    + "SEXP convolve2(SEXP a, SEXP b)",
    + "{",
    + " int na, nb, nab;",
    + " double *xa, *xb, *xab;",
    + " SEXP ab;",
    + "",
    + " a = PROTECT(coerceVector(a, REALSXP));",
    + " b = PROTECT(coerceVector(b, REALSXP));",
    + " na = length(a); nb = length(b); nab = na + nb - 1;",
    + " ab = PROTECT(allocVector(REALSXP, nab));",
    + " xa = REAL(a); xb = REAL(b); xab = REAL(ab);",
    + " for(int i = 0; i < nab; i++) xab[i] = 0.0;",
    + " for(int i = 0; i < na; i++)",
    + " for(int j = 0; j < nb; j++) xab[i + j] += xa[i] * xb[j];",
    + " UNPROTECT(3);",
    + " return ab;",
    + "}")
    >
    > SourceFilePath <- paste0(ProjectFolder, "/convolve.c")
    > writeLines(lines, SourceFilePath)
    >
    > # digest need not be loaded but the digest package needs to be installed
    > # as it is used to create a digest of the project to track the need for
    > # makefile re-creation.
    > require(BuildSys)
    >
    > # create project to build shared library, a flat project with source in current working directory.
    > Project <- new("BSysProject", ProjectFolder)
    >
    > # re-initialise project from current working directory, new("BSysProject") calls this internally
    > Project <- initProjectFromFolder(Project, ProjectFolder)
    >
    > # build the shared library
    > make(Project)
    make[1]: Entering directory '/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H'
    rm convolve.so convolve.o
    rm: cannot remove 'convolve.so': No such file or directory
    rm: cannot remove 'convolve.o': No such file or directory
    make[1]: *** [makefile:26: clean] Error 1
    make[1]: Leaving directory '/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H'
    make[1]: Entering directory '/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H'
    gcc -O0 -g -DDEBUG -D_DEBUG -fPIC -I/data/gannet/ripley/R/R-devel/include -c -o convolve.o convolve.c
    g++ -o convolve.so -shared -fPIC convolve.o -L/data/gannet/ripley/R/R-devel/lib -lR
    /usr/bin/ld: cannot find -lR
    collect2: error: ld returned 1 exit status
    make[1]: *** [makefile:21: convolve.so] Error 1
    make[1]: Leaving directory '/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H'
    BuildSys Project: convolve
    Working Folder: /tmp/Rtmp7lLqqw/working_dir/RtmpOken9H/
    >
    > # get project library path
    > libraryPath(Project)
    [1] "/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H/convolve.so"
    >
    > # get project source path
    > sourcePath(Project)
    [1] "/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H/"
    >
    > # get project include path
    > includePath(Project)
    [1] "/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H/"
    >
    > # get project object path
    > objPath(Project)
    [1] "/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H/"
    >
    > # get project install library path
    > installLibraryPath(Project)
    NULL
    >
    > # get project install include path
    > installIncludePath(Project)
    NULL
    >
    > # load the library
    > loadLibrary(Project)
    Error in dyn.load(libraryPath(.Object)) :
     unable to load shared object '/tmp/Rtmp7lLqqw/working_dir/RtmpOken9H/convolve.so':
     /tmp/Rtmp7lLqqw/working_dir/RtmpOken9H/convolve.so: cannot open shared object file: No such file or directory
    Calls: loadLibrary -> loadLibrary -> .local -> dyn.load
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.1.0
Check: examples
Result: ERROR
    Running examples in 'BuildSys-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: BuildSys-package
    > ### Title: System for Building and Debugging C/C++ Dynamic Libraries
    > ### Aliases: BuildSys-package BuildSys
    > ### Keywords: package debugging programming utilities
    >
    > ### ** Examples
    >
    > ProjectFolder <- tempdir()
    >
    > # Create source file for finite convolution example in "Writing R Extensions"
    > lines <- c(
    + "#include <R.h>",
    + "#include <Rinternals.h>",
    + "",
    + "SEXP convolve2(SEXP a, SEXP b)",
    + "{",
    + " int na, nb, nab;",
    + " double *xa, *xb, *xab;",
    + " SEXP ab;",
    + "",
    + " a = PROTECT(coerceVector(a, REALSXP));",
    + " b = PROTECT(coerceVector(b, REALSXP));",
    + " na = length(a); nb = length(b); nab = na + nb - 1;",
    + " ab = PROTECT(allocVector(REALSXP, nab));",
    + " xa = REAL(a); xb = REAL(b); xab = REAL(ab);",
    + " for(int i = 0; i < nab; i++) xab[i] = 0.0;",
    + " for(int i = 0; i < na; i++)",
    + " for(int j = 0; j < nb; j++) xab[i + j] += xa[i] * xb[j];",
    + " UNPROTECT(3);",
    + " return ab;",
    + "}")
    >
    > SourceFilePath <- paste0(ProjectFolder, "/convolve.c")
    > writeLines(lines, SourceFilePath)
    >
    > # digest need not be loaded but the digest package needs to be installed
    > # as it is used to create a digest of the project to track the need for
    > # makefile re-creation.
    > require(BuildSys)
    >
    > # create project to build shared library, a flat project with source in current working directory.
    > Project <- new("BSysProject", ProjectFolder)
    >
    > # re-initialise project from current working directory, new("BSysProject") calls this internally
    > Project <- initProjectFromFolder(Project, ProjectFolder)
    >
    > # build the shared library
    > make(Project)
    D:/temp/RtmpUlIdHt/convolve.sh: line 3: tee: command not found
    Warning in file(CapturePath, "rt") :
     cannot open file 'D:/temp/RtmpUlIdHt/convolve.log': No such file or directory
    Error in file(CapturePath, "rt") : cannot open the connection
    Calls: make -> make -> .local -> runMake -> file
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64