Bug 246310 - devel/RStudio fails to build in poudriere on 12.1 Stable with error: no member named 'R_Slave' in 'structRstart' Rp->R_Slave = FALSE ;
Summary: devel/RStudio fails to build in poudriere on 12.1 Stable with error: no membe...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-08 15:29 UTC by Robert Cina
Modified: 2020-05-09 03:10 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2020-05-08 15:29:40 UTC
The port devel/RStudio fails to compile for me using poudriere on 12.1 Stable with error: no member named 'R_Slave' in 'structRstart'
   Rp->R_Slave = FALSE ;

Below is the excerpt of the build log failure:

[ 53%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/session/REmbeddedPosix.cpp.o
cd /wrkdirs/usr/ports/devel/RStudio/work/.build/src/cpp/r && /usr/bin/c++  -DBOOST_ASIO_DISABLE_KQUEUE -DBOOST_ENABLE_ASSERT_HANDLER -DBOOST_SIGNALS_NO_DEPRECATION_WARNING -DRSTUDIO_BOOST_NAMESPACE=boost -DRSTUDIO_BOOST_SIGNALS_VERSION=2 -DWEBSOCKETPP_STRICT_MASKING -D_FORTIFY_SOURCE=2 -D_WEBSOCKETPP_NO_CPP11_MEMORY_=1 -I/wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5042/src/cpp/r/include -I/wrkdirs/usr/ports/devel/RStudio/work/.build/src/cpp/r -I/wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5042/src/cpp/core/include -I/usr/local/lib/R/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -std=c++0x -std=c++11 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -fPIC   -Wall -pthread -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4 -fPIC -o CMakeFiles/rstudio-r.dir/session/REmbeddedPosix.cpp.o -c /wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5042/src/cpp/r/session/REmbeddedPosix.cpp
/wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5042/src/cpp/r/session/REmbeddedPosix.cpp:107:8: error: no member named 'R_Slave' in 'structRstart'
   Rp->R_Slave = FALSE ;
   ~~  ^
1 error generated.
*** [src/cpp/r/CMakeFiles/rstudio-r.dir/session/REmbeddedPosix.cpp.o] Error code 1

make[3]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
1 error

make[3]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
*** [src/cpp/r/CMakeFiles/rstudio-r.dir/all] Error code 2

make[2]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
--- src/cpp/desktop/CMakeFiles/rstudio.dir/all ---
A failure has been detected in another branch of the parallel make

make[3]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
*** [src/cpp/desktop/CMakeFiles/rstudio.dir/all] Error code 2

make[2]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
--- src/gwt/CMakeFiles/gwt_build.dir/all ---
     [java]    Compile of permutations succeeded
     [java]    Compilation succeeded -- 567.152s
     [java] Linking into /wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5042/src/gwt/www/rstudio; Writing extras to /wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5042/src/gwt/extras/rstudio
     [java]    Link succeeded
     [java]    Linking succeeded -- 1.861s

build:

BUILD SUCCESSFUL
Total time: 10 minutes 47 seconds
A failure has been detected in another branch of the parallel make

make[3]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
*** [src/gwt/CMakeFiles/gwt_build.dir/all] Error code 2

make[2]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
3 errors

make[2]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
*** [all] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
1 error

make[1]: stopped in /wrkdirs/usr/ports/devel/RStudio/work/.build
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/RStudio
=>> Cleaning up wrkdir
===>  Cleaning for RStudio-1.2.5042
build of devel/RStudio | RStudio-1.2.5042 ended at Fri May  8 11:12:26 EDT 2020
build time: 00:13:52
!!! build failure encountered !!!
Comment 1 Rainer Hurling freebsd_committer freebsd_triage 2020-05-08 19:15:23 UTC
This error occurs since math/R was updated to version 4.0.0. From this R version on, they changed the names of two command line arguments[1].

RStudio integrated these changes after release 1.2.5042[2]. So we have to wait for the next release of RStudio for it, I am afraid.


[1] https://github.com/wch/r-source/blob/06185bd431beb9b6e0883193273d1779ef2c6a2c/src/main/CommandLineArgs.c#L151-L153
[2] https://github.com/rstudio/rstudio/issues/5923
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2020-05-09 03:10:10 UTC
Fixed.
Thanks for your report.
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-05-09 03:10:18 UTC
A commit references this bug:

Author: yuri
Date: Sat May  9 03:10:06 UTC 2020
New revision: 534702
URL: https://svnweb.freebsd.org/changeset/ports/534702

Log:
  devel/RStudio: Unbreak the build after math/R upgrade to 4.0.0

  Backport the patch.

  PR:		246310
  Reported by:	fallout, Robert Cina <transitive@gmail.com>

Changes:
  head/devel/RStudio/Makefile
  head/devel/RStudio/distinfo
  head/devel/RStudio/files/patch-src_cpp_r_session_REmbeddedPosix.cpp