January 01, 2013
On Tuesday, 1 January 2013 at 14:45:09 UTC, Namespace wrote:
>> make -fwin32.mak release
>>
>> So release is a make target.
>
> Then I get:
>
> D:\D\dmd2\src\dmd>make -fwin32.mak release

Strange... wind32.mak is supposed to be inside "somepath"/dmd/src, but you are calling it from "somepath"/dmd.

Did you move the makefile? you should be calling:

D:\D\dmd2\src\dmd\src>make -fwin32.mak release

> cd cppunit-1.12.1\src\cppunit
> --- errorlevel 1
>
> --- errorlevel 1
>
> What's wrong? o.O

Because you are in the worng dir the cd fails.
January 01, 2013
The path is D:\D\dmd2\src\dmd, there is the make file.
But I did not move anything. I'm using windows.
January 02, 2013
On Tuesday, January 01, 2013 23:10:15 Namespace wrote:
> The path is D:\D\dmd2\src\dmd, there is the make file.
> But I did not move anything. I'm using windows.

It looks like you're trying to build dmd from where it's installed rather from the repo. I have no idea if that even works. AFAIK, no one does that. So, even if it's supposed to work, most of us will have no more of a clue what to do about it than you will. Sorting it out would require understanding the makefile that's there.

If you want to build dmd, grab it from the repo, and build it from its src directory. Either that or use DVM: https://github.com/jacob-carlborg/dvm

- Jonathan M Davis
January 02, 2013
On Wednesday, 2 January 2013 at 00:20:55 UTC, Jonathan M Davis wrote:
> On Tuesday, January 01, 2013 23:10:15 Namespace wrote:
>> The path is D:\D\dmd2\src\dmd, there is the make file.
>> But I did not move anything. I'm using windows.
>
> It looks like you're trying to build dmd from where it's installed rather from
> the repo. I have no idea if that even works. AFAIK, no one does that. So, even
> if it's supposed to work, most of us will have no more of a clue what to do
> about it than you will. Sorting it out would require understanding the makefile
> that's there.
>
> If you want to build dmd, grab it from the repo, and build it from its src
> directory. Either that or use DVM: https://github.com/jacob-carlborg/dvm
>
> - Jonathan M Davis

Namespace:

OK: That explains it then.

Anyways, if you want to rebuild the packaged dmd, it is possible. There's just a little bug in the "clean" target, because it tries to cd into a folder that doesn't exist. Comment around the lines 300-301 in the clean target:

294 clean:
295 	$(DEL) *.obj
296 	$(DEL) total.sym
297 	$(DEL) msgs.h msgs.c
298 	$(DEL) elxxx.c cdxxx.c optab.c debtab.c fltables.c tytab.c
299 	$(DEL) impcnvtab.c
300 ###	cd $(CPPUNIT)\src\cppunit
301 ###	$(MAKE) clean

And it should work. Again, don't forget to copy the generated .exe's.

That said, there is very little point to rebuilding the packaged dmd (AFAIK).

The "poor man's" or "easy way" to build the entire DMD chain from source is to keep DMD 2.060 files, but delete the src/* directory. Then, you copy the sources from git, and re-compile with that. Doing it that way is easier, because it pre-writes your sc.init, it has a lot of libs and tools pre-generated etc.

BTW: http://wiki.dlang.org/Building_DMD
January 22, 2013
Hey, me again.
I cloned dmd from git head and try to build it with: make -fwin32.mak release
But I get these errors:

dmc -c -Ibackend;tk  -DMARS -cpp -D -g -DUNITTEST -e -wx -DDM_TARGET_CPU_X86=1 -
I. backend\cgelem
        elerr,
             ^
elxxx.c(3) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        eladd,
             ^
elxxx.c(4) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        elmin,
             ^
elxxx.c(5) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        elmul,
             ^
elxxx.c(6) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        eldiv,
             ^
elxxx.c(7) : Error: need explicit cast to convert
Fatal error: too many errors
--- errorlevel 1

--- errorlevel 1

--- errorlevel 1

I see them for the first time, so can someone explain me what is going on there? o.O
January 22, 2013
Hm, has really no one an idea what's wrong? I'm followed strict the steps that are described in the wiki.
January 22, 2013
On Tuesday, 22 January 2013 at 14:56:16 UTC, Namespace wrote:
> Hm, has really no one an idea what's wrong? I'm followed strict the steps that are described in the wiki.

Do you have the latest github dmd? Could just be that you pulled the code at the exact moment it wasn't compiling.
January 22, 2013
On Tuesday, 22 January 2013 at 14:58:50 UTC, monarch_dodra wrote:
> On Tuesday, 22 January 2013 at 14:56:16 UTC, Namespace wrote:
>> Hm, has really no one an idea what's wrong? I'm followed strict the steps that are described in the wiki.
>
> Do you have the latest github dmd? Could just be that you pulled the code at the exact moment it wasn't compiling.

Yes, I pulled several times and dmd is last updated before 6 hours.
So I don't believe that I catched this moment.
January 22, 2013
On Tuesday, 22 January 2013 at 15:10:14 UTC, Namespace wrote:
> On Tuesday, 22 January 2013 at 14:58:50 UTC, monarch_dodra wrote:
>> On Tuesday, 22 January 2013 at 14:56:16 UTC, Namespace wrote:
>>> Hm, has really no one an idea what's wrong? I'm followed strict the steps that are described in the wiki.
>>
>> Do you have the latest github dmd? Could just be that you pulled the code at the exact moment it wasn't compiling.
>
> Yes, I pulled several times and dmd is last updated before 6 hours.
> So I don't believe that I catched this moment.

I have cloned again, but the error is still there.
January 22, 2013
Maybe I should describe _exactly_ what I did to earn help.
I make a new directory with:
mkdir d
then I wrote
git clone git://github.com/D-Programming-Language/dmd.git
git clone git://github.com/D-Programming-Language/druntime.git
git clone git://github.com/D-Programming-Language/phobos.git
dir
and get the following directory structure:
dmd
druntime
phobos

I changed to dmd/src (where all files are, also win32.mak) and wrote:
make -fwin32.mak clean
and then
make -fwin32.mak release (I tried also -release)
It runs a few seconds and generates these executables:
idgen.exe
impcnvgen.exe
optabgen.exe
vergen.exe
but I get still these errors:
[code]
dmc -c -Ibackend;tk  -DMARS -cpp -D -g -DUNITTEST -e -wx -DDM_TARGET_CPU_X86=1 -
I. backend\cgelem
        elerr,
             ^
elxxx.c(3) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        eladd,
             ^
elxxx.c(4) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        elmin,
             ^
elxxx.c(5) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        elmul,
             ^
elxxx.c(6) : Error: need explicit cast to convert
from: elem*(*C func)(elem*,unsigned )
to  : elem*(*C func)(elem*)
        eldiv,
             ^
elxxx.c(7) : Error: need explicit cast to convert
Fatal error: too many errors
--- errorlevel 1

--- errorlevel 1

--- errorlevel 1
[/code]

So what is wrong now? A few days ago it works fine. I don't understand that. :/