[R-pkg-devel] check works in ubuntu linux, but get debian-CRAN C++ error

Robert McCulloch robert@e@mcculloch @ending from gm@il@com
Sat Jan 12 23:40:54 CET 2019


Folks,

############################
I am running Ubuntu:
$ lsb_release -a
LSB Version:
core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

############################
my gcc is:
$ g++ --version
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

############################
$ R CMD build rbart  --resave-data
$ R CMD check --as-cran rbart_1.0.tar.gz

gives:
Status: 1 NOTE

00check.log has:
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Robert McCulloch <robert.e.mcculloch using gmail.com>’

$ sudo R CMD INSTALL rbart_1.0.tar.gz
  works fine

############################
But I get a debian error when I submit to CRAN:

Dear maintainer,

package rbart_1.0.tar.gz does not pass the incoming checks automatically,
please see the following pre-tests:
Windows: <
https://win-builder.r-project.org/incoming_pretest/rbart_1.0_20190112_195732/Windows/00check.log
>
Status: 1 NOTE
Debian: <
https://win-builder.r-project.org/incoming_pretest/rbart_1.0_20190112_195732/Debian/00check.log
>
Status: 1 ERROR, 1 NOTE

2.01.2019    20:07          367 00install.out:
* installing *source* package ‘rbart’ ...
checking whether the C++ compiler works... no
configure: error: in `/srv/hornik/tmp/CRAN/rbart.Rcheck/00_pkg_src/rbart':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘rbart’
* removing ‘/srv/hornik/tmp/CRAN/rbart.Rcheck/rbart’

############################
So, I don't know why there is some kind of C++ error in CRAN-debian when it
works fine on
my Ubuntu system.
And I don't know how to get more information on the problem.

rbart_1.0.tar.gz  is at
www.rob-mcculloch.org/rbart_1.0.tar.gz

This is my first time emailing this list, hope I did it in a reasonable way.
thanks,
Rob McCulloch

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list