Error compiling python3.2.3: architecture of input file isincompatible

Discussion in 'Python' started by Tobias Marquardt, Oct 27, 2012.

  1. Hello,

    I am trying to compile Python 3.2.3.
    On my 64 bit Ubuntu machine I have no problems but using Ubuntu 32 but I
    get the following error:

    /usr/bin/ld: i386:x86-64 architecture of input file
    `Parser/tokenizer_pgen.o' is incompatible with i386 output
    /usr/bin/ld: i386:x86-64 architecture of input file
    `Parser/printgrammar.o' is incompatible with i386 output
    /usr/bin/ld: i386:x86-64 architecture of input file `Parser/pgenmain.o'
    is incompatible with i386 output
    collect2: ld returned 1 exit status
    make: *** [Parser/pgen] Error 1

    As it's the first time for me compiling python by myself, I have no idea
    how to solve this. So I'm glad to see any suggestions.

    Thanks,
    Tobias
     
    Tobias Marquardt, Oct 27, 2012
    #1
    1. Advertisements

  2. Tobias Marquardt

    Hans Mulder Guest

    Re: Error compiling python3.2.3: architecture of input file is incompatible

    On 27/10/12 16:11:48, Tobias Marquardt wrote:
    > Hello,
    >
    > I am trying to compile Python 3.2.3.
    > On my 64 bit Ubuntu machine I have no problems but using Ubuntu 32 but I
    > get the following error:
    >
    > /usr/bin/ld: i386:x86-64 architecture of input file
    > `Parser/tokenizer_pgen.o' is incompatible with i386 output
    > /usr/bin/ld: i386:x86-64 architecture of input file
    > `Parser/printgrammar.o' is incompatible with i386 output
    > /usr/bin/ld: i386:x86-64 architecture of input file `Parser/pgenmain.o'
    > is incompatible with i386 output
    > collect2: ld returned 1 exit status
    > make: *** [Parser/pgen] Error 1
    >
    > As it's the first time for me compiling python by myself, I have no idea
    > how to solve this. So I'm glad to see any suggestions.


    It looks like you've copied *.o files from your 64 bit build
    to your 32 bit box. If that's your problem, then the easiest
    solution is to delete everything and start over.

    Alternatively, you could run "make distclean"; that will delete
    a lot of generated files and then re-run configure. After that,
    running "make" should work.


    Hope this helps,

    -- HansM
     
    Hans Mulder, Oct 27, 2012
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Muhammad Khan
    Replies:
    4
    Views:
    1,424
    Mike Treseler
    Jul 10, 2003
  2. Replies:
    3
    Views:
    644
    Malcolm
    Sep 29, 2005
  3. rashmi
    Replies:
    2
    Views:
    608
    Grumble
    Jul 5, 2005
  4. Replies:
    3
    Views:
    554
    Malcolm
    Sep 29, 2005
  5. Replies:
    4
    Views:
    877
    Malcolm
    Sep 29, 2005
  6. Johannes Bauer

    Compiling Python3.1

    Johannes Bauer, Jun 10, 2009, in forum: Python
    Replies:
    3
    Views:
    495
    Martin v. Löwis
    Jun 10, 2009
  7. Giacomo Alzetta

    Missing modules compiling python3.3

    Giacomo Alzetta, Nov 4, 2012, in forum: Python
    Replies:
    2
    Views:
    349
    Giacomo Alzetta
    Nov 4, 2012
  8. Travis Griggs
    Replies:
    0
    Views:
    206
    Travis Griggs
    Nov 4, 2013
Loading...