Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-user] re: Specifying remote include directories for remote build

> Once I fixed the includes, when I tried to find the definition of
> MPI_Comm (which is in /opt/ibmhpc/ppe.poe/include) I got an error
> log entry with the following traceback
>
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.eclipse.ptp.internal.rdt.ui.search.RemoteSearchResult.
> getFile(RemoteSearchResult.java:221)
> at org.eclipse.search2.internal.ui.text.PositionTracker.
> getTrackedFileBuffer(PositionTracker.java:188)
> at org.eclipse.search2.internal.ui.text.PositionTracker.
> searchResultChanged(PositionTracker.java:86)
> at org.eclipse.search.ui.text.AbstractTextSearchResult.
> fireChange(AbstractTextSearchResult.java:265)
> at org.eclipse.search.ui.text.AbstractTextSearchResult.
> addMatches(AbstractTextSearchResult.java:105)
> at org.eclipse.ptp.internal.rdt.ui.search.RemoteSearchQueryAdapter.
> run(RemoteSearchQueryAdapter.java:99)
> at org.eclipse.search2.internal.ui.
> InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:94)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>

There is a known bug on this I think: https://bugs.eclipse.org/bugs/show_bug.cgi?id=253735


> Just a thought. Should there be a preferences dialog where some
> default remote system directories can be set up, such as maybe
> include directories and library directories? I realize they may not
> be constant across a set of remote systems, but currently, when I
> create a remote project, I'm getting a set of include directory
> pathnames based on my local windows system as the defaults in the
> remote paths and symbols panel in the remote project properties.
>

This is taken care of by the toolchain selection. Unfortunately there are issues with selecting the right toolchain currently (deadlock issues we previously discussed), so unfortunately this is a bit of a hole in functionality right now.

What you can do is export/import your project settings once you get it all setup right. Then at least you only have to really do it once. Check the export wizard.

> I thought scanner discovery was supposed to work this out  
> automatically, but it may be some limitation of the remote project.  
> Maybe Chris can shed some more light. Can you post the error messages  
> you're seeing?
>
> Thanks,
>
> Greg

We have a remote scanner discovery profile, but CDT has a serious problem where you can't change the profile from what the toolchain already specified. You change it and hit OK, but it doesn't take effect. This means our profile can never be used, and the ones that are supplied by all the toolchains don't work in a remote setup :-(

===========================
Chris Recoskie
Team Lead, IBM CDT and RDT
IBM Toronto


Back to the top