Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 626062

Summary: sci-mathematics/rstudio-1.0.153 fails to build
Product: Gentoo Linux Reporter: Harris Landgarten <harrisl>
Component: Current packagesAssignee: Mark Wright <gienah>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, O01eg, sobhan, zeekec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build long

Description Harris Landgarten 2017-07-24 17:40:18 UTC
This is the error:

<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
/var/tmp/paludis/sci-mathematics-rstudio-1.0.153/work/rstudio-1.0.153/src/cpp/r/RRoutines.cpp: In function 'void rstudio::r::routines::registerAll()':
/var/tmp/paludis/sci-mathematics-rstudio-1.0.153/work/rstudio-1.0.153/src/cpp/r/RRoutines.cpp:62:21: error: 'struct R_CMethodDef' has no member named 'styles'; did you mean 'types'?
       nullMethodDef.styles = NULL;
Comment 1 Jonas Stein gentoo-dev 2017-07-24 18:02:36 UTC
Thank you for the report. Please attach the logfiles
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29
and reopen this ticket (Status:unconfirmed).
Comment 2 Harris Landgarten 2017-07-24 18:11:12 UTC
Created attachment 486718 [details]
build long
Comment 3 Volkmar Glauche 2017-07-25 08:20:46 UTC
Google found this thread related to the error message:

https://forums.gentoo.org/viewtopic-p-8083852.html

(You have to scroll down to the end.) Apparently, rstudio-1.0.x is not compatible with R>3.4. For R 3.4, rstudio 1.1.x seems to be needed.
Comment 4 Bernd Feige 2017-08-03 10:34:00 UTC
See https://bugs.gentoo.org/show_bug.cgi?id=622254 if you want to try RStudio-1.1.
Comment 5 Sobhan Mohammadpour (RETIRED) gentoo-dev 2017-09-29 18:06:16 UTC
i can confirm that this happens...
Comment 6 yuri.from.spb 2017-09-30 00:01:45 UTC
This happened to me. I just created patch that removes line "nullMethodDef.styles = NULL;@" in src/cpp/r/RRoutines.cpp because it seems that 'styles' is not used anywhere in the sources.
Rstudio works now.

There was one more bug when I was installing Rstudio - "‘cerr’ is not a member of ‘std’" in src/cpp/core/Trace.cpp. It was solved by adding "#include <iostream>".
Comment 7 Larry the Git Cow gentoo-dev 2018-07-03 02:39:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9c2dbc923a64ce929596357f22f9d04c16250ac

commit d9c2dbc923a64ce929596357f22f9d04c16250ac
Author:     Mark Wright <gienah@gentoo.org>
AuthorDate: 2018-07-03 02:37:21 +0000
Commit:     Mark Wright <gienah@gentoo.org>
CommitDate: 2018-07-03 02:38:45 +0000

    sci-mathematics/rstudio: Add USE libressl
    
    Thanks to Fernando Canales for the fix for 655408.
    Thanks Harris Landgarten, Volkmar Glauche, sobham and
    yuri.from.spb@gmail.com for reporting that 1.0.153 failed to
    build with R 3.4.1, this should be fixed in 1.1383 and
    later.
    Closes: https://bugs.gentoo.org/655408
    Closes: https://bugs.gentoo.org/626062
    Package-Manager: Portage-2.3.41, Repoman-2.3.9

 sci-mathematics/rstudio/rstudio-1.1.453.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)