We don't release a Win64 build of dmd, so you don't need to build this target. There are files to support Win64 builds, but they are for those adventurous souls who want to compile dmd with Visual Studio.

On 1/17/2014 9:39 AM, Andrew Edwards wrote:
I'm having problems building on win7x64. Anyone ever encountered this issue and know a fix?

https://gist.github.com/AndrewEdwards/84777566

Observing the dmd/src, druntime, and phobos directories I noticed that dmd/src does not contain an win64.mak file but the others do. This shouldn't matter though, I thought, because when building dmd I specify MODEL=64. I don't think it made a difference.

I took a look at win32.mak and noticed a reference to PVS-Studio. I didn't have it installed

PVS-Studio is a source code analysis tool. We don't have PVS-Studio anymore, so just ignore that.


but all attempts to compile dmd prior succeeded. Just out curiosity I went ahead and installed it but now I can't compile dmd. I get the following:

    LINK : warning LNK4004: unrecognized option '/p512'; ignored
    LINK : warning LNK4004: unrecognized option '/c'; ignored

These are because win32.mak is designed to build dmd with the win32 tools, not the Microsoft win64 tools. The errors you see are from the Microsoft linker being passed command line switches meant for the Digital Mars linker.

LINK : fatal error LNK1104: cannot open file 'frontend.lib'

    --- errorlevel 1104

I'm at a lost at the moment. I guest a better question to ask is does anyone working on Win64 regularly build and use dmd from source? If so, can you provide the steps to properly configure my system?

Thanks,
Andrew

On 1/16/2014 3:08 PM, Walter Bright wrote:

This error can happen if one attempts to link together files compiled with different memory models - but that shouldn't be happening. I don't know what is going wrong here.

What snn.lib are you linking with? Also, can you post your message to the beta list, perhaps someone else has seen this issue too?

On 1/16/2014 3:56 AM, Andrew Edwards wrote:
Walter,

I've made some progress with building the betas. I've successfully built dmd and created the required zips for each platform with the exception of Win32. I need to be able to build from head in order to get this release built.

I followed instructions at wiki.dlang.org/Building_DMD but, while everything seems to work, I get errors about a missing linker when building the unittest or any other d program. Trying to pull link.exe from a different release and staging it doesn't work... I get a slew of errors in the form:

   ..\druntime\lib\druntime.lib(thread)
Error 35: Cannot Reach TARGET from FRAME at Relative 00041H from Segment _TEXT
    Segment _TEXT
    FRAME  = Frame of Group FLAT 000000H
TARGET = External Symbol _D4core6thread6Thread7sm_thisC4Core6thread6Thread 93D24H
    FIXUP Type = Unknown Type
--- errorlevel 1342

This is my last major roadblock. I've merged the 2.065 branch back to master and created a new "release" branch. Last thing left to do is this combine the zips and stage them so I can make the installers.

Any suggestions on what needs to be modified in wiki.dlang.org/Building_DMD to set up a working dmd environment?

Regards,
Andrew





_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to