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 Guys,

What a pain. Let's document the work around.

I'm not sure how I feel about automating the work around... it's a one time set up task. Does anyone have strong opinions here?

Andrew

On 06/27/2012 11:33 AM, Thanh Ha wrote:
Hi Krzysztof,

Per our discussion this morning it seems like using the soft links workaround [1][2] worked and allowed me to complete the build on macosx. I guess the issue is with Apple renaming rt.jar to classes.jar.


Thanh

[1] http://bruehlicke.blogspot.ca/2009/11/missing-rtjar-mac-os-x-using-proguard.html [2] http://stackoverflow.com/questions/10974684/maven-unable-to-find-java-lang-issue-on-os-x


On 27/06/2012 4:34 AM, Krzysztof Daniel wrote:
If there is classes folder inside the
org.eclipse.swt.cocoa.macosx.x86_64 (and I expect that there is one,
because the code is common for all platforms), the issue must be caused
by something else. I'd really appreciate a full log.

You may want to try invoke maven inside that macosx fragment and getting
the log from there.

Also, every build on macosx fails or only one with natives?


On Tue, 2012-06-26 at 16:18 -0400, Thanh Ha wrote:
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
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev


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





Back to the top