harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov" <alexei.zakha...@gmail.com>
Subject Re: [general] Harmony enabling at Windows / x86_64
Date Tue, 20 Feb 2007 14:58:44 GMT
Thanks Ivan, the build was successful this time. However, I've spent
some time trying to resolve strange x32-x64 conflict (even with your
new patch) and found that "clean" target doesn't work as expected. And
it seems that the root cause of it is your modification:

in modules\portlib\src\main\native\thread\makefile:
---
BUILDFILES = \
  $(SHAREDSUB)thread_copyright.obj $(HY_PLATFORM)/thrhelp.obj
$(HY_PLATFORM)/thrspinlock.obj \
  $(SHAREDSUB)hythread.obj $(SHAREDSUB)hythreadinspect.obj
$(SHAREDSUB)rwmutex.obj thrdsup.obj \
  $(SHAREDSUB)thrprof.obj

in modules\portlib\src\main\native\common\windows\makefile:
--
BUILDFILES = \
	$(SHAREDSUB)libglob.obj $(SHAREDSUB)iohelp.obj \
	$(SHAREDSUB)exceptions.obj $(SHAREDSUB)strhelp.obj \
	$(HY_PLATFORM)/locklbl.obj lock386.obj \
	$(SHAREDSUB)utf8decode.obj $(SHAREDSUB)utf8encode.obj

I mean "$(HY_PLATFORM)/thrspinlock.obj" and
"$(HY_PLATFORM)/locklbl.obj". Seems Windows del command cannot handle
"/". Could you fix this somehow please?

Thanks,

