harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon.Chow (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5598) [build][windows.x86] modification needed when building harmony using vs.net2005
Date Wed, 12 Mar 2008 10:54:46 GMT
[build][windows.x86] modification needed when building harmony using vs.net2005
-------------------------------------------------------------------------------

                 Key: HARMONY-5598
                 URL: https://issues.apache.org/jira/browse/HARMONY-5598
             Project: Harmony
          Issue Type: Improvement
          Components: build - test - ci
    Affects Versions: 5.0M5
         Environment: window on x86 platform
            Reporter: Simon.Chow
            Priority: Minor


Some error occur when building 5.0M5 using MSVS 2005
it is because of some new warning produced by MSVS C++ compiler.
As far as I know, following modification should be performed both in the configuration files
and source files.

1, in working_classlib
depends\build\defines.mak
change
    36  !ELSE
    37  WARNING_LEVEL=WX
    38  !ENDIF
to
    36  !ELSE
    37  WARNING_LEVEL=W3
    38  !ENDIF

2, in working_vm
   (1) make\vm\common-vm.xml
        insert
        <compilerarg value="/wd4005" if="is.msvc"/>
        <compilerarg value="/wd4996" if="is.msvc" />
        <compilerarg value="/wd4047" if="is.msvc" />
        <compilerarg value="/wd4024" if="is.msvc" />
        <compilerarg value="/wd4819" if="is.msvc" />
        <compilerarg value="/wd4005" if="is.msvc"/>
        after
  62  <compilerarg value="/Zi" if="is.windows"/>
  63  <compilerarg value="/W3" if="is.windows"/>
  64  <compilerarg value="/WX" if="is.windows" unless="is.x86_64"/>

   (2) working_vm\vm\include\open\hythread.h, hythread_ext.h
modify (take 'include' out of 'extern "C"')
    #if defined(__cplusplus)
    extern "C" {
    #endif
    #include <open/types.h>
  
    #include <stddef.h>
    #include "hycomp.h"
   
    #ifdef _WIN32
    #   if (_MSC_VER >= 1400)
    #       include <intrin.h>
    #   endif
    #endif
to
    #include <open/types.h>
   
    #include <stddef.h>
    #include "hycomp.h"
   
    #ifdef _WIN32
    #   if (_MSC_VER >= 1400)
    #       include <intrin.h>
    #   endif
    #endif
   
    #if defined(__cplusplus)
    extern "C" {
    #endif

    For hythread_ext.h, similar operation should be performed.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message