Uploaded image for project: 'ReactOS Build Environment'
  1. ReactOS Build Environment
  2. ROSBE-31

ROSBE Visual Studio Solution .S file can't compile BUG

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: RosBE-Windows
    • Labels:
    • Environment:

      Windows 7 sp1 x64.VS2012 VS2010 WDK

      Description

      ROSBE Visual Studio Solution .S file can't compile BUG

      Open VS2012 x86 Native Tools Command Prompt
      go E:\ReactOS\Src

      1. configure.cmd VSSolution
      2. compile
      E:\ReactOS\Src\output-VS11-i386\host-tools\REACTOS.sln ----this ok.
      E:\ReactOS\Src\output-VS11-i386\reactos\REACTOS.sln --failed!

      I found all with .S extension files are not compiled.

      3. For example:
      Open E:\ReactOS\Src\output-VS11-i386\reactos\dll\ntdll\ntdll.vcxproj with notepad2(xml):

      #############################################
      <ItemGroup>
      <ClCompile Include="..\..\..\..\dll\ntdll\csr\api.c" /> -----------------ok
      <ClCompile Include="..\..\..\..\dll\ntdll\csr\capture.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\csr\connect.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\dbg\dbgui.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\ldr\ldrapi.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\ldr\ldrinit.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\ldr\ldrpe.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\ldr\ldrutils.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\rtl\libsupp.c" />
      <ClCompile Include="..\..\..\..\dll\ntdll\rtl\version.c" />
      <ResourceCompile Include="..\..\..\..\dll\ntdll\def\ntdll.rc" /> -----------------ok
      <None Include="..\..\..\..\dll\ntdll\dispatch\i386\dispatch.S" /> -----------------!!!!! <None?Should be CustomBuild?>
      </ItemGroup>
      #############################################

      4. Open VS2012 x86 Native Tools Command Prompt
      5. configure.cmd Ninja -----(without VSSolution)
      6. Open E:\ReactOS\Src\output-VS11-i386\reactos\build.ninja

      ctrl+f to find "target ntdll"
      #############################################

      1. Object build statements for SHARED_LIBRARY target ntdll

      .........
      build dll\ntdll\CMakeFiles\ntdll.dir\dispatch\i386\dispatch.S.obj: ASM_COMPILER ..\..\dll\ntdll\dispatch\i386\dispatch.S | dll\ntdll\ntdll.def dll\ntdll\ntdll_stubs.c || include\reactos\mc\ntstatus include\asm\asm lib\pseh\pseh.lib lib\rtl\rtl.lib lib\sdk\crt\libcntpr.lib ntoskrnl\ntdllsys.lib
      DEFINES = -DCRTDLL -DDBG=1 -DUSE_COMPILER_EXCEPTIONS -DWIN32 -DWINVER=0x502 -D_M_IX86 -D_NTOSKRNL_ -D_SEH_ENABLE_TRACE -D_SETUPAPI_VER=0x502 -D_USE_32BIT_TIME_T -D_WIN32_IE=0x600 -D_WIN32_WINDOWS=0x502 -D_WIN32_WINNT=0x502 -D_WINDOWS -D_WINKD_=1 -D_X86_ -D_NTDLL_ -D_REACTOS_ -D_STDC=1 -Di386_ -Dinline=__inline -Dntdll_EXPORTS
      DEP_FILE = dll/ntdll/CMakeFiles/ntdll.dir/dispatch/i386/dispatch.S.obj.d
      FLAGS = /X /GR- /GS- /Zl /W3 /we4700 /Zi /Ob0 /Od -Idll\ntdll -I..\..\dll\ntdll -I..\..\win32ss\include -I..\..\include\reactos\subsys -I..\..\dll\ntdll\include -I..\..\include -I..\..\include\psdk -I..\..\include\dxsdk -Iinclude -Iinclude\dxsdk -Iinclude\psdk -Iinclude\reactos -I..\..\include\crt -I..\..\include\ddk -I..\..\include\ndk -I..\..\include\reactos -I..\..\include\reactos\libs -I..\..\include\crt\msc
      OBJECT_DIR = dll\ntdll\CMakeFiles\ntdll.dir\dispatch\i386
      TARGET_PDB = dll\ntdll\ntdll.pdb
      #############################################

      ASM_COMPILER ok.

      open rules.ninja,

      #############################################

      1. Rule for compiling ASM files.

      rule ASM_COMPILER
      command = cmd.exe /c cl /nologo /X /IE:/ReactOS/Src/include/asm /IE:/ReactOS/Src/output-VS10-i386/reactos/include/asm $FLAGS $DEFINES /D_ASM_ /D_USE_ML /EP /c $in > $out.tmp && C:\PROGRA~2\MICROS~2.0\VC\bin\ml.exe /nologo /Cp /Fo$out /c /Ta $out.tmp
      description = Building ASM object $out
      #############################################

      ASM_COMPILER here.

      cmake bug?
      ref:http://public.kitware.com/Bug/view.php?id=8170

        Attachments

          Activity

            People

            • Assignee:
              AmineKhaldi AmineKhaldi
              Reporter:
              binsys binsys
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: