Psyco & Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fausto Arinos Barbuto

    #1

    Psyco & Linux


    Hi All;

    I have Psyco (on Windows XP) and now I want to install it on Linux, too.
    I FTP'd the tarball (tar.gz) from Psyco's site but can't get it compiled.
    First, I tried the usual "python setup.py install" but that did not work.
    I later found a RPM for Psyco but it wasn't suitable to the Linux version
    I'm currently using.

    Has any of you had a similar experience? If so, how did you manage
    to solve the problem (in the case that you did)? Before one asks, I
    must say that I'm trying to build the package as the super user (root).
    :-)

    The specifics of my system are:

    Athlon AMD-64 3300+
    SuSE 9.3 Professional (64-bit)
    Python 2.4
    gcc/g++ 3.3.5

    Thanks in advance for any help.

    ---Fausto


  • Steve M

    #2
    Re: Psyco & Linux


    [color=blue]
    > First, I tried the usual "python setup.py install" but that did not work.[/color]

    How exactly did it fail? Perhaps you can paste the error output from
    this command.

    Comment

    • Fausto Arinos Barbuto

      #3
      Re: Psyco & Linux


      Hi Steve;

      Steve M wrote:
      [color=blue][color=green]
      >> First, I tried the usual "python setup.py install" but that did not work.[/color][/color]
      [color=blue]
      > How exactly did it fail? Perhaps you can paste the error output from
      > this command.[/color]

      Sure, he is the output:

      linux:/home/fausto/Documents/psyco-1.4 # python setup.py install
      PROCESSOR = 'ivm'
      Copying c/ivm/prolog/insns-igen-h.i.default -> c/ivm/prolog/insns-igen-h.i
      Copying c/ivm/prolog/insns-threaded.i.defa ult -> c/ivm/prolog/insns-threaded.i
      Copying c/ivm/prolog/insns-switch.i.defaul t -> c/ivm/prolog/insns-switch.i
      Copying c/ivm/prolog/insns-igen.i.default -> c/ivm/prolog/insns-igen.i
      Copying c/ivm/prolog/mode_combine.pl .default -> c/ivm/prolog/mode_combine.pl
      Copying c/ivm/prolog/insns-table.py.defaul t -> c/ivm/prolog/insns-table.py
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-2.4
      creating build/lib.linux-x86_64-2.4/psyco
      copying psyco/core.py -> build/lib.linux-x86_64-2.4/psyco
      copying psyco/kdictproxy.py -> build/lib.linux-x86_64-2.4/psyco
      copying psyco/logger.py -> build/lib.linux-x86_64-2.4/psyco
      copying psyco/profiler.py -> build/lib.linux-x86_64-2.4/psyco
      copying psyco/support.py -> build/lib.linux-x86_64-2.4/psyco
      copying psyco/__init__.py -> build/lib.linux-x86_64-2.4/psyco
      copying psyco/classes.py -> build/lib.linux-x86_64-2.4/psyco
      running build_ext
      building 'psyco._psyco' extension
      creating build/temp.linux-x86_64-2.4
      creating build/temp.linux-x86_64-2.4/c
      gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fmessage-length=0 -Wall -g -fPIC -DALL_STATIC=1
      -Ic/ivm -I/usr/include/python2.4 -c c/psyco.c -o build/temp.linux-x86_64-2.4/c/psyco.o
      In file included from c/dispatcher.h:12 ,
      from c/codemanager.h:1 0,
      from c/psyco.c:3:
      c/codegen.h:19:3: #error "sorry -- I guess it won't work like that on 64-bits machines"
      In file included from c/initialize.h:46 ,
      from c/psyco.c:13:
      c/dispatcher.c: In function `fz_compress':
      c/dispatcher.c:23 2: warning: cast from pointer to integer of different size
      c/dispatcher.c:23 8: warning: cast to pointer from integer of different size
      In file included from c/initialize.h:53 ,
      from c/psyco.c:13:
      c/codemanager.c: In function `psyco_shrink_c ode_buffer':
      c/codemanager.c:2 52: warning: int format, different type arg (arg 3)
      In file included from c/initialize.h:61 ,
      from c/psyco.c:13:
      c/Objects/pabstract.c:716 :3: #error "omitted code from Python 2.3 here"
      In file included from c/initialize.h:75 ,
      from c/psyco.c:13:
      c/Objects/pstructmember.c : In function `PsycoMember_Ge tOne':
      c/Objects/pstructmember.c :16: warning: unused variable `w2'
      c/Objects/compactobject.c : At top level:
      c/codegen.c:711: warning: `integer_lshift ' defined but not used
      c/ivm/prolog/insns-igen.i:175: warning: `psyco_insn_ass ertdepth' defined but not used
      c/ivm/prolog/insns-igen.i:197: warning: `psyco_insn_dyn amicfreq' defined but not used
      c/Objects/plongobject.c:2 1: warning: `PsycoLong_AsDo uble' defined but not used
      c/Objects/plistobject.c:1 16: warning: `PsycoList_Sing letonNew' defined but not used
      error: command 'gcc' failed with exit status 1

      Any ideas? ;-) Clueless in Edmonton...

      ---Fausto



      Comment

      • Jeremy Sanders

        #4
        Re: Psyco & Linux

        Fausto Arinos Barbuto wrote:
        [color=blue]
        > The specifics of my system are:
        >
        > Athlon AMD-64 3300+
        > SuSE 9.3 Professional (64-bit)
        > Python 2.4
        > gcc/g++ 3.3.5[/color]

        Ummm... I thought psyco only supported 32 bit systems. I haven't seen
        anything else to suggest otherwise. See



        Maybe you could recompile your python in 32 bit mode. You may find that
        native 64 bit python is faster than 32 bit psyco however!

        --
        Jeremy Sanders

        Comment

        • fausto_barbuto@yahoo.ca

          #5
          Re: Psyco & Linux

          "Jeremy Sanders" <jeremy+complan gpython@jeremys anders.net> wrote in
          message
          [color=blue]
          > Fausto Arinos Barbuto wrote:[/color]
          [color=blue][color=green]
          > > The specifics of my system are:
          > >
          > > Athlon AMD-64 3300+
          > > SuSE 9.3 Professional (64-bit)
          > > Python 2.4
          > > gcc/g++ 3.3.5[/color][/color]
          [color=blue]
          > Ummm... I thought psyco only supported 32 bit systems. I haven't seen
          > anything else to suggest otherwise. See[/color]

          You're probably right. I will try to compile psyco on another
          32-bit Linux box I have.
          [color=blue]
          > Maybe you could recompile your python in 32 bit mode. You may find that
          > native 64 bit python is faster than 32 bit psyco however![/color]

          When properly designed, scripts using Psyco are so much faster
          than the original code that I doubt native 64-bit Python can
          defeat it in terms of speed. A fair benchmark though could
          only be carried out if I had a 64-bit version of Psyco. I
          guess I 'll have to wait for one.

          Thanks for your reply.

          ---Fausto

          Comment

          • Steve M

            #6
            Re: Psyco &amp; Linux

            > c/codegen.h:19:3: #error "sorry -- I guess it won't work like that on 64-bits machines"

            The first error output by gcc suggests the 64-bit OS might be the
            problem. But I don't actually know what that error means.

            Comment

            Working...