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

gtkD won't compile

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
robvdl



Joined: 02 Jul 2008
Posts: 5

PostPosted: Thu Jul 03, 2008 8:28 am    Post subject: gtkD won't compile Reply with quote

I'm new to D, well actually, I been wanting to get into D for a very long time but 64 bit had always been a stopper for me. A few years ago, I tried the Digital Mars D compiler and was very disappointed with the lack of 64 bit support (and still to this day), so I have been waiting for the GNU D compiler to mature a bit.

Recently, I had decided I wanted to give it another go, I was very happy to see the GNU D compiler was now in the Ubuntu Hardy repository, I run Ubuntu Hardy 64 bit.

I installed DSSS, tango, and another package tangobos from this site here, and DSSS at least seems to be working fine:

http://codeblog.palos.ro/2008/03/27/debian-d-packages-release-3/

I downloaded the latest gtkD (pre9) source and used "dsss build" command, here's what I get:

DSSS PROFILE: gdc-posix

undemofy
Command: cd demos
Command: ./demoselect.sh disable-all
+ ./demoselect.sh disable-all

Creating imports for DG-atk

Creating imports for DG-cairo

Creating imports for DG-gdk

Creating imports for DG-gdkpixbuf

Creating imports for DG-glade

Creating imports for DG-glib

Creating imports for DG-gobject

Creating imports for DG-gthread

Creating imports for DG-gtk

Creating imports for DG-gtkc

Creating imports for DG-pango

atk => DG-atk
+ /usr/bin/rebuild -Idsss_imports/ -I. -S./ -I/usr/include/d -S/usr/lib/ -I/usr/include/d -S/usr/lib -I/root/d/include/d -S/root/d/lib -oqdsss_objs/G -explicit -lib atk/Action.d atk/Component.d atk/Document.d atk/EditableText.d atk/GObjectAccessible.d atk/Hyperlink.d atk/Hypertext.d atk/Image.d atk/NoOpObject.d atk/NoOpObjectFactory.d atk/ObjectAtk.d atk/ObjectFactory.d atk/Registry.d atk/Relation.d atk/RelationSet.d atk/Selection.d atk/State.d atk/StateSet.d atk/StreamableContent.d atk/Table.d atk/Text.d atk/Util.d atk/ValueAtk.d -oflibDG-atk.a
gtkc/paths.d:76: Error: identifier 'string' is not defined
gtkc/paths.d:76: Error: identifier 'string' is not defined
gtkc/paths.d:76: Error: string is used as a type
gtkc/paths.d:181: Error: identifier 'string' is not defined
gtkc/paths.d:181: Error: string is used as a type
glib/StringG.d:113: Error: identifier 'string' is not defined
glib/StringG.d:113: Error: string is used as a type
glib/StringG.d:113: Error: cannot have parameter of type void
glib/StringG.d:137: Error: identifier 'string' is not defined
glib/StringG.d:137: Error: string is used as a type
glib/StringG.d:137: Error: cannot have parameter of type void
glib/StringG.d:183: Error: identifier 'string' is not defined
glib/StringG.d:183: Error: string is used as a type
glib/StringG.d:183: Error: cannot have parameter of type void
glib/StringG.d:205: Error: identifier 'string' is not defined

-- snip: thousands of lines of the same stuff --

gobject/Value.d:1387: Error: string is used as a type
gobject/Value.d:1387: Error: cannot have parameter of type void
gobject/Value.d:1409: Error: identifier 'string' is not defined
gobject/Value.d:1409: Error: string is used as a type
gobject/Value.d:1409: Error: cannot have parameter of type void
gobject/Value.d:1435: Error: identifier 'string' is not defined
gobject/Value.d:1435: Error: string is used as a type
gobject/Value.d:1435: Error: cannot have parameter of type void
gobject/Value.d:1435: Error: identifier 'string' is not defined
gobject/Value.d:1435: Error: string is used as a type
gobject/Value.d:1435: Error: cannot have parameter of type void
gobject/Value.d:1435: Error: identifier 'string' is not defined
gobject/Value.d:1435: Error: string is used as a type
gobject/Value.d:1435: Error: cannot have parameter of type void
Command /usr/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.

