Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Question about building TC with maven

Hello Yang,

I went through the history of the file, and have found this patch. 

"Bug 560477: state system: Serialize unknown state types as strings

If a state object is not one of the known object types (Null, Long, Int,
Double, String, or CustomStateValue) then an IllegalArgumentException
was thrown. For example, when using an XML analysis with a CTF trace
which has an event field of type CtfEnumPair and this CtfEnumPair is
used as state value of an attribute, then such an exception would be
created.

This patch will convert the state value to a string, if the value object
is not one of the known types."

Could you try working on git head? it may have solved the issue?

BR
Matthew

From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 9:55 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Question about building TC with maven
 
Hello Yang,

I am looking at the build log output, and there appear to be no illegalstateexceptions at the line your log has shown. What version of trace compass are you developping on? The build message did help a lot by the way, thanks!

BR,
Matthew Khouzam

From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 9:29 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Question about building TC with maven
 

​The entire output from build is attached with this email, thanks.


Yang Zhou
Kungliga Tekniska högskolan | KTH Royal Institute of Technology
Master i datalogi | Master of Computer Science
Email (preferred): zhy@xxxxxx
Tel: +46 073 846 48 96 

From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Sent: Tuesday, March 31, 2020 3:27 PM
To: tracecompass-dev@xxxxxxxxxxx
Subject: [tracecompass-dev] Question about building TC with maven
 

Hi​ all,


I'm a new comer trying to extend TC to support customized trace format, however I meet some errors while building TC from source.

I cloned the repo and switch to branch stable-5.2.0, then build the project with "mvn install" (I've also tried to configure args to skip testing modules) following the README text.


The building process is blocked by "failing to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.3.0:test", all the latter modules are skipped. 


    

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Trace Compass Parent ............................... SUCCESS [  1.657 s]
[INFO] Trace Compass Tracetype-agnostic Analyses Parent ... SUCCESS [  0.078 s]
[INFO] Trace Compass Common Utilities Parent .............. SUCCESS [  0.014 s]
[INFO] org.eclipse.tracecompass.common.core ............... SUCCESS [  1.508 s]
[INFO] Trace Compass State System Parent .................. SUCCESS [  0.027 s]
[INFO] org.eclipse.tracecompass.datastore.core ............ SUCCESS [  0.359 s]
[INFO] org.eclipse.tracecompass.segmentstore.core ......... SUCCESS [  0.274 s]
[INFO] org.eclipse.tracecompass.statesystem.core .......... SUCCESS [  0.347 s]
[INFO] Trace Compass TMF Parent ........................... SUCCESS [  0.146 s]
[INFO] Trace Compass Filter Parser ........................ SUCCESS [  0.181 s]
[INFO] org.eclipse.tracecompass.tmf.core .................. SUCCESS [  1.140 s]
[INFO] org.eclipse.tracecompass.analysis.counters.core .... SUCCESS [  0.875 s]
[INFO] Trace Compass CTF Support Parent ................... SUCCESS [  0.070 s]
[INFO] Trace Compass CTF Parser Plug-in ................... SUCCESS [  0.209 s]
[INFO] org.eclipse.tracecompass.ctf.core .................. SUCCESS [  0.445 s]
[INFO] Trace Compass CTF Core Tests Plug-in ............... SUCCESS [ 20.490 s]
[INFO] org.eclipse.tracecompass.statesystem.core.tests .... FAILURE [  6.628 s]
[INFO] org.eclipse.tracecompass.tmf.core.tests ............ SKIPPED
[INFO] org.eclipse.tracecompass.tmf.ctf.core .............. SKIPPED
[INFO] org.eclipse.tracecompass.tmf.ctf.core.tests ........ SKIPPED
[INFO] org.eclipse.tracecompass.analysis.counters.core.tests SKIPPED
....
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.3.0:test (default-test) on project org.eclipse.tracecompass.statesystem.core.tests: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/zy/projects/org.eclipse.tracecompass/statesystem/org.eclipse.tracecompass.statesystem.core.tests/target/surefire-reports for the individual test results.

The tools using are jdk1.8.0 and Maven version 3.3.9, and I have only jdk8 installed, so I wonder if I miss any dependencies before building the project.


Thank you in advance!


Yang Zhou
Kungliga Tekniska högskolan | KTH Royal Institute of Technology
Master i datalogi | Master of Computer Science
Email (preferred): zhy@xxxxxx
Tel: +46 073 846 48 96 

Back to the top