Me again. Another issue (or two). :(
I noticed on the ldc wiki that ldc has been used to successfully build
gtkD, so I set out to do just that. I first made sure that I had DSSS
set up properly and ran rebuild on a test project to see if was all
working. So far so good.
However, trying to build gtkD stops pretty quick. After invoking "dsss
build" I get this:
gtkd$ dsss build
undemofy
sed: 1: "/^.*$/ { N; s/\n\[/\n&/ }": bad flag in substitute command:
'}'
sed: 1: "/^\[.*/ { s/^./#&/; :a; ...": unexpected EOF (pending }'s)
Creating imports for DO-atk
Creating imports for DO-cairo
Creating imports for DO-gdk
Creating imports for DO-gdkpixbuf
Creating imports for DO-gio
Creating imports for DO-glade
Creating imports for DO-glib
Creating imports for DO-gobject
Creating imports for DO-gthread
Creating imports for DO-gtk
Creating imports for DO-gtkc
Creating imports for DO-pango
atk => DO-atk
gtkc/atk.d(29): module stdio cannot read file 'std/stdio.d'
Command /usr/local/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.
My first thought was that DSSS was using sed to parse DFLAGS, and
since the sed supplied with OS X didn't like the command it was given,
the version=Tango DFLAG didn't get sent through, and LDC tried to
compile the "else" portion of the first version(Tango) block in atk.d,
and failed because I don't have Phobos.
That was partially correct. I replaced the default sed with GNU sed,
and it did away with the sed error, but it still stops at compiling
atk.d with the same error there, still not catching that I want it to
compile for Tango. So sed wasn't responsible, but it's still not
working.
I tested dsss and rebuild with a test project using version(Tango)
blocks, and that seemed to work, so I don't know why it's not working
with gtkD. I've tried dsss versions 0.75 and 0.78.
BTW, I tested this on Tiger and Leopard, and get the same result on
both.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "LDC
- the LLVM D compiler" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ldc-dev?hl=en
-~----------~----~----~----~------~----~------~--~---