Menu ▾ ▴

#183 Wrapper is unable to detect platform with new Intel CPUs

open
nobody
None
5
2013-10-31
2007-08-30
No

We are not able to run the wrapper on Linux box with new Intel CPU. The wrapper gives us following error message.

Unable to locate any of the following binaries:
/opt/testwrapper/bin/./wrapper-linux-intel(r)pentium(r)dcpu2.66ghz-32
/opt/testwrapper/bin/./wrapper/wrapper-linux-intel(r)pentium(r)dcpu2.66ghz-64
/opt/testwrapper/bin/./wrapper/wrapper

It seems to be uname related problem and handling of its output needs to be a little bit more tricky.

There exists a workaround for it - create symlinks in proper directories:

% ln -s wrapper-linux-x86-32 wrapper
% ln -s libwrapper-linux-x86-32.so libwrapper.so

=============

% cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.66GHz
stepping : 8
cpu MHz : 2666.711
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 3
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx constant_tsc up pni ds_cpl
bogomips : 5349.47

Discussion

  • Matej Pivoluska

    Matej Pivoluska - 2007-08-30

    Logged In: YES
    user_id=643694
    Originator: YES

    PS:
    % uname -a
    Linux hydratest3 2.6.18-gentoo-r6 #5 SMP Mon Jan 22 00:59:36 CET 2007 i686 Intel(R) Pentium(R) D CPU 2.66GHz GenuineIntel GNU/Linux

    % uname -p
    Intel(R) Pentium(R) D CPU 2.66GHz

    % uname -m
    i686

     
  • Libor Tvrdik

    Libor Tvrdik - 2013-10-31

    The same problem is on Gentoo Linux. I think, that script use bad detection of platform. You can try use "uname -m" first. Work on other Linux platform good.

    For solution:

    1. Open you aplication script (bin/application.sh)
    2. Search "uname -p" and replace by "uname -m"
    3. Search "uname -m" (about 5 lines below) and replace by "uname -p"
    4. Save the script and run it!

    There is diff for current version 3.5.22:

    309c309
    < DIST_ARCH=uname -m 2>/dev/null | $TREXE "[A-Z]" "[a-z]" | $TREXE -d ' '


    > DIST_ARCH=uname -p 2>/dev/null | $TREXE "[A-Z]" "[a-z]" | $TREXE -d ' '
    316c316
    < DIST_ARCH=uname -p 2>/dev/null | $TREXE "[A-Z]" "[a-z]" | $TREXE -d ' '


    > DIST_ARCH=uname -m 2>/dev/null | $TREXE "[A-Z]" "[a-z]" | $TREXE -d ' '

    Could you please apply to oficial release and resolved in this bug report? Thank you.

    For more information see on manual page of uname.

     

Log in to post a comment.