Skip to content

[R-pkg-devel] Need help for Debian check error

4 messages · Zhang, Lixiang, Duncan Murdoch, Iñaki Ucar +1 more

#
Sorry to interrupt, but I have some problems that I don't understand about the check result. It shows that it passes the check using R CMD check --as-cran. But when I submit to cran, it shows me an error on Debian:

* checking whether package ?cps? can be installed ... [8s/8s] ERROR
Installation failed.

I don't know why is that happening and how should I fix it. Thanks a lot for your help.

Best,
Lixiang

PS: here are the details

Dear maintainer,

package cps_1.0.tar.gz does not pass the incoming checks automatically, please see the following pre-tests:
Windows: <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2Fcps_1.0_20190425_175509%2FWindows%2F00check.log&amp;data=02%7C01%7Clzz46%40psu.edu%7Cb89881b3b8a2475bd86508d6c9984a77%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C636918053268255366&amp;sdata=5%2BBvfk3P%2FrLqPnit1Y%2B7tbweQzqdLsz9ZcIq3Vac%2B7o%3D&amp;reserved=0>
Status: 1 NOTE
Debian: <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2Fcps_1.0_20190425_175509%2FDebian%2F00check.log&amp;data=02%7C01%7Clzz46%40psu.edu%7Cb89881b3b8a2475bd86508d6c9984a77%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C636918053268255366&amp;sdata=oah7uKaY4vJu598t%2FOviixwXcCRbad9Z22Xn3SAQ0qU%3D&amp;reserved=0>
Status: 1 ERROR, 1 NOTE



Please fix all problems and resubmit a fixed version via the webform.
If you are not sure how to fix the problems shown, please ask for help on the R-package-devel mailing list:
<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-package-devel&amp;data=02%7C01%7Clzz46%40psu.edu%7Cb89881b3b8a2475bd86508d6c9984a77%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C636918053268255366&amp;sdata=BdYqaJ%2FCcCK1zkc4nDRbOCBImN5EqprOEprLr1sXTU0%3D&amp;reserved=0>
If you are fairly certain the rejection is a false positive, please reply-all to this message and explain.

More details are given in the directory:
<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2Fcps_1.0_20190425_175509%2F&amp;data=02%7C01%7Clzz46%40psu.edu%7Cb89881b3b8a2475bd86508d6c9984a77%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C636918053268255366&amp;sdata=fZ5CtQ0YhwqddciDLi6kxts3GQhpwCa3j49yhpKwuwU%3D&amp;reserved=0>
The files will be removed after roughly 7 days.

No strong reverse dependencies to be checked.

Best regards,
CRAN teams' auto-check service

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 00details.log
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20190430/3d6bec70/attachment.log>
#
On 30/04/2019 3:53 p.m., Zhang, Lixiang wrote:
I can't see your package, but the file

https://win-builder.r-project.org/incoming_pretest/cps_1.0_20190425_175509/Debian/00install.out

contains an explanation of the build error:

huge.cpp: In function ?float match_fast(float*, float*, float*, int, 
int, float*)?:
huge.cpp:374:16: error: ?HUGE? was not declared in this scope
          minval=HUGE;


So you need to work out why HUGE is defined on Windows but not on Debian.

Duncan Murdoch
#
On Tue, 30 Apr 2019 at 22:06, Zhang, Lixiang <lzz46 at psu.edu> wrote:
See the 00install.out:

https://win-builder.r-project.org/incoming_pretest/cps_1.0_20190425_175509/Debian/00install.out

huge.cpp:374:16: error: ?HUGE? was not declared in this scope
         minval=HUGE;
                ^~~~
#
On Tue, 30 Apr 2019 19:53:49 +0000
"Zhang, Lixiang" <lzz46 at psu.edu> wrote:

            
The e-mail from CRAN also said,
followed by a link scrambled by your e-mail software. When you follow
the link, you can find this file:

https://win-builder.r-project.org/incoming_pretest/cps_1.0_20190425_175509/Debian/00install.out

which lists the messages from the compiler produced when trying to
build your package on a Debian machine. "HUGE" is not an identifier
defined anywhere in C++ standard (AFAIK), but in standard <cmath>
header you can find HUGE_VAL
<https://en.cppreference.com/w/cpp/numeric/math/HUGE_VAL>, which seems
to do what you mean.