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 18:57:41 +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=Ie/1iVy3AJD/Rd7I7PjV4rQyYzg5LoT4mxYR9OkiMtM=; b=pc6aBO4R0S7ihRTmXlwLoYGoebCwN6DiXLp4fo2RBnymLdg3Wr2qSWizMtiDf52HNTp28rvZNjpPkOX/YL6WS5JB9mkJgfDukPoSOZJhyjOyfMWCJ2VOxUrjf1jmg3ljnmGfl+N2JbB+YpUcXXb1riEdoKlnCt8qOdforap9sCqyhdISZLM85XEUjEks9r13L6wmBf8d44Ms8ik9/J4cjSBvk3vRW0X6/grdaSRreBi7moYE81maHyNJbuMaitRXa6/pzwxAiUQwmVvITl9B26EbVM/jLybw9iJ2jyQ2lCrdJT4ddMla8j0IIzINX++aZQuFO+c4OppI2xnV+9wjMw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lg16wkXDSvxeHWnVyUlVSV/nPWSmArjmdDeFDoazHkXj9vE4S7ABo6PdjFVxrR2wmkPwbaz+43DTz4Pkt+w0v+E9JWzgiKo8LT7nh6GxuWWAXDOKZz00A2d41kcKs2ZlVRDomi3LlJ8EJrWyRNaFRcLXH8H2D+hJhXhRvt7vQXmWgJUlgc+wp6v4NMkjvgefOv0MXhY/RcA0m6eNg8WcQrNQjfZ0smnsOCcHIdqudykBg0iLZzQgZRj8ezviC2m7h5ysuNli4I8XblE2hi7VFoyvZImGJYHr+GajJ9pnPKV7mI5+l+VIw2QogrWPF141Gzc669Csw5/gDXM+qs2+gw==
  • 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/HD02QUxZXTf14DrLfpXCAgAAStxeAABRYgIAABsS+
  • Thread-topic: [EXTERNAL]Re: Build errors when setting up Trace Compass development environment

Thanks Bernd!  Deleting ".eclipse/org.eclipse.oomph.setup" and re-running oomph installer (I already had the latest) achieved a clean development build on my setup.  Much appreciated info!

Regards,
Greg

From: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
Sent: Tuesday, December 10, 2024 10:28 AM
To: Greg Savin <gsavin@xxxxxxxx>; tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [EXTERNAL]Re: Build errors when setting up Trace Compass development environment
 
Hi Greg,

It uses the wrong Tracecompass.setup file, too. I had the same issue but I had some lingering configuration from previous work.

To clean up, I went into my home directory and deleted directory ".eclipse/org.eclipse.oomph.setup" after closing the oomph installer. Then I restarted the oomph installer and installed fresh. I downloaded the latest installer from eclipse.org before, that was delivered for the release last week (2024-12/e4.34). Then it was successful.

So, you could try that (or manually update the git remote, set target etc. as described in my first reply).

I would give the OOMPH another try with the latest installer. 

Regards,
Bernd


From: Greg Savin <gsavin@xxxxxxxx>
Sent: December 10, 2024 12:36 PM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Cc: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
Subject: Re: [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