FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

News: Sources for Mac OS ported
Goto page Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> Tioport
View previous topic :: View next topic  
Author Message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 3:29 am    Post subject: Reply with quote

Seems to have been only ClassRegistrationFixer that was crashing,
commenting that out made Stage 3 finished. Still failed, but.

Code:

Writing ...
tango.core.Exception.IOException: gen.d/staticctors.d: No space left on device
make: *** [gen.d] Error 1


Disk wasn't nowhere near full, so it must be some other quirk..


Compiling the examples only seems to have a minor issue so far:

Code:

../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1189: function dejavu.util.Arrays.Arrays.sort (long[]) does not match parameter types (JArrayJObject,Comparator)
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1189: Error: cannot implicitly convert expression (tableInfo) of type dejavu.lang.JArray.JArrayJObject to JObject[]
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1189: Error: cannot implicitly convert expression (cast(Comparator)this.new org.eclipse.swt.examples.addressbook.AddressBook.AddressBook.RowComparator(0)) of type dejavu.util.Comparator.Comparator to int
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1189: Error: expected 4 arguments, not 2

../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1298: function dejavu.util.Arrays.Arrays.sort (long[]) does not match parameter types (JArrayJObject,Comparator)
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1298: Error: cannot implicitly convert expression (data) of type dejavu.lang.JArray.JArrayJObject to JObject[]
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1298: Error: cannot implicitly convert expression (cast(Comparator)this.new org.eclipse.swt.examples.addressbook.AddressBook.AddressBook.RowComparator(column)) of type dejavu.util.Comparator.Comparator to int
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/examples/addressbook/AddressBook.d:1298: Error: expected 4 arguments, not 2


Commenting those lines out (don't really care about sort ATM)

On IRC now. Cool
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 6:05 am    Post subject: Reply with quote

we talked about creating a StaticCtorSwt.d and so on.
Afb, i have set permission to give you commit rights to svn. Do you mind to check your file in?

Thanks in advance.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 6:41 am    Post subject: Reply with quote

When I said "slowed down considerably", here is what I meant:
Code:

real    31m40.752s
user    28m7.596s
sys     3m5.786s


This was for building the "paint" example (+Tango/dejavu/SWT)
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 6:43 am    Post subject: Reply with quote

keinfarbton wrote:
we talked about creating a StaticCtorSwt.d and so on.
Afb, i have set permission to give you commit rights to svn. Do you mind to check your file in?


Np, I'll check these in:
ports/swt-3.2.1/swt-3.2.1-macosx/StaticCtorsSwt.d
ports/swt-3.2.1/swt-3.2.1-examples/Makefile.macosx
src/bintod/Makefile.macosx
src/tioport/Makefile.macosx
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 7:16 am    Post subject: Reply with quote

It's currently stuck at:
Code:

/usr/bin/ld: ../swt-3.2.1-macosx/libs/libswt-carbon-3235.jnilib is input for the dynamic link editor, is not relocatable by the static link editor again
/usr/bin/ld: ../swt-3.2.1-macosx/libs/libswt-agl-carbon-3235.jnilib is input for the dynamic link editor, is not relocatable by the static link editor again
/usr/bin/ld: ../swt-3.2.1-macosx/libs/libswt-webkit-carbon-3235.jnilib is input for the dynamic link editor, is not relocatable by the static link editor again
/usr/bin/ld: ../swt-3.2.1-macosx/libs/libswt-pi-carbon-3235.jnilib is input for the dynamic link editor, is not relocatable by the static link editor again
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 8:41 am    Post subject: Reply with quote

Idea is to use -Wl,-undefined,dynamic_lookup and then load those jnilib at runtime, like Java does with "System.loadLibrary".

When everything else works, that is. Wink
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 9:13 am    Post subject: Reply with quote

See if I can find a workaround for this problem:

Code:

linkage = 0
/Users/dvdf/Data/Staging/r23rc5/gcc-5363/build/obj/src/gcc/d/d-decls.cc:521: failed assertion `0'
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/widgets/Shell.d: In function 'static_this':
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/widgets/Shell.d:1525: internal compiler error: Abort trap
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 10:01 am    Post subject: Reply with quote

Quote:
dea is to use -Wl,-undefined,dynamic_lookup and then load those jnilib at runtime, like Java does with "System.loadLibrary".

When everything else works, that is. Wink


Yes, and do the loading in the StaticCtorsSwt.d module.

This ICE is certainly a bad thing :/
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 11:37 am    Post subject: Reply with quote

Apparently it already does this:
Code:

../swt-3.2.1-macosx/gen.d/org/eclipse/swt/browser/WebKit.d:247:            org.eclipse.swt.internal.Library.Library.loadLibrary( new dejavu.lang.String.String( "swt-webkit"));
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/internal/Callback.d:231:            org.eclipse.swt.internal.Library.Library.loadLibrary( new dejavu.lang.String.String( "swt"));
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/internal/carbon/OS.d:7852:            org.eclipse.swt.internal.Library.Library.loadLibrary( new dejavu.lang.String.String( "swt-pi"));
../swt-3.2.1-macosx/gen.d/org/eclipse/swt/internal/opengl/carbon/AGL.d:173:            org.eclipse.swt.internal.Library.Library.loadLibrary( new dejavu.lang.String.String( "swt-agl"));


It just needs a few static constructors reordered, to stop crashing...
Code:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000010

#0  0x00023277 in dejavu.lang.String.String.opCat() (this=@0x1c54ee0, aOther=@0x0) at ../../../src/dejavu/dejavu/lang/String.d:129
#1  0x0021b42a in org.eclipse.swt.internal.Library.Library.loadLibrary(dejavu.lang.String.String) (name=@0x1c51060) at ../swt-3.2.1-macosx/gen.d/org/eclipse/swt/internal/Library.d:111
#2  0x0007b5d9 in org.eclipse.swt.browser.WebKit.WebKit.static_this() () at ../swt-3.2.1-macosx/gen.d/org/eclipse/swt/browser/WebKit.d:247
#3  0x00002287 in StaticCtorsSwt.callAllStaticCtors() () at ../swt-3.2.1-macosx/StaticCtorsSwt.d:381
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 11:42 am    Post subject: Reply with quote

wow, you have it compiling, this is great. How did you ...?
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 11:58 am    Post subject: Reply with quote

keinfarbton wrote:
wow, you have it compiling, this is great. How did you ...?


http://catb.org/~esr/jargon/html/D/dike.html
I just commented the offending pieces and tagged them with TODO Smile

I couldn't narrow it down to the exact line in the static_this that caused the ICE with linkage, but strangely it allowed like the first 10 initializations or so ?

Must be some kind of special linkage around DEFAULT_CLIENT_WIDTH or so
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 2:46 pm    Post subject: Reply with quote

Hmm, looking at the loadLibrary implementation I think I know why it couldn't find the symbols even though it loaded all the right libraries...
Code:

    public static void loadLibrary(dejavu.lang.String.String libname){
        //Stdout.formatln( "loadLibrary( {} ), but not loading", libname.toUtf8() );
    }


Will replace that with a dlopen, I think... (on Mac OS X that is)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Tioport All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group