Summary: | devel/RStudio: Fails to build: build.xml:110: Java returned: 1 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | O. Hartmann <ohartmann> |
Component: | Individual Port(s) | Assignee: | Yuri Victorovich <yuri> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | Trond.Endrestol, rhurlin |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(yuri) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
O. Hartmann
2019-10-21 11:36:56 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 I ran into the same issue on 13.0-CURRENT, r356768, ports tree at r523938. However, I use ports-mgmt/synth, and the log file contains some lines that may provide clues: --- src/gwt/CMakeFiles/gwt_build.dir/all --- [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Compiling 2231 source files to /construction/xports/devel/RStudio/work/rstudio-1.2.5033/src/gwt/bin [javac] /construction/xports/devel/RStudio/work/rstudio-1.2.5033/src/gwt/src/org/rstudio/core/client/resources/ImageResourceUrl.java:62: warning: [deprecation] getURL() in ImageResource has been deprecated [javac] public String getURL() [javac] ^ [javac] /construction/xports/devel/RStudio/work/rstudio-1.2.5033/src/gwt/src/org/rstudio/studio/client/projects/model/ProjectTemplateIconImageResource.java:53: warning: [deprecation] getURL() in ImageResource has been deprecated [javac] public String getURL() [javac] ^ [javac] 2 warnings [copy] Copying 1477 files to /construction/xports/devel/RStudio/work/rstudio-1.2.5033/src/gwt/bin gwtc: [java] Jan 23, 2020 7:45:32 PM java.util.prefs.FileSystemPreferences$1 run [java] INFO: Created user preferences directory. --- src/gwt/CMakeFiles/gwt_build.dir/all --- [java] [ERROR] Unexpected internal compiler error [java] java.lang.UnsatisfiedLinkError: sun.nio.fs.LinuxWatchService.inotifyInit()I [java] at sun.nio.fs.LinuxWatchService.inotifyInit(Native Method) [java] at sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:59) [java] at sun.nio.fs.BsdFileSystem.newWatchService(BsdFileSystem.java:51) [java] at com.google.gwt.dev.resource.impl.ResourceAccumulator.maybeInitializeWatchService(ResourceAccumulator.java:98) [java] at com.google.gwt.dev.resource.impl.ResourceAccumulator.fullRefresh(ResourceAccumulator.java:89) [java] at com.google.gwt.dev.resource.impl.ResourceAccumulator.refreshResources(ResourceAccumulator.java:69) [java] at com.google.gwt.dev.resource.impl.ResourceAccumulatorManager.getResources(ResourceAccumulatorManager.java:113) [java] at com.google.gwt.dev.resource.impl.DirectoryClassPathEntry.findApplicableResources(DirectoryClassPathEntry.java:49) [java] at com.google.gwt.dev.resource.impl.ResourceOracleImpl.scanResources(ResourceOracleImpl.java:263) [java] at com.google.gwt.dev.cfg.ModuleDef.ensureResourcesScanned(ModuleDef.java:731) [java] at com.google.gwt.dev.cfg.ModuleDef.getSourceResourceOracle(ModuleDef.java:567) [java] at com.google.gwt.dev.CompilerContext$Builder.initializeResourceOracles(CompilerContext.java:100) [java] at com.google.gwt.dev.CompilerContext$Builder.build(CompilerContext.java:48) [java] at com.google.gwt.dev.Compiler.compile(Compiler.java:193) [java] at com.google.gwt.dev.Compiler.compile(Compiler.java:155) [java] at com.google.gwt.dev.Compiler.compile(Compiler.java:144) [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:118) [java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55) [java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50) [java] at com.google.gwt.dev.Compiler.main(Compiler.java:125) BUILD FAILED /construction/xports/devel/RStudio/work/rstudio-1.2.5033/src/gwt/build.xml:110: Java returned: 1 Could the last error messages indicate some incompatibility with the Linux ecosystem, e.g. system calls related to filesystems? Also, from the discussion above, neither Poudriere nor synth pulls in any other JDK than the one(s) specified by the port's Makefile. When built in poudriere, a higher limit for the file descriptor count should be set for RStudio. Please add this line to etc/poudriere.conf MAX_FILES_RStudio=4096 Yuri Please reopen if this is still a problem even with the poudriere.conf setting and with an extra-java version removed. It appears that it is really failing in poudriere. Build fails with Java 8 and Java 11: https://github.com/rstudio/rstudio/issues/6088 The commit r526466 made RStudio build and run on my laptop running head r358073. Thank you! (In reply to Trond.Endrestol from comment #7) Thanks! |