Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Simon Urbanek
Berend,

I have compiled gmp on an older machine (2008 MacPro) - in fact the same that 
we used until 4.0.0. Apparently there are some new instruction on more recent 
CPUs that gmp leverages if it finds them. Oddly, I could not find any good info 
on this so it's hard to pin-point the difference or exact CPUs that cause this. 
Using the old one should make it fairly safe.

Cheers,
Simon


> On 17/04/2020, at 1:38 AM, Berend Hasselman  wrote:
> 
> Simon,
> 
> The issue has gone away. Hurrah!
> 
> But what actually was the problem and how did you solve it?
> 
> regards and many thanks,
> 
> Berend
> 
> 
>> On 16 Apr 2020, at 15:26, Simon Urbanek  wrote:
>> 
>> Thanks, please re-install Rmpfr and gmp from the Mac master mirror:
>> 
>> install.packages(c("gmp","Rmpfr"),repos="https://mac.R-project.org;)
>> 
>> and let me know if the issue goes away.
>> 
>> Thanks,
>> Simon
>> 
>> 
>> 
>> 
>>> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
>>> 
>>> Can confirm problem:
>>> 
 dpois(mpfr(x, 120), 1000)
>>> 
>>> *** caught illegal operation ***
>>> address 0x1116f7c42, cause 'illegal opcode'
>>> 
>>> Traceback:
>>> 1: .class1(object)
>>> 2: as(value, dataClass)
>>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>>> 4: exp(-lambda)
>>> 5: exp(-lambda)
>>> 6: dpois(mpfr(x, 120), 1000)
>>> 
>>> Possible actions:
>>> 1: abort (with core dump, if enabled)
>>> 2: normal R exit
>>> 3: exit R without saving workspace
>>> 4: exit R saving workspace
>>> Selection: 
>>> 
>>> 
 sessionInfo() # after restart
>>> R version 4.0.0 alpha (2020-04-01 r78130)
>>> Platform: x86_64-apple-darwin17.0 (64-bit)
>>> Running under: macOS Mojave 10.14.6
>>> 
>>> Matrix products: default
>>> BLAS:   
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>>> LAPACK: 
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>>> 
>>> locale:
>>> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>>> 
>>> attached base packages:
>>> [1] stats graphics  grDevices utils datasets  methods   base 
>>> 
>>> loaded via a namespace (and not attached):
>>> [1] compiler_4.0.0
>>> 
>>> 
>>> Carsten
>>> 
>>> 
 On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
 
 
 If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I 
 am experiencing "illegal operations" with "illegal opcode" errors.
 
 
 
 R version 4.0.0 beta (2020-04-14 r78227)
 Platform: x86_64-apple-darwin17.0 (64-bit)
 Running under: macOS Catalina 10.15.4
 
 Matrix products: default
 BLAS:   
 /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
 LAPACK: 
 /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
 
 locale:
 [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods   base 
 
 loaded via a namespace (and not attached):
 [1] compiler_4.0.0
 
 
 
 A simple example session is
 
 <(in+output)>
 
> library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
 
 Attaching package: 'gmp'
 
 The following objects are masked from 'package:base':
 
 %*%, apply, crossprod, matrix, tcrossprod
 
 C code of R package 'Rmpfr': GMP using 64 bits per limb
 
 
 Attaching package: 'Rmpfr'
 
 The following object is masked from 'package:gmp':
 
 outer
 
 The following objects are masked from 'package:stats':
 
 dbinom, dgamma, dnorm, dpois, pnorm
 
 The following objects are masked from 'package:base':
 
 cbind, pmax, pmin, rbind
 
> x <- 1400+ 0:10
> print(dpois(x, 1000), digits =18) ## standard R's double precision
 [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
 [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
 [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
 [10] 6.87515812046484244e-35 4.87599866699657026e-35
> dpois(mpfr(x, 120), 1000)## more accuracy for the same
 
 *** caught illegal operation ***
 address 0x10a6e1c42, cause 'illegal opcode'
 
 Traceback:
 1: .class1(object)
 2: as(value, dataClass)
 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
 4: exp(-lambda)
 5: exp(-lambda)
 6: dpois(mpfr(x, 120), 1000)
 
 Possible actions:
 1: abort (with core dump, if enabled)
 2: normal R exit
 3: exit R without saving workspace
 4: exit R saving workspace
 
 >>> 
 Other trials seem to experience similar issues.
 
 
 regards
 
 Berend
 
 ___
 R-SIG-Mac mailing list
 R-SIG-Mac@r-project.org
 

Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Berend Hasselman
Simon,

The issue has gone away. Hurrah!

But what actually was the problem and how did you solve it?

regards and many thanks,

Berend


> On 16 Apr 2020, at 15:26, Simon Urbanek  wrote:
> 
> Thanks, please re-install Rmpfr and gmp from the Mac master mirror:
> 
> install.packages(c("gmp","Rmpfr"),repos="https://mac.R-project.org;)
> 
> and let me know if the issue goes away.
> 
> Thanks,
> Simon
> 
> 
> 
> 
>> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
>> 
>> Can confirm problem:
>> 
>>> dpois(mpfr(x, 120), 1000)
>> 
>> *** caught illegal operation ***
>> address 0x1116f7c42, cause 'illegal opcode'
>> 
>> Traceback:
>> 1: .class1(object)
>> 2: as(value, dataClass)
>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>> 4: exp(-lambda)
>> 5: exp(-lambda)
>> 6: dpois(mpfr(x, 120), 1000)
>> 
>> Possible actions:
>> 1: abort (with core dump, if enabled)
>> 2: normal R exit
>> 3: exit R without saving workspace
>> 4: exit R saving workspace
>> Selection: 
>> 
>> 
>>> sessionInfo() # after restart
>> R version 4.0.0 alpha (2020-04-01 r78130)
>> Platform: x86_64-apple-darwin17.0 (64-bit)
>> Running under: macOS Mojave 10.14.6
>> 
>> Matrix products: default
>> BLAS:   
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>> 
>> locale:
>> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>> 
>> attached base packages:
>> [1] stats graphics  grDevices utils datasets  methods   base 
>> 
>> loaded via a namespace (and not attached):
>> [1] compiler_4.0.0
>> 
>> 
>> Carsten
>> 
>> 
>>> On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
>>> 
>>> 
>>> If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
>>> experiencing "illegal operations" with "illegal opcode" errors.
>>> 
>>> 
>>> 
>>> R version 4.0.0 beta (2020-04-14 r78227)
>>> Platform: x86_64-apple-darwin17.0 (64-bit)
>>> Running under: macOS Catalina 10.15.4
>>> 
>>> Matrix products: default
>>> BLAS:   
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>>> LAPACK: 
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>>> 
>>> locale:
>>> [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
>>> 
>>> attached base packages:
>>> [1] stats graphics  grDevices utils datasets  methods   base 
>>> 
>>> loaded via a namespace (and not attached):
>>> [1] compiler_4.0.0
>>> 
>>> 
>>> 
>>> A simple example session is
>>> 
>>> <(in+output)>
>>> 
 library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
>>> 
>>> Attaching package: 'gmp'
>>> 
>>> The following objects are masked from 'package:base':
>>> 
>>>  %*%, apply, crossprod, matrix, tcrossprod
>>> 
>>> C code of R package 'Rmpfr': GMP using 64 bits per limb
>>> 
>>> 
>>> Attaching package: 'Rmpfr'
>>> 
>>> The following object is masked from 'package:gmp':
>>> 
>>>  outer
>>> 
>>> The following objects are masked from 'package:stats':
>>> 
>>>  dbinom, dgamma, dnorm, dpois, pnorm
>>> 
>>> The following objects are masked from 'package:base':
>>> 
>>>  cbind, pmax, pmin, rbind
>>> 
 x <- 1400+ 0:10
 print(dpois(x, 1000), digits =18) ## standard R's double precision
>>> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
>>> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
>>> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
>>> [10] 6.87515812046484244e-35 4.87599866699657026e-35
 dpois(mpfr(x, 120), 1000)## more accuracy for the same
>>> 
>>> *** caught illegal operation ***
>>> address 0x10a6e1c42, cause 'illegal opcode'
>>> 
>>> Traceback:
>>> 1: .class1(object)
>>> 2: as(value, dataClass)
>>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>>> 4: exp(-lambda)
>>> 5: exp(-lambda)
>>> 6: dpois(mpfr(x, 120), 1000)
>>> 
>>> Possible actions:
>>> 1: abort (with core dump, if enabled)
>>> 2: normal R exit
>>> 3: exit R without saving workspace
>>> 4: exit R saving workspace
>>> 
>>> >> 
>>> Other trials seem to experience similar issues.
>>> 
>>> 
>>> regards
>>> 
>>> Berend
>>> 
>>> ___
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> 
>> 
>>  [[alternative HTML version deleted]]
>> 
>> ___
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Simon Urbanek
Thanks, please re-install Rmpfr and gmp from the Mac master mirror:

install.packages(c("gmp","Rmpfr"),repos="https://mac.R-project.org;)

and let me know if the issue goes away.

Thanks,
Simon




> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
> 
> Can confirm problem:
> 
>> dpois(mpfr(x, 120), 1000)
> 
> *** caught illegal operation ***
> address 0x1116f7c42, cause 'illegal opcode'
> 
> Traceback:
> 1: .class1(object)
> 2: as(value, dataClass)
> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
> 4: exp(-lambda)
> 5: exp(-lambda)
> 6: dpois(mpfr(x, 120), 1000)
> 
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection: 
> 
> 
>> sessionInfo() # after restart
> R version 4.0.0 alpha (2020-04-01 r78130)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Mojave 10.14.6
> 
> Matrix products: default
> BLAS:   
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
> LAPACK: 
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
> 
> locale:
> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
> 
> attached base packages:
> [1] stats graphics  grDevices utils datasets  methods   base 
> 
> loaded via a namespace (and not attached):
> [1] compiler_4.0.0
> 
> 
> Carsten
> 
> 
>> On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
>> 
>> 
>> If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
>> experiencing "illegal operations" with "illegal opcode" errors.
>> 
>> 
>> 
>> R version 4.0.0 beta (2020-04-14 r78227)
>> Platform: x86_64-apple-darwin17.0 (64-bit)
>> Running under: macOS Catalina 10.15.4
>> 
>> Matrix products: default
>> BLAS:   
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>> 
>> locale:
>> [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
>> 
>> attached base packages:
>> [1] stats graphics  grDevices utils datasets  methods   base 
>> 
>> loaded via a namespace (and not attached):
>> [1] compiler_4.0.0
>> 
>> 
>> 
>> A simple example session is
>> 
>> <(in+output)>
>> 
>>> library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
>> 
>> Attaching package: 'gmp'
>> 
>> The following objects are masked from 'package:base':
>> 
>>   %*%, apply, crossprod, matrix, tcrossprod
>> 
>> C code of R package 'Rmpfr': GMP using 64 bits per limb
>> 
>> 
>> Attaching package: 'Rmpfr'
>> 
>> The following object is masked from 'package:gmp':
>> 
>>   outer
>> 
>> The following objects are masked from 'package:stats':
>> 
>>   dbinom, dgamma, dnorm, dpois, pnorm
>> 
>> The following objects are masked from 'package:base':
>> 
>>   cbind, pmax, pmin, rbind
>> 
>>> x <- 1400+ 0:10
>>> print(dpois(x, 1000), digits =18) ## standard R's double precision
>> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
>> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
>> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
>> [10] 6.87515812046484244e-35 4.87599866699657026e-35
>>> dpois(mpfr(x, 120), 1000)## more accuracy for the same
>> 
>> *** caught illegal operation ***
>> address 0x10a6e1c42, cause 'illegal opcode'
>> 
>> Traceback:
>> 1: .class1(object)
>> 2: as(value, dataClass)
>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>> 4: exp(-lambda)
>> 5: exp(-lambda)
>> 6: dpois(mpfr(x, 120), 1000)
>> 
>> Possible actions:
>> 1: abort (with core dump, if enabled)
>> 2: normal R exit
>> 3: exit R without saving workspace
>> 4: exit R saving workspace
>> 
>> > 
>> Other trials seem to experience similar issues.
>> 
>> 
>> regards
>> 
>> Berend
>> 
>> ___
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 
> 
>   [[alternative HTML version deleted]]
> 
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread carsten . dormann
Here is mine:


Hardware Overview:

  Model Name: MacBook Pro
  Model Identifier: MacBookPro11,1
  Processor Name: Intel Core i7
  Processor Speed: 2,8 GHz
  Number of Processors: 1
  Total Number of Cores: 2
  L2 Cache (per Core): 256 KB
  L3 Cache: 4 MB
  Hyper-Threading Technology: Enabled
  Memory: 16 GB
  Boot ROM Version: 156.0.0.0.0
  SMC Version (system): 2.16f68


(What do you mean, "older": I got it in 2013, seems like yesterday.)
Carsten


> On 16. Apr 2020, at 11:49, Berend Hasselman  wrote:
> 
> 
> 
>> On 16 Apr 2020, at 10:38, Simon Urbanek  wrote:
>> 
>> Carsten and Berend,
>> 
>> It means your CPU doesn't support the instructions used, so your Mac is 
>> likely older. Can you, please, post the output of
>> 
>> system_profiler SPHardwareDataType
>> 
> 
> Here is the output
> 
>  Model Name: Mac mini
>  Model Identifier: Macmini7,1
>  Processor Name: Dual-Core Intel Core i5
>  Processor Speed: 2.8 GHz
>  Number of Processors: 1
>  Total Number of Cores: 2
>  L2 Cache (per Core): 256 KB
>  L3 Cache: 3 MB
>  Hyper-Threading Technology: Enabled
>  Memory: 16 GB
>  Boot ROM Version: 247.0.0.0.0
>  SMC Version (system): 2.24f32
> 
> 
> I am running macOS 10.15.4.
> BTW. I also have the Command_Line_Tools_for_Xcode_11.4 installed.
> 
> 
> regards,
> 
> Berend
> 
>> Thanks,
>> Simon
>> 
>> 
>>> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
>>> 
>>> Can confirm problem:
>>> 
 dpois(mpfr(x, 120), 1000)
>>> 
>>> *** caught illegal operation ***
>>> address 0x1116f7c42, cause 'illegal opcode'
>>> 
>>> Traceback:
>>> 1: .class1(object)
>>> 2: as(value, dataClass)
>>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>>> 4: exp(-lambda)
>>> 5: exp(-lambda)
>>> 6: dpois(mpfr(x, 120), 1000)
>>> 
>>> Possible actions:
>>> 1: abort (with core dump, if enabled)
>>> 2: normal R exit
>>> 3: exit R without saving workspace
>>> 4: exit R saving workspace
>>> Selection: 
>>> 
>>> 
 sessionInfo() # after restart
>>> R version 4.0.0 alpha (2020-04-01 r78130)
>>> Platform: x86_64-apple-darwin17.0 (64-bit)
>>> Running under: macOS Mojave 10.14.6
>>> 
>>> Matrix products: default
>>> BLAS:   
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>>> LAPACK: 
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>>> 
>>> locale:
>>> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>>> 
>>> attached base packages:
>>> [1] stats graphics  grDevices utils datasets  methods   base 
>>> 
>>> loaded via a namespace (and not attached):
>>> [1] compiler_4.0.0
>>> 
>>> 
>>> Carsten
>>> 
>>> 
 On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
 
 
 If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I 
 am experiencing "illegal operations" with "illegal opcode" errors.
 
 
 
 R version 4.0.0 beta (2020-04-14 r78227)
 Platform: x86_64-apple-darwin17.0 (64-bit)
 Running under: macOS Catalina 10.15.4
 
 Matrix products: default
 BLAS:   
 /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
 LAPACK: 
 /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
 
 locale:
 [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods   base 
 
 loaded via a namespace (and not attached):
 [1] compiler_4.0.0
 
 
 
 A simple example session is
 
 <(in+output)>
 
> library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
 
 Attaching package: 'gmp'
 
 The following objects are masked from 'package:base':
 
 %*%, apply, crossprod, matrix, tcrossprod
 
 C code of R package 'Rmpfr': GMP using 64 bits per limb
 
 
 Attaching package: 'Rmpfr'
 
 The following object is masked from 'package:gmp':
 
 outer
 
 The following objects are masked from 'package:stats':
 
 dbinom, dgamma, dnorm, dpois, pnorm
 
 The following objects are masked from 'package:base':
 
 cbind, pmax, pmin, rbind
 
> x <- 1400+ 0:10
> print(dpois(x, 1000), digits =18) ## standard R's double precision
 [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
 [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
 [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
 [10] 6.87515812046484244e-35 4.87599866699657026e-35
> dpois(mpfr(x, 120), 1000)## more accuracy for the same
 
 *** caught illegal operation ***
 address 0x10a6e1c42, cause 'illegal opcode'
 
 Traceback:
 1: .class1(object)
 2: as(value, dataClass)
 3: setDataPart(x, .Call(Math_mpfr, x, 

Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Berend Hasselman



> On 16 Apr 2020, at 10:38, Simon Urbanek  wrote:
> 
> Carsten and Berend,
> 
> It means your CPU doesn't support the instructions used, so your Mac is 
> likely older. Can you, please, post the output of
> 
> system_profiler SPHardwareDataType
> 

Here is the output

  Model Name: Mac mini
  Model Identifier: Macmini7,1
  Processor Name: Dual-Core Intel Core i5
  Processor Speed: 2.8 GHz
  Number of Processors: 1
  Total Number of Cores: 2
  L2 Cache (per Core): 256 KB
  L3 Cache: 3 MB
  Hyper-Threading Technology: Enabled
  Memory: 16 GB
  Boot ROM Version: 247.0.0.0.0
  SMC Version (system): 2.24f32


I am running macOS 10.15.4.
BTW. I also have the Command_Line_Tools_for_Xcode_11.4 installed.


regards,

Berend

> Thanks,
> Simon
> 
> 
>> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
>> 
>> Can confirm problem:
>> 
>>> dpois(mpfr(x, 120), 1000)
>> 
>> *** caught illegal operation ***
>> address 0x1116f7c42, cause 'illegal opcode'
>> 
>> Traceback:
>> 1: .class1(object)
>> 2: as(value, dataClass)
>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>> 4: exp(-lambda)
>> 5: exp(-lambda)
>> 6: dpois(mpfr(x, 120), 1000)
>> 
>> Possible actions:
>> 1: abort (with core dump, if enabled)
>> 2: normal R exit
>> 3: exit R without saving workspace
>> 4: exit R saving workspace
>> Selection: 
>> 
>> 
>>> sessionInfo() # after restart
>> R version 4.0.0 alpha (2020-04-01 r78130)
>> Platform: x86_64-apple-darwin17.0 (64-bit)
>> Running under: macOS Mojave 10.14.6
>> 
>> Matrix products: default
>> BLAS:   
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>> 
>> locale:
>> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>> 
>> attached base packages:
>> [1] stats graphics  grDevices utils datasets  methods   base 
>> 
>> loaded via a namespace (and not attached):
>> [1] compiler_4.0.0
>> 
>> 
>> Carsten
>> 
>> 
>>> On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
>>> 
>>> 
>>> If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
>>> experiencing "illegal operations" with "illegal opcode" errors.
>>> 
>>> 
>>> 
>>> R version 4.0.0 beta (2020-04-14 r78227)
>>> Platform: x86_64-apple-darwin17.0 (64-bit)
>>> Running under: macOS Catalina 10.15.4
>>> 
>>> Matrix products: default
>>> BLAS:   
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>>> LAPACK: 
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>>> 
>>> locale:
>>> [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
>>> 
>>> attached base packages:
>>> [1] stats graphics  grDevices utils datasets  methods   base 
>>> 
>>> loaded via a namespace (and not attached):
>>> [1] compiler_4.0.0
>>> 
>>> 
>>> 
>>> A simple example session is
>>> 
>>> <(in+output)>
>>> 
 library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
>>> 
>>> Attaching package: 'gmp'
>>> 
>>> The following objects are masked from 'package:base':
>>> 
>>>  %*%, apply, crossprod, matrix, tcrossprod
>>> 
>>> C code of R package 'Rmpfr': GMP using 64 bits per limb
>>> 
>>> 
>>> Attaching package: 'Rmpfr'
>>> 
>>> The following object is masked from 'package:gmp':
>>> 
>>>  outer
>>> 
>>> The following objects are masked from 'package:stats':
>>> 
>>>  dbinom, dgamma, dnorm, dpois, pnorm
>>> 
>>> The following objects are masked from 'package:base':
>>> 
>>>  cbind, pmax, pmin, rbind
>>> 
 x <- 1400+ 0:10
 print(dpois(x, 1000), digits =18) ## standard R's double precision
>>> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
>>> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
>>> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
>>> [10] 6.87515812046484244e-35 4.87599866699657026e-35
 dpois(mpfr(x, 120), 1000)## more accuracy for the same
>>> 
>>> *** caught illegal operation ***
>>> address 0x10a6e1c42, cause 'illegal opcode'
>>> 
>>> Traceback:
>>> 1: .class1(object)
>>> 2: as(value, dataClass)
>>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>>> 4: exp(-lambda)
>>> 5: exp(-lambda)
>>> 6: dpois(mpfr(x, 120), 1000)
>>> 
>>> Possible actions:
>>> 1: abort (with core dump, if enabled)
>>> 2: normal R exit
>>> 3: exit R without saving workspace
>>> 4: exit R saving workspace
>>> 
>>> >> 
>>> Other trials seem to experience similar issues.
>>> 
>>> 
>>> regards
>>> 
>>> Berend
>>> 
>>> ___
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> 
>> 
>>  [[alternative HTML version deleted]]
>> 
>> ___
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread peter dalgaard
This one seems happy (not too surprising, I guess)

Hardware Overview:

  Model Name: MacBook Air
  Model Identifier: MacBookAir8,2
  Processor Name: Intel Core i5
  Processor Speed: 1,6 GHz
  Number of Processors: 1
  Total Number of Cores: 2
  L2 Cache (per Core): 256 KB
  L3 Cache: 4 MB
  Hyper-Threading Technology: Enabled
  Memory: 16 GB
  Boot ROM Version: 1037.100.359.0.0 (iBridge: 17.16.14263.0.0,0)

-pd

> On 16 Apr 2020, at 10:43 , Simon Urbanek  wrote:
> 
> ... I should add you can remove the serial number from the output, I need 
> mainly the Processor and Model lines so something like:
> 
>  Model Name: Mac mini
>  Model Identifier: Macmini8,1
>  Processor Name: 6-Core Intel Core i5
>  Processor Speed: 3 GHz
>  Number of Processors: 1
>  Total Number of Cores: 6
>  L2 Cache (per Core): 256 KB
>  L3 Cache: 9 MB
>  Memory: 16 GB
> 
> 
> Thanks,
> Simon
> 
> 
>> On 16/04/2020, at 8:38 PM, Simon Urbanek  wrote:
>> 
>> Carsten and Berend,
>> 
>> It means your CPU doesn't support the instructions used, so your Mac is 
>> likely older. Can you, please, post the output of
>> 
>> system_profiler SPHardwareDataType
>> 
>> Thanks,
>> Simon
>> 
>> 
>>> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
>>> 
>>> Can confirm problem:
>>> 
 dpois(mpfr(x, 120), 1000)
>>> 
>>> *** caught illegal operation ***
>>> address 0x1116f7c42, cause 'illegal opcode'
>>> 
>>> Traceback:
>>> 1: .class1(object)
>>> 2: as(value, dataClass)
>>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>>> 4: exp(-lambda)
>>> 5: exp(-lambda)
>>> 6: dpois(mpfr(x, 120), 1000)
>>> 
>>> Possible actions:
>>> 1: abort (with core dump, if enabled)
>>> 2: normal R exit
>>> 3: exit R without saving workspace
>>> 4: exit R saving workspace
>>> Selection: 
>>> 
>>> 
 sessionInfo() # after restart
>>> R version 4.0.0 alpha (2020-04-01 r78130)
>>> Platform: x86_64-apple-darwin17.0 (64-bit)
>>> Running under: macOS Mojave 10.14.6
>>> 
>>> Matrix products: default
>>> BLAS:   
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>>> LAPACK: 
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>>> 
>>> locale:
>>> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>>> 
>>> attached base packages:
>>> [1] stats graphics  grDevices utils datasets  methods   base 
>>> 
>>> loaded via a namespace (and not attached):
>>> [1] compiler_4.0.0
>>> 
>>> 
>>> Carsten
>>> 
>>> 
 On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
 
 
 If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I 
 am experiencing "illegal operations" with "illegal opcode" errors.
 
 
 
 R version 4.0.0 beta (2020-04-14 r78227)
 Platform: x86_64-apple-darwin17.0 (64-bit)
 Running under: macOS Catalina 10.15.4
 
 Matrix products: default
 BLAS:   
 /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
 LAPACK: 
 /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
 
 locale:
 [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods   base 
 
 loaded via a namespace (and not attached):
 [1] compiler_4.0.0
 
 
 
 A simple example session is
 
 <(in+output)>
 
> library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
 
 Attaching package: 'gmp'
 
 The following objects are masked from 'package:base':
 
 %*%, apply, crossprod, matrix, tcrossprod
 
 C code of R package 'Rmpfr': GMP using 64 bits per limb
 
 
 Attaching package: 'Rmpfr'
 
 The following object is masked from 'package:gmp':
 
 outer
 
 The following objects are masked from 'package:stats':
 
 dbinom, dgamma, dnorm, dpois, pnorm
 
 The following objects are masked from 'package:base':
 
 cbind, pmax, pmin, rbind
 
> x <- 1400+ 0:10
> print(dpois(x, 1000), digits =18) ## standard R's double precision
 [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
 [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
 [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
 [10] 6.87515812046484244e-35 4.87599866699657026e-35
> dpois(mpfr(x, 120), 1000)## more accuracy for the same
 
 *** caught illegal operation ***
 address 0x10a6e1c42, cause 'illegal opcode'
 
 Traceback:
 1: .class1(object)
 2: as(value, dataClass)
 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
 4: exp(-lambda)
 5: exp(-lambda)
 6: dpois(mpfr(x, 120), 1000)
 
 Possible actions:
 1: abort (with core dump, if enabled)

Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Simon Urbanek
... I should add you can remove the serial number from the output, I need 
mainly the Processor and Model lines so something like:

  Model Name: Mac mini
  Model Identifier: Macmini8,1
  Processor Name: 6-Core Intel Core i5
  Processor Speed: 3 GHz
  Number of Processors: 1
  Total Number of Cores: 6
  L2 Cache (per Core): 256 KB
  L3 Cache: 9 MB
  Memory: 16 GB


Thanks,
Simon


> On 16/04/2020, at 8:38 PM, Simon Urbanek  wrote:
> 
> Carsten and Berend,
> 
> It means your CPU doesn't support the instructions used, so your Mac is 
> likely older. Can you, please, post the output of
> 
> system_profiler SPHardwareDataType
> 
> Thanks,
> Simon
> 
> 
>> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
>> 
>> Can confirm problem:
>> 
>>> dpois(mpfr(x, 120), 1000)
>> 
>> *** caught illegal operation ***
>> address 0x1116f7c42, cause 'illegal opcode'
>> 
>> Traceback:
>> 1: .class1(object)
>> 2: as(value, dataClass)
>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>> 4: exp(-lambda)
>> 5: exp(-lambda)
>> 6: dpois(mpfr(x, 120), 1000)
>> 
>> Possible actions:
>> 1: abort (with core dump, if enabled)
>> 2: normal R exit
>> 3: exit R without saving workspace
>> 4: exit R saving workspace
>> Selection: 
>> 
>> 
>>> sessionInfo() # after restart
>> R version 4.0.0 alpha (2020-04-01 r78130)
>> Platform: x86_64-apple-darwin17.0 (64-bit)
>> Running under: macOS Mojave 10.14.6
>> 
>> Matrix products: default
>> BLAS:   
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>> 
>> locale:
>> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>> 
>> attached base packages:
>> [1] stats graphics  grDevices utils datasets  methods   base 
>> 
>> loaded via a namespace (and not attached):
>> [1] compiler_4.0.0
>> 
>> 
>> Carsten
>> 
>> 
>>> On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
>>> 
>>> 
>>> If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
>>> experiencing "illegal operations" with "illegal opcode" errors.
>>> 
>>> 
>>> 
>>> R version 4.0.0 beta (2020-04-14 r78227)
>>> Platform: x86_64-apple-darwin17.0 (64-bit)
>>> Running under: macOS Catalina 10.15.4
>>> 
>>> Matrix products: default
>>> BLAS:   
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>>> LAPACK: 
>>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>>> 
>>> locale:
>>> [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
>>> 
>>> attached base packages:
>>> [1] stats graphics  grDevices utils datasets  methods   base 
>>> 
>>> loaded via a namespace (and not attached):
>>> [1] compiler_4.0.0
>>> 
>>> 
>>> 
>>> A simple example session is
>>> 
>>> <(in+output)>
>>> 
 library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
>>> 
>>> Attaching package: 'gmp'
>>> 
>>> The following objects are masked from 'package:base':
>>> 
>>>  %*%, apply, crossprod, matrix, tcrossprod
>>> 
>>> C code of R package 'Rmpfr': GMP using 64 bits per limb
>>> 
>>> 
>>> Attaching package: 'Rmpfr'
>>> 
>>> The following object is masked from 'package:gmp':
>>> 
>>>  outer
>>> 
>>> The following objects are masked from 'package:stats':
>>> 
>>>  dbinom, dgamma, dnorm, dpois, pnorm
>>> 
>>> The following objects are masked from 'package:base':
>>> 
>>>  cbind, pmax, pmin, rbind
>>> 
 x <- 1400+ 0:10
 print(dpois(x, 1000), digits =18) ## standard R's double precision
>>> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
>>> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
>>> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
>>> [10] 6.87515812046484244e-35 4.87599866699657026e-35
 dpois(mpfr(x, 120), 1000)## more accuracy for the same
>>> 
>>> *** caught illegal operation ***
>>> address 0x10a6e1c42, cause 'illegal opcode'
>>> 
>>> Traceback:
>>> 1: .class1(object)
>>> 2: as(value, dataClass)
>>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>>> 4: exp(-lambda)
>>> 5: exp(-lambda)
>>> 6: dpois(mpfr(x, 120), 1000)
>>> 
>>> Possible actions:
>>> 1: abort (with core dump, if enabled)
>>> 2: normal R exit
>>> 3: exit R without saving workspace
>>> 4: exit R saving workspace
>>> 
>>> >> 
>>> Other trials seem to experience similar issues.
>>> 
>>> 
>>> regards
>>> 
>>> Berend
>>> 
>>> ___
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> 
>> 
>>  [[alternative HTML version deleted]]
>> 
>> ___
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> 

Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Simon Urbanek
Carsten and Berend,

It means your CPU doesn't support the instructions used, so your Mac is likely 
older. Can you, please, post the output of

system_profiler SPHardwareDataType

Thanks,
Simon


> On 16/04/2020, at 7:21 PM, carsten.dorm...@biom.uni-freiburg.de wrote:
> 
> Can confirm problem:
> 
>> dpois(mpfr(x, 120), 1000)
> 
> *** caught illegal operation ***
> address 0x1116f7c42, cause 'illegal opcode'
> 
> Traceback:
> 1: .class1(object)
> 2: as(value, dataClass)
> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
> 4: exp(-lambda)
> 5: exp(-lambda)
> 6: dpois(mpfr(x, 120), 1000)
> 
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection: 
> 
> 
>> sessionInfo() # after restart
> R version 4.0.0 alpha (2020-04-01 r78130)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Mojave 10.14.6
> 
> Matrix products: default
> BLAS:   
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
> LAPACK: 
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
> 
> locale:
> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
> 
> attached base packages:
> [1] stats graphics  grDevices utils datasets  methods   base 
> 
> loaded via a namespace (and not attached):
> [1] compiler_4.0.0
> 
> 
> Carsten
> 
> 
>> On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
>> 
>> 
>> If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
>> experiencing "illegal operations" with "illegal opcode" errors.
>> 
>> 
>> 
>> R version 4.0.0 beta (2020-04-14 r78227)
>> Platform: x86_64-apple-darwin17.0 (64-bit)
>> Running under: macOS Catalina 10.15.4
>> 
>> Matrix products: default
>> BLAS:   
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>> 
>> locale:
>> [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
>> 
>> attached base packages:
>> [1] stats graphics  grDevices utils datasets  methods   base 
>> 
>> loaded via a namespace (and not attached):
>> [1] compiler_4.0.0
>> 
>> 
>> 
>> A simple example session is
>> 
>> <(in+output)>
>> 
>>> library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
>> 
>> Attaching package: 'gmp'
>> 
>> The following objects are masked from 'package:base':
>> 
>>   %*%, apply, crossprod, matrix, tcrossprod
>> 
>> C code of R package 'Rmpfr': GMP using 64 bits per limb
>> 
>> 
>> Attaching package: 'Rmpfr'
>> 
>> The following object is masked from 'package:gmp':
>> 
>>   outer
>> 
>> The following objects are masked from 'package:stats':
>> 
>>   dbinom, dgamma, dnorm, dpois, pnorm
>> 
>> The following objects are masked from 'package:base':
>> 
>>   cbind, pmax, pmin, rbind
>> 
>>> x <- 1400+ 0:10
>>> print(dpois(x, 1000), digits =18) ## standard R's double precision
>> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
>> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
>> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
>> [10] 6.87515812046484244e-35 4.87599866699657026e-35
>>> dpois(mpfr(x, 120), 1000)## more accuracy for the same
>> 
>> *** caught illegal operation ***
>> address 0x10a6e1c42, cause 'illegal opcode'
>> 
>> Traceback:
>> 1: .class1(object)
>> 2: as(value, dataClass)
>> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
>> 4: exp(-lambda)
>> 5: exp(-lambda)
>> 6: dpois(mpfr(x, 120), 1000)
>> 
>> Possible actions:
>> 1: abort (with core dump, if enabled)
>> 2: normal R exit
>> 3: exit R without saving workspace
>> 4: exit R saving workspace
>> 
>> > 
>> Other trials seem to experience similar issues.
>> 
>> 
>> regards
>> 
>> Berend
>> 
>> ___
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 
> 
>   [[alternative HTML version deleted]]
> 
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread carsten . dormann
Can confirm problem:

> dpois(mpfr(x, 120), 1000)

 *** caught illegal operation ***
address 0x1116f7c42, cause 'illegal opcode'

Traceback:
 1: .class1(object)
 2: as(value, dataClass)
 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
 4: exp(-lambda)
 5: exp(-lambda)
 6: dpois(mpfr(x, 120), 1000)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: 


> sessionInfo() # after restart
R version 4.0.0 alpha (2020-04-01 r78130)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   
/Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: 
/Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base 

loaded via a namespace (and not attached):
[1] compiler_4.0.0


Carsten


> On 16. Apr 2020, at 08:56, Berend Hasselman  wrote:
> 
> 
> If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
> experiencing "illegal operations" with "illegal opcode" errors.
> 
> 
> 
> R version 4.0.0 beta (2020-04-14 r78227)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Catalina 10.15.4
> 
> Matrix products: default
> BLAS:   
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
> LAPACK: 
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
> 
> locale:
> [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
> 
> attached base packages:
> [1] stats graphics  grDevices utils datasets  methods   base 
> 
> loaded via a namespace (and not attached):
> [1] compiler_4.0.0
> 
> 
> 
> A simple example session is
> 
> <(in+output)>
> 
>> library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
> 
> Attaching package: 'gmp'
> 
> The following objects are masked from 'package:base':
> 
>%*%, apply, crossprod, matrix, tcrossprod
> 
> C code of R package 'Rmpfr': GMP using 64 bits per limb
> 
> 
> Attaching package: 'Rmpfr'
> 
> The following object is masked from 'package:gmp':
> 
>outer
> 
> The following objects are masked from 'package:stats':
> 
>dbinom, dgamma, dnorm, dpois, pnorm
> 
> The following objects are masked from 'package:base':
> 
>cbind, pmax, pmin, rbind
> 
>> x <- 1400+ 0:10
>> print(dpois(x, 1000), digits =18) ## standard R's double precision
> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
> [10] 6.87515812046484244e-35 4.87599866699657026e-35
>> dpois(mpfr(x, 120), 1000)## more accuracy for the same
> 
> *** caught illegal operation ***
> address 0x10a6e1c42, cause 'illegal opcode'
> 
> Traceback:
> 1: .class1(object)
> 2: as(value, dataClass)
> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
> 4: exp(-lambda)
> 5: exp(-lambda)
> 6: dpois(mpfr(x, 120), 1000)
> 
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> 
>  
> Other trials seem to experience similar issues.
> 
> 
> regards
> 
> Berend
> 
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Patrick Schratz
Works just fine for me on 10.15.4 and r78227. You might want to check your 
compiler setup against the recommended toolchain and reinstall all packages for 
R 4.0.

``` r
library(gmp)
#>
#> Attaching package: 'gmp'
#> The following objects are masked from 'package:base':
#>
#> %*%, apply, crossprod, matrix, tcrossprod
library(Rmpfr)
#> C code of R package 'Rmpfr': GMP using 64 bits per limb
#>
#> Attaching package: 'Rmpfr'
#> The following object is masked from 'package:gmp':
#>
#> outer
#> The following objects are masked from 'package:stats':
#>
#> dbinom, dgamma, dnorm, dpois, pnorm
#> The following objects are masked from 'package:base':
#>
#> cbind, pmax, pmin, rbind

x <- 1400+ 0:10
print(dpois(x, 1000), digits =18)
#> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
#> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
#> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
#> [10] 6.87515812046484244e-35 4.87599866699657026e-35
dpois(mpfr(x, 120), 1000)##
#> 11 'mpfr' numbers of precision 120 bits
#> [1] 1.4667733441965683030895281895730571526e-33
#> [2] 1.0469474262645027145535533116153155973e-33
#> [3] 7.4675280047396769939625771156584564775e-34
#> [4] 5.3225431252599265815841604530708884358e-34
#> [5] 3.7909851319515146592479775306772709641e-34
#> [6] 2.698210058328480184518133473791651932e-34
#> [7] 1.9190683202905264470256994834933513035e-34
#> [8] 1.363943369076422492788795261914005e-34
#> [9] 9.6870977917359552028095090875439730376e-35
#> [10] 6.8751581204655466308087360450986323895e-35
#> [11] 4.8759986669968415821338553511337818329e-35
```

Created on 2020-04-16 by the [reprex 
package](https://reprex.tidyverse.org) (v0.3.0)
On 16. Apr 2020, 08:56 +0200, Berend Hasselman , wrote:
>
> If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
> experiencing "illegal operations" with "illegal opcode" errors.
>
> 
>
> R version 4.0.0 beta (2020-04-14 r78227)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Catalina 10.15.4
>
> Matrix products: default
> BLAS: 
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
> LAPACK: 
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>
> locale:
> [1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> loaded via a namespace (and not attached):
> [1] compiler_4.0.0
>
> 
>
> A simple example session is
>
> <(in+output)>
>
> > library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")
>
> Attaching package: 'gmp'
>
> The following objects are masked from 'package:base':
>
> %*%, apply, crossprod, matrix, tcrossprod
>
> C code of R package 'Rmpfr': GMP using 64 bits per limb
>
>
> Attaching package: 'Rmpfr'
>
> The following object is masked from 'package:gmp':
>
> outer
>
> The following objects are masked from 'package:stats':
>
> dbinom, dgamma, dnorm, dpois, pnorm
>
> The following objects are masked from 'package:base':
>
> cbind, pmax, pmin, rbind
>
> > x <- 1400+ 0:10
> > print(dpois(x, 1000), digits =18) ## standard R's double precision
> [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
> [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
> [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
> [10] 6.87515812046484244e-35 4.87599866699657026e-35
> > dpois(mpfr(x, 120), 1000)## more accuracy for the same
>
> *** caught illegal operation ***
> address 0x10a6e1c42, cause 'illegal opcode'
>
> Traceback:
> 1: .class1(object)
> 2: as(value, dataClass)
> 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
> 4: exp(-lambda)
> 5: exp(-lambda)
> 6: dpois(mpfr(x, 120), 1000)
>
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
>
> 
> Other trials seem to experience similar issues.
>
>
> regards
>
> Berend
>
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[R-SIG-Mac] Problem R-4.0 beta and Rmpfr (pre-release)

2020-04-16 Thread Berend Hasselman


If the pre-release binary of Rmpfr is intended for the R-4.0 beta then I am 
experiencing "illegal operations" with "illegal opcode" errors.



R version 4.0.0 beta (2020-04-14 r78227)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.4

Matrix products: default
BLAS:   
/Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: 
/Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base 

loaded via a namespace (and not attached):
[1] compiler_4.0.0



A simple example session is

<(in+output)>

> library(gmp,lib.loc=".");library(Rmpfr,lib.loc=".")

Attaching package: 'gmp'

The following objects are masked from 'package:base':

%*%, apply, crossprod, matrix, tcrossprod

C code of R package 'Rmpfr': GMP using 64 bits per limb


Attaching package: 'Rmpfr'

The following object is masked from 'package:gmp':

outer

The following objects are masked from 'package:stats':

dbinom, dgamma, dnorm, dpois, pnorm

The following objects are masked from 'package:base':

cbind, pmax, pmin, rbind

> x <- 1400+ 0:10
> print(dpois(x, 1000), digits =18) ## standard R's double precision
 [1] 1.46677334419659338e-33 1.04694742626454156e-33 7.46752800474106016e-34
 [4] 5.32254312525935864e-34 3.79098513195210765e-34 2.69821005832831136e-34
 [7] 1.91906832029070091e-34 1.36394336907638670e-34 9.68709779173582432e-35
[10] 6.87515812046484244e-35 4.87599866699657026e-35
> dpois(mpfr(x, 120), 1000)## more accuracy for the same

 *** caught illegal operation ***
address 0x10a6e1c42, cause 'illegal opcode'

Traceback:
 1: .class1(object)
 2: as(value, dataClass)
 3: setDataPart(x, .Call(Math_mpfr, x, .Math.codes[[.Generic]]))
 4: exp(-lambda)
 5: exp(-lambda)
 6: dpois(mpfr(x, 120), 1000)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

https://stat.ethz.ch/mailman/listinfo/r-sig-mac