Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Bug 372794 CBI build of platform native SWT code

Hi Everyone,

I thought I'd try the build on the other architectures today and discovered an issue. Building on Windows (64-bit) and Linux (64-bit) works fine as expected (both using -Dnatives=<native> as well as without it) but I discovered building on macosx (64-bit) failed with the error below (I took a small snippet as the full error is quite long). It seems similar to the issue we had before that was fixed with Krzysztof's patch [1] where it will succeed the 2nd time you rerun the build.

To reproduce you need to run:  git submodule foreach 'git clean -fd'

I wonder if we need a similar patch to fix the issue?


Thanh

[1] http://git.eclipse.org/c/cbi/eclipse.platform.swt.binaries.git/commit/?h=Juno_RC4_R4&id=240165d5f535221fd27a742b3a2180c6e7f3f79e


[INFO] org.eclipse.jface ................................. FAILURE [2.592s]


[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.16.0-SNAPSHOT:compile (default-compile) on project org.eclipse.jface: Compilation failure: Compilation failure:
[ERROR] /Users/user/eclipse-cbi/R3_platform-aggregator/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java:[13,0]
[ERROR] import org.eclipse.swt.widgets.Composite;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.swt.widgets.Composite cannot be resolved
[ERROR] /Users/user/eclipse-cbi/R3_platform-aggregator/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java:[14,0]
[ERROR] import org.eclipse.swt.widgets.Control;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.swt.widgets.Control cannot be resolved
[ERROR] /Users/user/eclipse-cbi/R3_platform-aggregator/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java:[38,0]
[ERROR] public Control createControl(Composite parent, int style);
[ERROR] ^^^^^^^
[ERROR] Control cannot be resolved to a type
[ERROR] /Users/user/eclipse-cbi/R3_platform-aggregator/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java:[38,0]
[ERROR] public Control createControl(Composite parent, int style);
[ERROR] ^^^^^^^^^
[ERROR] Composite cannot be resolved to a type
[ERROR] /Users/user/eclipse-cbi/R3_platform-aggregator/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/action/IContributionItem.java:[14,0]
[ERROR] import org.eclipse.swt.widgets.Composite;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.swt.widgets.Composite cannot be resolved
[ERROR] /Users/user/eclipse-cbi/R3_platform-aggregator/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/action/IContributionItem.java:[15,0]
[ERROR] import org.eclipse.swt.widgets.CoolBar;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.swt.widgets.CoolBar cannot be resolved
[ERROR] /Users/user/eclipse-cbi/R3_platform-aggregator/eclipse.platform.ui/bundles/org.eclipse.jface/src/org/eclipse/jface/action/IContributionItem.java:[16,0]

...

On 06/18/2012 02:45 PM, Krzysztof Daniel wrote:
The problem was caused by the fact that I'm using maven-ant-runner
plugin to build swt, which is incompatible with tycho compiler. I was
able to produce well formed swt bundles, but internal folder layout made
compiled classes inaccessible for other plugins. 

Tycho installed produced jars into repo, so during next build they were
used.

Please find a fix proposition attached - and double check it really
works. If not - please remove my patches until I find correct fix.


Best regards and sorry for the inconvenience,
Chris.



_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev


Back to the top