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

mango not compiling properly under linux

 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
ameer



Joined: 17 Jun 2004
Posts: 2

PostPosted: Thu Jun 17, 2004 9:42 pm    Post subject: mango not compiling properly under linux Reply with quote

Hi all
I'm new to dsource and , got the latest dmd/phobos from digital mars' site. Then I got mango beta 7 off the dsource mango site.
When I unpacked mango in dmd/src, and ran make -fMakefile.txt, it started compiling, but gave me a bunch of errors about conflicting types, invallid perameters, etc.
All the std files are found however, since it mentions std.c.linux.linux.
Am i missing something, or is there an actual bug?
Back to top
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 657
Location: Muskogee, OK, USA

PostPosted: Thu Jun 17, 2004 10:00 pm    Post subject: Re: mango not compiling properly under linux Reply with quote

ameer wrote:
When I unpacked mango in dmd/src, and ran make -fMakefile.txt, it started compiling, but gave me a bunch of errors about conflicting types, invallid perameters, etc.
All the std files are found however, since it mentions std.c.linux.linux.
Am i missing something, or is there an actual bug?
Which version of the compiler are you running? I'd think that Kris tests it with the latest DMD.
Back to top
View user's profile Send private message AIM Address
brad
Site Admin


Joined: 22 Feb 2004
Posts: 490
Location: Atlanta, GA USA

PostPosted: Thu Jun 17, 2004 10:01 pm    Post subject: Reply with quote

ameer,

Do you have access to Python and SCons?? If so, I can give you a build script that will work just fine. I've abandoned make.

I also think that the updated script is in the Mango download. It would be called SConstruct.

I have put mango in the following directory:

/home/brad/dev/d/mango/

and so after that, you unpack your download and it becomes:

/home/brad/dev/d/mango/trunk/mango/*

The SConstruct file goes in the trunk/ directory.


http://www.python.org

http://www.scons.org
_________________
I really like the vest!
Back to top
View user's profile Send private message
ameer



Joined: 17 Jun 2004
Posts: 2

PostPosted: Fri Jun 18, 2004 9:11 am    Post subject: Re: mango not compiling properly under linux Reply with quote

jcc7 wrote:
ameer wrote:
When I unpacked mango in dmd/src, and ran make -fMakefile.txt, it started compiling, but gave me a bunch of errors about conflicting types, invallid perameters, etc.
All the std files are found however, since it mentions std.c.linux.linux.
Am i missing something, or is there an actual bug?
Which version of the compiler are you running? I'd think that Kris tests it with the latest DMD.

I'm running dmd 0.92
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Fri Jun 18, 2004 1:59 pm    Post subject: Reply with quote

Ameer.

I still use makefile to compile mango. The makefile.txt file in the make directory is full of invalid line end characters because it was created on the windows platform. Linux make doesn't like the file one bit.

Initially, I tried playing around with the file to try to remove all the wrong codes, but eventually I just ended up rewriting the makefile to fix the problem. I can send you the fixed one if you want or I can submit it to Kris so he can update the one in mango. Despite the availability of Scons, I think there should still be a working makefile for make diehards.

Later,

John
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sun Jun 20, 2004 9:09 pm    Post subject: Reply with quote

JJR wrote:
Ameer.

I still use makefile to compile mango. The makefile.txt file in the make directory is full of invalid line end characters because it was created on the windows platform. Linux make doesn't like the file one bit.

Initially, I tried playing around with the file to try to remove all the wrong codes, but eventually I just ended up rewriting the makefile to fix the problem. I can send you the fixed one if you want or I can submit it to Kris so he can update the one in mango. Despite the availability of Scons, I think there should still be a working makefile for make diehards.

Later,

John


Ameer ~ here's a link to the make file John fixed (thank you John): http://svn.dsource.org/svn/projects/mango/trunk/make/mango.mak

Note that you have to compile Mango from a directory "one removed" from the source itself; otherwise the compiler gets confused about import paths. That is, I compile everything from a "src" directory, which includes the make files plus src/mango/io, src/mango/server, etc

Let us know if you still run into problems ...

- Kris
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Sun Jun 20, 2004 10:50 pm    Post subject: Reply with quote

kris wrote:
Ameer ~ here's a link to the make file John fixed (thank you John): http://svn.dsource.org/svn/projects/mango/trunk/make/mango.mak


Kris, the one you link to above is the updated win32 makefile. I think he needs the one for Linux that I sent you recently.... At least, after I read his post, I assumed he was working with mango on Linux... Maybe it would be best to label the makefiles explicitly for the OS they are designed for... perhaps a little less confusing Smile.

Later,

John
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Mon Jun 21, 2004 12:53 am    Post subject: Reply with quote

JJR wrote:
kris wrote:
Ameer ~ here's a link to the make file John fixed (thank you John): http://svn.dsource.org/svn/projects/mango/trunk/make/mango.mak


Kris, the one you link to above is the updated win32 makefile. I think he needs the one for Linux that I sent you recently.... At least, after I read his post, I assumed he was working with mango on Linux... Maybe it would be best to label the makefiles explicitly for the OS they are designed for... perhaps a little less confusing Smile.

Later,

John

Doh!

Here's John's updated makefile: http://svn.dsource.org/svn/projects/mango/trunk/make/Makefile.txt

Cheers mate. I'm even more vacant than usual recently cos' my house just went on the market today. Too many distractions <g>. Anyone in the SF Bay area, come over and have a beer/wine; I rather like what the stager's did to the place, and the refreshments have been upgraded accordingly ...

- Kris
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango 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