Re: [patch][drlvm] Linux/ia32 fix for Intel Compiler

2006-10-05 Thread Mark Hindess

Salikh,

I've applied this fix in r453130.  But in future please raise a JIRA.
(As it happens I need this fix to workaround problems I was having
on x86_64 otherwise I'd have probably been more hesitant about applying
it.)

Regards,
 Mark.

On 4 October 2006 at 17:25, Salikh Zakirov [EMAIL PROTECTED] wrote:
 Hi,
 
 DRLVM compiled with Intel Compiler 9.0 on Linux/ia32 currently
 does not work due to symbol 'clock_gettime' not being found.
 
 A simple build file fix is needed to solve the problem.
 It does not affect DRLVM built with gcc.
 (Gcc build still works with this modification).
 
 Could anyone commit this change?
 Thanks a lot!
 
 --- a/build/make/components/vm/hythr.xml
 +++ b/build/make/components/vm/hythr.xml
 @@ -95,6 +95,7 @@ vm.port,extra.log4cxx, extra.aprutil /
  /select
  
  select os=lnx
 +syslibset libs=rt /
  linkerarg value=-Wl,-init /
  linkerarg value=-Wl,hythread_library_init /
  linkerarg value=-Wl,--version-script,${src}/thread/src/hyt
 hr.exp /
 
 
 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [patch][drlvm] Linux/ia32 fix for Intel Compiler

2006-10-05 Thread Salikh Zakirov
Mark Hindess wrote:
 Salikh,
 
 I've applied this fix in r453130.  But in future please raise a JIRA.
 (As it happens I need this fix to workaround problems I was having
 on x86_64 otherwise I'd have probably been more hesitant about applying
 it.)

Okay, thanks.


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [patch][drlvm] Linux/ia32 fix for Intel Compiler

2006-10-05 Thread Nikolay Kuznetsov

Salikh,
out of curiosity, do you know why it happens that Intel Compiler
requires librt at build time to resolve symbols in run time, while gcc
works fine w/o this option.

Also parent system libset contains librt, but not being forwarded to
hythread (due to ant bug I believe), but if just copy parent libset to
hythread DRLVM will also crush at run time with another error, I
wonder why.

Thank you.
  Nik.

On 10/4/06, Salikh Zakirov [EMAIL PROTECTED] wrote:

Hi,

DRLVM compiled with Intel Compiler 9.0 on Linux/ia32 currently
does not work due to symbol 'clock_gettime' not being found.

A simple build file fix is needed to solve the problem.
It does not affect DRLVM built with gcc.
(Gcc build still works with this modification).

Could anyone commit this change?
Thanks a lot!

--- a/build/make/components/vm/hythr.xml
+++ b/build/make/components/vm/hythr.xml
@@ -95,6 +95,7 @@ vm.port,extra.log4cxx, extra.aprutil /
 /select

 select os=lnx
+syslibset libs=rt /
 linkerarg value=-Wl,-init /
 linkerarg value=-Wl,hythread_library_init /
 linkerarg 
value=-Wl,--version-script,${src}/thread/src/hythr.exp /


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [patch][drlvm] Linux/ia32 fix for Intel Compiler

2006-10-05 Thread Salikh Zakirov
Nikolay Kuznetsov wrote:
 out of curiosity, do you know why it happens that Intel Compiler
 requires librt at build time to resolve symbols in run time, while gcc
 works fine w/o this option.

 Also parent system libset contains librt, but not being forwarded to
 hythread (due to ant bug I believe), but if just copy parent libset to
 hythread DRLVM will also crush at run time with another error, I
 wonder why.

I've just checked, without specifying librt explicitly in 
components/vm/hythr.xml
gcc-built libhythr.so picks up librt.so dependency correctly
from parent linker definition (targets/common_vm.xml#common.linker),
while icc-built libhythr.so does not.

Running 'sh build.sh -d' (to pass '-d' argument to ant), and grepping for the 
libhythr.so build command,
one can find out the exact command line used to build the library. (See details 
below).

The difference shows, that cctask does not take inherited syslib into account.
(The parent linker definition is defined in make/targets/common_vm.xml,
and contains following configuration:
   209  select os=lnx arch=ia32
   210  syslibset type=static libs=z,pthread,xml2 /
   211  syslibset type=shared libs=m,dl,stdc++,rt /
   212  /select

Indeed, looks like a bug in cctask.

--- cmd.icc 2006-10-05 15:02:38.397439882 +0400
+++ cmd.gcc 2006-10-05 15:02:48.743318641 +0400
@@ -1,10 +1,18 @@
-Executing 'icc' with arguments:
+Executing 'gcc' with arguments:
 '-Wl,-init'
-'-Wl,hythread_library_init'
   
'-Wl,--version-script,/files/sszakiro/harmony/drlvm/trunk/vm/thread/src/hythr.exp'
+'-Wl,hythread_library_init'
+'-Wl,--version-script,/files/sszakiro/harmony/drlvm/trunk/vm/thread/src/hythr.exp'
 '-g'
 '-shared' 
 '-o'
 'libhythr.so'
+'../../../../../../../../../../../usr/lib/libpthread.a'
+'../../../../../../../../../../../usr/lib/libz.a'
+'../../../../../../../../../../../lib/libm.so.6'
+'../../../../../../../../../../../usr/lib/libstdc++.so.5.0.6'
+'../../../../../../../../../../../usr/lib/libxml2.a'
+'../../../../../../../../../../../lib/librt.so.1'
+'../../../../../../../../../../../lib/libdl.so.2'
 '../_obj/thread_init.o'
 '../_obj/thread_native_attrs.o'
 '../_obj/thread_native_basic.o'
@@ -21,11 +29,11 @@
 '../_obj/thread_native_suspend.o'
 '../_obj/thread_native_thin_monitor.o'
 '../_obj/thread_native_tls.o'
-'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_icc_debug/semis/vm/port/_bin'
+'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_gcc_debug/semis/vm/port/_bin'
 '-lport'
-'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_icc_debug/semis/extra/log4cxx/_bin'
+'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_gcc_debug/semis/extra/log4cxx/_bin'
 '-llog4cxx'
-'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_icc_debug/semis/extra/aprutil/_bin'
+'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_gcc_debug/semis/extra/aprutil/_bin'
 '-laprutil-1'
-'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_icc_debug/semis/extra/apr/_bin'
+'-L/files/sszakiro/harmony/drlvm/trunk/build/lnx_ia32_gcc_debug/semis/extra/apr/_bin'
 '-lapr-1'


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[patch][drlvm] Linux/ia32 fix for Intel Compiler

2006-10-04 Thread Salikh Zakirov
Hi,

DRLVM compiled with Intel Compiler 9.0 on Linux/ia32 currently
does not work due to symbol 'clock_gettime' not being found.

A simple build file fix is needed to solve the problem.
It does not affect DRLVM built with gcc.
(Gcc build still works with this modification).

Could anyone commit this change?
Thanks a lot!

--- a/build/make/components/vm/hythr.xml
+++ b/build/make/components/vm/hythr.xml
@@ -95,6 +95,7 @@ vm.port,extra.log4cxx, extra.aprutil /
 /select
 
 select os=lnx
+syslibset libs=rt /
 linkerarg value=-Wl,-init /
 linkerarg value=-Wl,hythread_library_init /
 linkerarg 
value=-Wl,--version-script,${src}/thread/src/hythr.exp /


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]