Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] mvn build fails on current master, during javadoc build

Hi Jonah,

thanks for the quick reply!

> My guess is that the javadoc builder is using jacadoc on path instead of JAVA_HOME?

That was the problem, our environment has /usr/bin/javadoc pointing to Java 8 (I didn't realize that wouldn't be coming from JAVA_HOME). The build goes through now.

Best regards,
Simeon

On Mon, 25 Jan 2021 at 15:00, Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi Simeon,

https://ci.eclipse.org/cdt/job/cdt-master/ is building, so I suspect something about your local config being different. My guess is that the javadoc builder is using jacadoc on path instead of JAVA_HOME? Not sure. 

Class version 55 is Java 11, so I don't know what is expecting Java 8 class files. 


As for older versions of CDT, CDT suffers from the same problem as most of the Eclipse ecosystem - Old tags aren't buildable without modification. I try however to keep old branches buildable, so you should find the CDT 10.0 and 10.1 branch builds. 

If you need help rebuilding/recreating a specific old version, let me know and I can provide more pointers. 

Thanks, 
Jonah 




On Mon., Jan. 25, 2021, 07:45 S A, <simeon.danailov.andreev@xxxxxxxxx> wrote:
Hi all,

I'm trying to build CDT on current master and see the following error:

Constructing Javadoc information...
/home/sandreev/tmp/org.eclipse.cdt/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java:104: error: cannot access ObjectStyleMacro
        private static final ObjectStyleMacro __CDT_PARSER__ = new ObjectStyleMacro("__CDT_PARSER__".toCharArray(), //$NON-NLS-1$
                             ^
  bad class file: /home/sandreev/tmp/org.eclipse.cdt/core/org.eclipse.cdt.core/target/classes/org/eclipse/cdt/internal/core/parser/scanner/ObjectStyleMacro.class
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
1 error
[INFO] execution failed with rc = 1

I trigger the build with:

mvn -e clean verify -DskipTests=true

(JAVA_HOME is pointing to Java 11)

Am I missing something, or did I pick a "bad time" to build CDT? I've tried to build on 10.1 and 10.0 tags, but that fails as well (mvn doesn't find whatever SDK build was used as base).

I didn't find a bug for this unfortunately.

Best regards and thanks,
Simeon
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top