www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - error building on Syllable

reply Rohan <rohan land.ru> writes:
Hi! I try to build DMD under Syllable, but I get next error. I tried 1&2 
versions and BSD port, and it didn't help.

http://img95.imageshack.us/img95/5505/capturey.png

Could anybody help?
Apr 21 2009
parent reply Frits van Bommel <fvbommel REMwOVExCAPSs.nl> writes:
Rohan wrote:
 Hi! I try to build DMD under Syllable, but I get next error. I tried 1&2 
 versions and BSD port, and it didn't help.
 
 http://img95.imageshack.us/img95/5505/capturey.png
 
 Could anybody help?

Looks like simple missing #includes. Figure out which header should declare each of those symbols and #include it at the top of any source file that can't find them. (The most likely cause is a header that on Linux and OS X is #included by some other header, but not on Syllable...) After doing that, it'd be nice to put a patch in bugzilla: http://d.puremagic.com/issues/
Apr 21 2009
next sibling parent reply "Denis Koroskin" <2korden gmail.com> writes:
On Tue, 21 Apr 2009 15:06:02 +0400, Frits van Bommel
<fvbommel remwovexcapss.nl> wrote:

 Rohan wrote:
 Hi! I try to build DMD under Syllable, but I get next error. I tried  
 1&2 versions and BSD port, and it didn't help.
  http://img95.imageshack.us/img95/5505/capturey.png
  Could anybody help?

Looks like simple missing #includes. Figure out which header should declare each of those symbols and #include it at the top of any source file that can't find them. (The most likely cause is a header that on Linux and OS X is #included by some other header, but not on Syllable...) After doing that, it'd be nice to put a patch in bugzilla: http://d.puremagic.com/issues/

Indeed, it looks like errno.h is not included ('errno' was not declared) as well as unistd.h ('getcwd' was not declared). It seems that the following block was ignored (top of dwarf.c): #if linux || APPLE || FreeBSD #include <signal.h> #include <unistd.h> #include <errno.h> #endif I bet neither of the three are defined for some reason.
Apr 21 2009
parent reply Rohan <rohan land.ru> writes:
I tried to build all with option -Dlinux=1, and it's helped, I ret 
around this error, but after it I had fail
http://img164.imageshack.us/img164/820/capture4.png
Apr 21 2009
parent Rohan <rohan land.ru> writes:
I maked build of Syllable Developer Edition. This build is for VMware, 
and include all what needed for developing (IDE + GCC ...). I still hope 
that someone from D folks may help with porting D. I tried several times 
to do it himself, but without result.
If somone interesting in porting D to other Operation Systems, he free 
to doownload this image and play with Syllable under VMWare.

http://playfile.ru/get/3421/ (150MB)

P.S. plz do not use VirtualBox. Syllable work on it very badly.
Jul 21 2009
prev sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Tue, 21 Apr 2009 22:35:58 +0400, Rohan <rohan land.ru> wrote:

 I tried to build all with option -Dlinux=1, and it's helped, I ret  
 around this error,

Well, technically, Syllable is not Linux. So, the following list needs to be expanded: - #if linux || __APPLE__ || __FreeBSD__ + #if linux || __APPLE__ || __FreeBSD__ || __SYLLABLE__ or rather a shorter #ifdef POSIX
 but after it I had fail
 http://img164.imageshack.us/img164/820/capture4.png

These all come from <math.h>, are you sure you link with C runtime library? (glibc?)
Apr 21 2009