Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] [EXTERNAL]Re: Build errors when setting up Trace Compass development environment
  • From: Greg Savin <gsavin@xxxxxxxx>
  • Date: Tue, 10 Dec 2024 17:36:56 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mips.com; dmarc=pass action=none header.from=mips.com; dkim=pass header.d=mips.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZGHhxnfMEm0mt5CfxWN12NoDmyxXq4CEX+rFsoLpvYI=; b=RPNAhgTnr48rKirOD//QvGaEACFVwr6KPRpEiqKgDOfyPqiW3C1DwIdAW/R/ENh5tB5dKir7WpnrrUbYvI9sO6gerzH55UJ2joP/AweUvLC7ZPbuzNzntwF5HB/mD+8/JRKH+Yei2qKgJ6zR4SieOzQa+W+dLBoihRianJWImjP7ozSyvMmxsJlW/Lo/hRPut5u+bV/QjnioXzDjInF2AFpIOQOFg0xWpHrXJNwlk/o75LsflEgPv487VJiaeB5E9Iuckj0u72xCpkfOwbPMCF173JCgEGG42OSm//HJx4gXlK4zVCJqPe2UQKZ2KRLwpN3i33OiUB5mqpATqDQ66A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F26xQjuOz10w386wpCT7z0EOsR7hoGZUzcfZxru5pP4sEfsiJqgxHZIS9dtnQJEOSqLj5qqHtfkIXOETNrIOWY9XJ4WNdz4XFr8q5+rVcDLzRis5GX6n0krhRFGV8AC4eNuTo3wsCbcTkJ+izFjsx5apdu/FakWl+eak7ImZHfnjo4jDs4pt8kzcVEVcO7H0WSVhZbFPIZwnFUMPMjVvtpr+TkBNB2NS9SAZ8g8S1cdw8vnayEXOMeHhz4NDQLMMmNnuPZYFJu/SO8E7TVxa5Ge/x8UG+/FrtVhI+ayeyawnp+iAmAszJZUAhJ9Fkkj+eX9ZBB2ncxqqYqIHuTUFfA==
  • Delivered-to: tracecompass-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tracecompass-dev/>
  • List-help: <mailto:tracecompass-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tracecompass-dev>, <mailto:tracecompass-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tracecompass-dev>, <mailto:tracecompass-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHbSxtEoEun06/HD02QUxZXTf14DrLfpXCAgAAStxc=
  • Thread-topic: [EXTERNAL]Re: Build errors when setting up Trace Compass development environment

Thanks Bernd, I just tried a fresh Oomph run, and it appears that tracecompass-e4.34 target file is not present in the master branch of the git repo clone created when OOMPH ran.  As a secondary effect, the target platform was still set to the usual default of "Running Platform" which explains subsequent unexpected behavior.

However, I was able to get a development environment working by following the non-Oomph manual steps; thanks!  That solved the main concern of my query.

FWIW, here is some poking around I did in the post-OOMPH git tree:

ubuntu-pc:~/tracecompass-master-trying-oomph/git/org.eclipse.tracecompass/releng/org.eclipse.tracecompass.target$ ls
baseline                   tracecompass-e4.23.target  tracecompass-e4.28.target
pom.xml                    tracecompass-e4.24.target  tracecompass-e4.29.target
tracecompass-e4.20.target  tracecompass-e4.25.target  tracecompass-e4.30.target
tracecompass-e4.21.target  tracecompass-e4.26.target  tracecompass-e4.31.target
tracecompass-e4.22.target  tracecompass-e4.27.target  tracecompass-eStaging.target
ubuntu-pc:~/tracecompass-master-trying-oomph/git/org.eclipse.tracecompass/releng/org.eclipse.tracecompass.target$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
ubuntu-pc:~/tracecompass-master-trying-oomph/git/org.eclipse.tracecompass/releng/org.eclipse.tracecompass.target$ git remote -v
origin      https://git.eclipse.org/r/tracecompass/org.eclipse.tracecompass (fetch)
origin      https://git.eclipse.org/r/tracecompass/org.eclipse.tracecompass (push)

Regards,
Greg

From: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
Sent: Tuesday, December 10, 2024 8:09 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Cc: Greg Savin <gsavin@xxxxxxxx>
Subject: [EXTERNAL]Re: Build errors when setting up Trace Compass development environment
 
I was now able to successfully setup the development environment using OOMPH.

I don't see the same error. Looking at your error I see that the jar org.antlr.runtime_3.2.0 is not resolved. If you expand in Eclipse the plug-in "org.eclipse.tracecompass.ctf.core/Plug-inDependencies", do you see "org.antlr.runting_3.2.0_<datetime>.jar"?

You could try to reload the target definition tracecompass-e4.34.target to make sure that the dependencies are resolved correctly.

Regards
Bernd

From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Bernd Hufmann via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: December 10, 2024 10:50 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Cc: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Build errors when setting up Trace Compass development environment
 
I just realized that I had an old Tracecompass.setup in my OOMPH workspace and that's why it setup an old version. So, please ignore what I wrote about the older version.

I'm still investigating and will come back to you when I know more.

Regards
Bernd

From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Bernd Hufmann via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: December 10, 2024 10:17 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Cc: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
Subject: [tracecompass-dev] Fw: Build errors when setting up Trace Compass development environment
 



From: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
Sent: December 10, 2024 10:16 AM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>
Cc: Greg Savin <gsavin@xxxxxxxx>
Subject: Re: Build errors when setting up Trace Compass development environment
 
Hi Greg

I had to try it myself. I haven't tried the OOMPH installer because I have had my environment setup for a while. 

I noticed a couple of things when I tried it myself. The first thing I noticed is, that an old Tracecompass.setup OOMPH setup file is used (from 9.3 release). It still references the git repository located in Gerrit. The repository has been migrated to GitHub in the meanwhile. The second thing is, that there is no target definition set after it's finished.

Please check the remote  setting of the git repository and let me know if you notice the same issue.

So, what you can do: 
After that you need to set the target platform. The steps are described here:
Once finished setting it, the workspace should build automatically. If not, please go to main menu "Project" and check "Build Automatically"

Then you can set the baseline API as described here:
Please let me know if this helps with your setup.

Note, that on my side I have to figure out why the OOMPH installer does not use the latest trace compass oomph setup file.

BR
Bernd


From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Greg Savin via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: December 4, 2024 7:00 PM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>
Cc: Greg Savin <gsavin@xxxxxxxx>
Subject: [tracecompass-dev] Build errors when setting up Trace Compass development environment
 
Hi all,

When trying to follow the instructions in the "## Using the Eclipse Installer (Oomph)" section of https://github.com/eclipse-tracecompass/org.eclipse.tracecompass/blob/master/DEVELOPMENT_ENV_SETUP.md, on Ubuntu 22.04.5 LTS, I'm seeing 3222 errors show up in the Problems view of the resulting development instance of Eclipse.

As a quick indication of the sorts of errors I'm referring to, here are a few selected representative errors from the first page of errors shown:

ANTLRReaderStream cannot be resolved to a type  Metadata.java     /org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/trace      line 424    Java Problem
BaseTree cannot be resolved to a type     Metadata.java     /org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/trace      line 443    Java Problem
BitSet cannot be resolved to a type FilterParserParser.java /org.eclipse.tracecompass.tmf.filter.parser/target/generated-sources/antlr3/org/eclipse/tracecompass/tmf/filter/parser  line 1138   Java Problem

From this limited bit of information, if anyone can discern something I might be doing wrong, I'd appreciate any feedback.

Thanks,
Greg Savin


Back to the top