I'm not sure why it won't compile, it's full of 'string' is not defined, is this possibly a problem with the GNU D compiler still, or more 64 bit issues still to be resolved.

Any help would be appreciated, I would really like to play around with D and especially GTK, but I do need things to work in a 64 bit operating system.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Thu Jul 03, 2008 11:44 am    Post subject: Reply with quote

The string alias does not exist. This was an issue with GDC 0.23 as it was based on DMD 1.007. The string alias was added in DMD 1.016. I believe GDC 0.24 is based on DMD 1.018, so it should work there.

What version of GDC are you using?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jul 03, 2008 12:16 pm    Post subject: Reply with quote

it looks like version Tango is not defined somewhere, how did you install tango/dsss?

You might need to change the default profile for dsss, from gdc-posix to gdc-posix-tango. you can change this in dsss/etc/rebuild/default at least thats where it is in the tar.gz for dsss. Where it is on your system depends on where you installed it.
Back to top
View user's profile Send private message
robvdl



Joined: 02 Jul 2008
Posts: 5

PostPosted: Thu Jul 03, 2008 6:36 pm    Post subject: Reply with quote

okibi wrote:
The string alias does not exist. This was an issue with GDC 0.23 as it was based on DMD 1.007. The string alias was added in DMD 1.016. I believe GDC 0.24 is based on DMD 1.018, so it should work there.

What version of GDC are you using?


0.25 from the Ubuntu Hardy repository, so that doesn't seem to be the issue.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
robvdl



Joined: 02 Jul 2008
Posts: 5

PostPosted: Thu Jul 03, 2008 6:39 pm    Post subject: Reply with quote

Mike Wey wrote:
it looks like version Tango is not defined somewhere, how did you install tango/dsss?

You might need to change the default profile for dsss, from gdc-posix to gdc-posix-tango. you can change this in dsss/etc/rebuild/default at least thats where it is in the tar.gz for dsss. Where it is on your system depends on where you installed it.


I used it from the packages found here:

http://codeblog.palos.ro/2008/03/27/debian-d-packages-release-3/

Initially I tried compiling DSSS from SVN without luck (although I did not try compiling an official release of DSSS, maybe I should have). I then found the repository and used that instead, but maybe I should remove those packages and try compiling a stable release of DSSS myself.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
robvdl



Joined: 02 Jul 2008
Posts: 5

PostPosted: Thu Jul 03, 2008 8:07 pm    Post subject: Reply with quote

I remember now why I used the binary deb packages, because I could not get the SVN to compile.

I tried getting 0.75 of DSSS of the SVN just now, unzipped dsss-0.75.tar.bz2, copy Makefile.gdc.posix to just Makefile, typed make and I get it segfaulting on me:

Sorry I could not post the log here, because every time I do, phpBB keeps cutting out on me with an SQL error, so here's just the end part:

make: *** [dsss] Segmentation fault
make: *** Deleting file `dsss'
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Fri Jul 04, 2008 6:14 am    Post subject: Reply with quote

Could you please paste the log on a site such as CodePaste and give us your unique website id it gives you?
Back to top
View user's profile Send private message
robvdl



Joined: 02 Jul 2008
Posts: 5

PostPosted: Tue Jul 08, 2008 5:25 am    Post subject: Reply with quote

okibi wrote:
Could you please paste the log on a site such as CodePaste and give us your unique website id it gives you?


Sorry for the delay, but here it is:

http://www.ratedo.com/ddev/code.php?id=17

Just some quick info:

- I am running Ubuntu Hardy 64 bit
- I am running GDC 0.25 from the Ubuntu repository
- I completely removed those prebuilt DSSS and Tango packages I mentioned in my earlier posts, so should not get in the way: In other words, I only have GDC 0.25 installed, and that's it, no other D related packages.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
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