www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Rebuilding Phobos

reply "Bob W" <nospam aol.com> writes:
Although I am pretty happy with D and its features,
I wanted to modify Phobos a bit. After checking it
out I have recognized that many files will not compile
with the '-w' (enable warnings) switch. So I have
modified all culprits and would be ready to build
my new Phobos version.

I have briefly checked the newsgroups and it seems
that building Phobos is not so straightforward as
originally thought, because there were quite a few
posts where people complained about several little
issues (missing masm.exe, etc.). In addition to that I
had the impression that the makefile contains
references to source files which are actually not
part of the 0.159 download.

Before I start testing my patched up Phobos
version, I'd like to know what problems I could
run into and how to avoid them.

Thanks for any feedback.
May 28 2006
next sibling parent "Lionello Lunesu" <lionello lunesu.remove.com> writes:
You'll have to edit win32.mak a bit.
Specifically, remove all references to recls.obj..
And there's another .obj it can't find, but I removed that too. My projects 
seems to link well without it :)

I can send you my changed win32.mak tomorrow, if you still need it.

L. 
May 28 2006
prev sibling parent reply Lionello Lunesu <lio lunesu.remove.com> writes:
Here's a win32.mak that works for me. Change the CFLAGS and DFLAGS on 
top to build with debug-info/unittests.

It's pretty simply, really. I had to remove the references to recls.obj, 
realtest.obj and gamma.obj.

Remember to do "attrib +r minit.obj" before you clean/del *.obj, since 
you'll need masm to build that one yourself.

L.
May 29 2006
parent "Bob W" <nospam aol.com> writes:
"Lionello Lunesu" <lio lunesu.remove.com> wrote in message 
news:e5e96v$2779$1 digitaldaemon.com...
 Here's a win32.mak that works for me. Change the CFLAGS and DFLAGS on
 top to build with debug-info/unittests.

 It's pretty simply, really. I had to remove the references to recls.obj,
 realtest.obj and gamma.obj.

 Remember to do "attrib +r minit.obj" before you clean/del *.obj, since
 you'll need masm to build that one yourself.

 L.
Thank you very much for your info. It was important for me to know that someone has successfully re-built Phobos using the source files supplied with the latest releases, because the Phobos makefile was obviously looking like it needed some overhaul. After reading your first message, I have started yesterday to modify both the Phobos and the internal\gc makefile. This was necessary, because my directory structure does not match the one required for the makefiles to work properly. For some strange reason a full path is given to the dmd compiler, while the C compiler is assumed to be found in the default path. (You might want to modify your makefile(s) accordingly, if you ever attempt to move the dmd directories). Then I have extracted the probably obsolete realtest.obj and gamma.obj from the original phobos.lib. I add them later to the newly built library in order to avoid comparison mismatches. Thanks again.
May 29 2006