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]