2007/2/20, Ivan Zvolsky <i.zvolsky@gmail.com>:
> Hello,
>
> This is because wrong version (not x64) of macro assembler were used to
> compile locklbl.obj due to my mistake in build system patch. ml64.exe should
> be used instead of ml.exe. I've fixed this in the latest version of the
> patch and updated H-3188 with it (see classlib_build_system_v2.patch).
>
> On 2/20/07, Alexei Zakharov <alexei.zakharov@gmail.com> wrote:
> >
> > Ivan,
> >
> > I have problems with compiling the native part of classlib+your patch
> > on Win64. I've got the following:
> >
> > -build-native:
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_AMD64_=1 -DW
> > IN64 -D_WIN64  -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WIN95
> > -D_WIN32_WINDOWS=0x0400 /D_WIN
> > 32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -W0 -GF -Gs -MD
> > -Zm400  -D_DLL -D_MT -D_WINS
> > OCKAPI_  /IC:\ayza_docs\cl\deploy\include
> > /IC:\ayza_docs\cl\deploy\jdk\include /I. /I..\shared\
> > -Fo..\shared\libglob.obj ..\shared\libglob.c
> >      [exec] cl : Command line warning D9025 : overriding '/W4' with '/W0'
> >      [exec] libglob.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_AMD64_=1 -DW
> > IN64 -D_WIN64  -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WIN95
> > -D_WIN32_WINDOWS=0x0400 /D_WIN
> > 32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -W0 -GF -Gs -MD
> > -Zm400  -D_DLL -D_MT -D_WINS
> > OCKAPI_  /IC:\ayza_docs\cl\deploy\include
> > /IC:\ayza_docs\cl\deploy\jdk\include /I. /I..\shared\
> > -Fo..\shared\iohelp.obj ..\shared\iohelp.c
> >      [exec] cl : Command line warning D9025 : overriding '/W4' with '/W0'
> >      [exec] iohelp.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_AMD64_=1 -DW
> > IN64 -D_WIN64  -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WIN95
> > -D_WIN32_WINDOWS=0x0400 /D_WIN
> > 32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -W0 -GF -Gs -MD
> > -Zm400  -D_DLL -D_MT -D_WINS
> > OCKAPI_  /IC:\ayza_docs\cl\deploy\include
> > /IC:\ayza_docs\cl\deploy\jdk\include /I. /I..\shared\
> > -Fo..\shared\exceptions.obj ..\shared\exceptions.c
> >      [exec] cl : Command line warning D9025 : overriding '/W4' with '/W0'
> >      [exec] exceptions.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_AMD64_=1 -DW
> > IN64 -D_WIN64  -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WIN95
> > -D_WIN32_WINDOWS=0x0400 /D_WIN
> > 32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -W0 -GF -Gs -MD
> > -Zm400  -D_DLL -D_MT -D_WINS
> > OCKAPI_  /IC:\ayza_docs\cl\deploy\include
> > /IC:\ayza_docs\cl\deploy\jdk\include /I. /I..\shared\
> > -Fo..\shared\strhelp.obj ..\shared\strhelp.c
> >      [exec] cl : Command line warning D9025 : overriding '/W4' with '/W0'
> >      [exec] strhelp.c
> >      [exec]     ml /Fowindows.x86_64/locklbl.obj /c /Cp /W3 /nologo
> > /coff /Zm /Zd /Zi /Gd  -DWI
> > N32 windows.x86_64/locklbl.asm
> >      [exec]  Assembling: windows.x86_64/locklbl.asm
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_AMD64_=1 -DW
> > IN64 -D_WIN64  -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WIN95
> > -D_WIN32_WINDOWS=0x0400 /D_WIN
> > 32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -W0 -GF -Gs -MD
> > -Zm400  -D_DLL -D_MT -D_WINS
> > OCKAPI_  /IC:\ayza_docs\cl\deploy\include
> > /IC:\ayza_docs\cl\deploy\jdk\include /I. /I..\shared\
> > -Folock386.obj lock386.c
> >      [exec] cl : Command line warning D9025 : overriding '/W4' with '/W0'
> >      [exec] lock386.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_AMD64_=1 -DW
> > IN64 -D_WIN64  -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WIN95
> > -D_WIN32_WINDOWS=0x0400 /D_WIN
> > 32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -W0 -GF -Gs -MD
> > -Zm400  -D_DLL -D_MT -D_WINS
> > OCKAPI_  /IC:\ayza_docs\cl\deploy\include
> > /IC:\ayza_docs\cl\deploy\jdk\include /I. /I..\shared\
> > -Fo..\shared\utf8decode.obj ..\shared\utf8decode.c
> >      [exec] cl : Command line warning D9025 : overriding '/W4' with '/W0'
> >      [exec] utf8decode.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_AMD64_=1 -DW
> > IN64 -D_WIN64  -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WIN95
> > -D_WIN32_WINDOWS=0x0400 /D_WIN
> > 32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -W0 -GF -Gs -MD
> > -Zm400  -D_DLL -D_MT -D_WINS
> > OCKAPI_  /IC:\ayza_docs\cl\deploy\include
> > /IC:\ayza_docs\cl\deploy\jdk\include /I. /I..\shared\
> > -Fo..\shared\utf8encode.obj ..\shared\utf8encode.c
> >      [exec] cl : Command line warning D9025 : overriding '/W4' with '/W0'
> >      [exec] utf8encode.c
> >      [exec]     lib /NOLOGO -subsystem:windows
> > -out:C:\ayza_docs\cl\deploy\lib\hycommon.lib   -
> > machine:AMD64  ..\shared\libglob.obj ..\shared\iohelp.obj
> > ..\shared\exceptions.obj ..\shared\s
> > trhelp.obj  windows.x86_64/locklbl.obj lock386.obj
> > ..\shared\utf8decode.obj ..\shared\utf8enco
> > de.obj
> >      [exec] windows.x86_64/locklbl.obj : fatal error LNK1112: module
> > machine type 'X86' conflic
> > ts with target machine type 'x64'
> >      [exec] NMAKE : fatal error U1077: '"C:\Program Files
> > (x86)\Microsoft Visual Studio 8\VC\BI
> > N\amd64\lib.EXE"' : return code '0x458'
> >      [exec] Stop.
> >
> > Any ideas?
> >
> > Thanks,
> >
> > 2007/2/16, Ivan Zvolsky <i.zvolsky@gmail.com>:
> > > Hello,
> > >
> > > Some time ago, I found out that Harmony is not buildable on Windows /
> > x86_64
> > > (EM64T).
> > > I tried to reanimate at least the build which has required to update
> > both
> > > classlib and drlvm build files, create stubs for some functions, etc.
> > >
> > > I've put my results (for now only classlib part) to HARMONY-3188.
> > > Could someone take a look? The comments are welcome.
> > >
> > > In particular, Geir might want to look at the first comment in the
> > > description :)
> > >
> > > Thanks,
> > > Ivan
> > --
> > Alexei Zakharov,
> > Intel ESSD



-- 
Alexei Zakharov,
Intel ESSD

Mime
View raw message