Bug 241391 - devel/RStudio: Fails to build: build.xml:110: Java returned: 1
Summary: devel/RStudio: Fails to build: build.xml:110: Java returned: 1
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-21 11:36 UTC by O. Hartmann
Modified: 2019-10-21 16:12 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 O. Hartmann 2019-10-21 11:36:56 UTC
Port devel/RStudio fails to build in poudriere, popping up the error shown below.

Build environment:

 =>> Building devel/RStudio
build started at Mon Oct 21 10:37:08 UTC 2019
port directory: /usr/ports/devel/RStudio
package name: RStudio-1.2.5001
building for: FreeBSD anger.walstatt.dynvpn.de 12.1-STABLE FreeBSD 12.1-STABLE 1201500 amd64
maintained by: yuri@FreeBSD.org
Makefile ident:      $FreeBSD: head/devel/RStudio/Makefile 514646 2019-10-17 07:06:44Z yuri $
Poudriere version: 3.3.2_1
Host OSVERSION: 1300053
Jail OSVERSION: 1201500
Job Id: 02

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1201500
UNAME_v=FreeBSD 12.1-STABLE 1201500
UNAME_r=12.1-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.2_1
MAKEOBJDIRPREFIX=/pool/sources/12-STABLE/obj/
MASTERMNT=/pool/poudriere/data/.m/12-amd64-head-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
PWD=/pool/poudriere/data/.m/12-amd64-head-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=12-amd64-head-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/pool/poudriere/data/.m/12-amd64-head-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---


The error is:


[...]
--- src/cpp/r/CMakeFiles/rstudio-r.dir/all ---
--- src/cpp/r/CMakeFiles/rstudio-r.dir/session/graphics/RGraphicsErrorCategory.cpp.o ---
[ 48%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/session/graphics/RGraphicsErrorCategory.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.5001/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.5001/src/cpp/core/include -I/usr/local/lib/R/include -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++0x -std=c++11 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC   -Wall -pthread -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4 -fPIC -o CMakeFiles/rstudio-r.dir/session/graphics/RGraphicsErrorCategory.cpp.o -c /wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5001/src/cpp/r/session/graphics/RGraphicsErrorCategory.cpp
--- src/gwt/CMakeFiles/gwt_build.dir/all ---

BUILD FAILED
/wrkdirs/usr/ports/devel/RStudio/work/rstudio-1.2.5001/src/gwt/build.xml:110: Java returned: 1
Comment 1 Rainer Hurling 2019-10-21 16:12:47 UTC
Hi Oliver,

I had the very same error outside of Poudriere on 13.0-CURRENT.

I my case, it turns out, that having two versions of java installed (java/openjdk8, java/openjdk12) caused the trouble. After removing openjdk12, the build of RStudio works like expected.

Is it possible, that there are also two versions in your Poudriere for some reason?

Regards,
Rainer