Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

posix.mak needs -m32 for dmd on x86_64?

Moderators: kris

Posted: 03/05/08 11:33:08

Compiling the current svn on a 64-bit linux system with dmd results in some object files to be compiled in 64 bit (the ones written in C, compiled by gcc). Adding the -m32 option to CFLAGS in /trunk/lib/compiler/dmd/posix.mak resolved the issue for me, but I don't know anything about makefiles. Is this ok?

I don't know if this should be in a ticket or I have some weird installation myself.

Author Message

Posted: 03/05/08 16:19:42

Same here (thanks for the work-around/fix).

Posted: 03/05/08 17:51:52

Could one of you create a ticket? It is fairly unusual to use dmd on amd64 with 64bit linux installed.

Posted: 03/06/08 06:58:45

Done: http://www.dsource.org/projects/tango/ticket/967