pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/55328: math/R fails to build



The following reply was made to PR pkg/55328; it has been noted by GNATS.

From: Jukka Ruohonen <jruohonen%iki.fi@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: jruohonen%iki.fi@localhost
Subject: Re: pkg/55328: math/R fails to build
Date: Wed, 15 Jul 2020 09:16:22 +0300

 Fortunately, this issue is simpler than I feared. Thus, I will close this
 PR and file another one if and when I better understand what is wrong.
 
 In any case, the problem is related to unicode; R works fine on NetBSD with,
 e.g., LC_ALL="en_US.ISO8859-1".  However, with UTF-8 most functions that
 invoke graphical output systematically segfault. An example:
 
 $ locale
 LANG=""
 LC_CTYPE="en_US.UTF-8"
 LC_COLLATE="C"
 LC_TIME="en_US.UTF-8"
 LC_NUMERIC="en_US.UTF-8"
 LC_MONETARY="en_US.UTF-8"
 LC_MESSAGES="en_US.UTF-8"
 LC_ALL="en_US.UTF-8"
 $ R
 
 R version 3.6.1 (2019-07-05) -- "Action of the Toes"
 Copyright (C) 2019 The R Foundation for Statistical Computing
 Platform: x86_64--netbsd (64-bit)
 
 R is free software and comes with ABSOLUTELY NO WARRANTY.
 You are welcome to redistribute it under certain conditions.
 Type 'license()' or 'licence()' for distribution details.
 
   Natural language support but running in an English locale
 
 R is a collaborative project with many contributors.
 Type 'contributors()' for more information and
 'citation()' on how to cite R or R packages in publications.
 
 Type 'demo()' for some demos, 'help()' for on-line help, or
 'help.start()' for an HTML browser interface to help.
 Type 'q()' to quit R.
 
 During startup - Warning message:
 Setting LC_COLLATE failed, using "C" 
 > hist(rnorm(3000))
 
  *** caught segfault ***
 address 0x64c, cause 'memory not mapped'
 
 Traceback:
  1: tolower(breaks)
  2: match.arg(tolower(breaks), c("sturges", "fd", "freedman-diaconis", "scott"))
  3: hist.default(rnorm(3000))
  4: hist(rnorm(3000))
 
 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: 1
 R is aborting now ...
 Memory fault (core dumped) 
 


Home | Main Index | Thread Index | Old Index