build Ldc2 for win xp 32 bit Error

Kai Nacke kai at redstar.de
Sat Jul 28 10:35:53 PDT 2012


On 25.07.2012 22:39, Rainer Schuetze wrote:
>
>
> On 25.07.2012 06:28, huynh van sen wrote:
>> Please build LDC2 for windowXP with visual studio 2010
>> I try compling on windows XP 32 bit .But I get Error
>> Please Help me !
>>
>> C:/ldcenv/build-ldc2/ldc/vcbuild/ldfpu.asm(33): error A2034: must be in
>> segment
> ....
>> nt block [C:\ldcenv\build-ldc2\LDCShared.vcxproj]
>>    C:/ldcenv/build-ldc2/ldc/vcbuild/ldfpu.asm(38): fatal error A1010:
>> unmatched
>> block nesting : ld_read [C:\ldcenv\build-ldc2\LDCShared.vcxproj]
>>
>>
>> "C:\ldcenv\build-ldc2\ALL_BUILD.vcxproj" (default target) (1) ->
>> "C:\ldcenv\build-ldc2\ldmd2.vcxproj" (default target) (8) ->
>> (Link target) ->
>>    LINK : fatal error LNK1104: cannot open file 'Program.lib'
>> [C:\ldcenv\build-l
>> dc2\ldmd2.vcxproj]
>>
>>      30 Warning(s)
>>      12 Error(s)
>>
>> Time Elapsed 00:00:20.18
>>
>> C:\ldcenv\build-ldc2>
>
> I have not tried to build LDC myself, but my guess is that there is
> something wrong with the build step for the assembly file ldfpu.asm. It
> seems the VS projects are generated from CMake, so it might not be setup
> correctly.
>
> For x64 builds, the command line in dmd_msc.vcproj is "ml64 -c -Zi
> "-Fl$(IntDir)\$(InputName).lst" "-Fo$(IntDir)\$(InputName).obj"
> "$(InputPath)".
> For win32 builds, ldfpu.asm should be excluded from the build, inline
> assembly is used instead in longdouble.c.
>
> BTW: are there instructions how to build LDC2 on Windows? What is the
> state of the missing exception handling for Windows?

Hi!

Thanks for the hint. I try to correct the build file generation. Because 
of missing SEH support (protected by patents :-( ), I only work on the 
x64 version of LDC.

Build instructions are here:
https://github.com/ldc-developers/ldc/wiki/Building-and-hacking-LDC-on-Windows-using-MSVC

Regards
Kai


More information about the Digitalmars-d mailing list