"Andre Tampubolon" <an...@lc.vlsm.org> wrote in message news:j0mvqc$115g$1...@digitalmars.com... >I still cannot build Phobos from git properly :( > > I tried to edit the win32.mak, changed the DFLAGS part into this: > DFLAGS=-O -release -nofloat -w -d -I%@P%\..\druntime\src\ -I%@P%\.. > druntime\import\ > > Issuing "make -f win32.mak DRUNTIME=\druntime\lib", the output was: > dmd -c -O -release -nofloat -w -d -I%@P%\..\druntime\src\ > -I%@P%\..\druntime\import etc\c\zlib > .d -ofCzlib.obj > DMD v2.055 DEBUG > object.d: Error: module object is in file 'object.d' which cannot be read > import path[0] = %@P%\..\druntime\src\ > import path[1] = %@P%\..\druntime\import > > --- errorlevel 1 > > > Now I'm totally confused. Maybe someone would like to write a tutorial > on how to build the latest DMD from git?
I'm going to write an automated way to do it. Probably put it into DVM if Jacob feels that'd be appropriate. But here's the notes I have so far (short answer: you're probably missing sc.ini and all the .libs, those files aren't included in git for some reason): ----------------------------------------- [Make sure DMC is installed and on the PATH] >git clone https://github.com/D-Programming-Language/dmd.git >git clone https://github.com/D-Programming-Language/druntime.git >git clone https://github.com/D-Programming-Language/phobos.git >mkdir dmd\bin >mkdir dmd\lib >copy {lib directory of latest official dmd release}\*.lib dmd\lib >del dmd\lib\phobos.lib >copy {bin directory of latest official dmd release}\sc.ini dmd\bin [Edit dmd\bin\sc.ini and find/replace "%@P%\..\src" with "%@P%\..\.."] [Edit dmd\src\win32.mak and change "CC=\dm\bin\dmc" to "CC=dmc"] >cd dmd\src >make -fwin32.mak -or- >make -fwin32.mak release >cd ..\.. >copy dmd\src\dmd.exe dmd\bin >set PATH={current_dir}\dmd\bin;%PATH% >cd druntime >make -fwin32.mak >cd .. >cd phobos >make -fwin32.mak DRUNTIME=..\druntime\lib >cd .. >copy phobos\phobos.lib dmd\lib