<div dir="ltr">I hit the same errors when building dmd using vcbuild\builddmd.bat I assume I broke it when refactoring the makefile to build libs. Until we get an msvc auto-tester for win64 it's not really an officially supported build.<div>
<br></div><div>I suggest building with dmd_msc.vcxproj instead for now.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 18, 2014 at 4:39 AM, Andrew Edwards <span dir="ltr"><<a href="mailto:edwards.ac@gmail.com" target="_blank">edwards.ac@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
I'm having problems building on win7x64. Anyone ever encountered
this issue and know a fix?<br>
<br>
<a href="https://gist.github.com/AndrewEdwards/84777566" target="_blank">https://gist.github.com/AndrewEdwards/84777566</a><br>
<br>
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.<br>
<br>
I took a look at win32.mak and noticed a reference to PVS-Studio. I
didn't have it installed 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:<br>
<br>
LINK : warning LNK4004: unrecognized option '/p512'; ignored<br>
LINK : warning LNK4004: unrecognized option '/c'; ignored<br>
LINK : fatal error LNK1104: cannot open file 'frontend.lib'<br>
<br>
--- errorlevel 1104<br>
<br>
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?<br>
<br>
Thanks,<br>
Andrew<br>
<div><br>
<div>On 1/16/2014 3:08 PM, Walter Bright
wrote:</div>
<br>
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.<br>
<br>
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?<br>
<br>
<div>On 1/16/2014 3:56 AM, Andrew Edwards
wrote:<br>
</div>
<blockquote type="cite">
<div>Walter,<br>
<br>
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.<br>
<br>
I followed instructions at <a href="http://wiki.dlang.org/Building_DMD" target="_blank">wiki.dlang.org/Building_DMD</a> 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:<br>
<br>
..\druntime\lib\druntime.lib(thread)<br>
Error 35: Cannot Reach TARGET from FRAME at Relative
00041H from Segment _TEXT<br>
Segment _TEXT<br>
FRAME = Frame of Group FLAT 000000H<br>
TARGET = External Symbol
_D4core6thread6Thread7sm_thisC4Core6thread6Thread 93D24H<br>
FIXUP Type = Unknown Type<br>
--- errorlevel 1342<br>
<br>
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.<br>
<br>
Any suggestions on what needs to be modified in
<a href="http://wiki.dlang.org/Building_DMD" target="_blank">wiki.dlang.org/Building_DMD</a> to set up a working dmd
environment?<br>
<br>
Regards,<br>
Andrew<br>
</div>
</blockquote>
<br>
<br>
</div>
<br>
</div>
<br>_______________________________________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-beta</a><br></blockquote></div><br></div>