COVESA/capicxx-core-tools

Build fails under macOS

dprogm opened this issue · 4 comments

dprogm commented

I am trying to build the generator under macOS Ventura 13.4 (x86_64).

After solving several other issues I ended up with the following changes:

diff --git a/org.genivi.commonapi.core.releng/.mvn/extensions.xml b/org.genivi.commonapi.core.releng/.mvn/extensions.xml
new file mode 100644
index 0000000..834efe4
--- /dev/null
+++ b/org.genivi.commonapi.core.releng/.mvn/extensions.xml
@@ -0,0 +1,7 @@
+<extensions>
+  <extension>
+    <groupId>org.eclipse.tycho</groupId>
+    <artifactId>tycho-build</artifactId>
+    <version>3.0.4</version>
+  </extension>
+</extensions>
\ No newline at end of file
diff --git a/org.genivi.commonapi.core.releng/.mvn/jvm.config b/org.genivi.commonapi.core.releng/.mvn/jvm.config
new file mode 100644
index 0000000..843104a
--- /dev/null
+++ b/org.genivi.commonapi.core.releng/.mvn/jvm.config
@@ -0,0 +1 @@
+--add-opens=java.base/java.lang=ALL-UNNAMED
\ No newline at end of file
diff --git a/org.genivi.commonapi.releng/pom.xml b/org.genivi.commonapi.releng/pom.xml
index ba2b39c..3177f8e 100644
--- a/org.genivi.commonapi.releng/pom.xml
+++ b/org.genivi.commonapi.releng/pom.xml
@@ -6,7 +6,7 @@
     <version>3.2.0-SNAPSHOT</version>
     <packaging>pom</packaging>
     <properties>
-        <tycho-version>0.22.0</tycho-version>
+        <tycho-version>3.0.4</tycho-version>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <forceContextQualifier>v${maven.build.timestamp}</forceContextQualifier>

Mainly there were two changes made:

  • Adding JVM arguments: --add-opens=java.base/java.lang=ALL-UNNAMED
  • Updating the version of tycho to 3.0.4

Now I am getting a lot of errors in an endless loop like:

java.lang.IllegalStateException: Resource has not been loaded
...
[INFO] Couldn't find JvmType for name 'java.lang.Class' in context org.eclipse.xtext.resource.XtextResourceSet@5c5136ce

Can someone help out here?

Please try building with Java 8.

@dprogm could you please test with the last release?
Thanks

dprogm commented

@goncaloalmeida I will check this and give feedback ASAP.