Accueil > Mozilla > Error while compiling Thunderbird. What’s wrong?

Error while compiling Thunderbird. What’s wrong?

In order to fix bug 684865, I wanted to compile Thunderbird myself. When running

make -f

from comm-central/, everything works fine till I get this error message:

/usr/bin/python2.7 ../../../mozilla/_tests/mozmill/resources/ ../../../mozilla/_tests/mozmill/../mozmill-virtualenv
Python: 2.7.1 (r271:86832, Sep  5 2011, 15:04:00)
[GCC 4.5.2]
New python executable in /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mozilla/_tests/mozmill-virtualenv/bin/python2.7
Also creating executable in /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mozilla/_tests/mozmill-virtualenv/bin/python
Installing setuptools….
Complete output from command /root/tmp/tb/comm-ce…ualenv/bin/python2.7 -c "#!python

" /root/tmp/tb/comm-ce…ols-0.6c11-py2.7.egg:
error: invalid Python installation: unable to open /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mozilla/_tests/mozmill-virtualenv/include/multiarch-i386-linux/python2.7/pyconfig.h (No such file or directory)
…Installing setuptools…done.
Traceback (most recent call last):
File "virtualenv/", line 1965, in <module>
File "virtualenv/", line 795, in main
File "virtualenv/", line 895, in create_environment
search_dirs=search_dirs, never_download=never_download)
File "virtualenv/", line 588, in install_setuptools
search_dirs=search_dirs, never_download=never_download)
File "virtualenv/", line 562, in _install_req
File "virtualenv/", line 863, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /root/tmp/tb/comm-ce…ualenv/bin/python2.7 -c "#!python

" /root/tmp/tb/comm-ce…ols-0.6c11-py2.7.egg failed with error code 1
Failure to install virtualenv
make[5]: *** [mozmill-virtualenv] Erreur 1
make[5] : on quitte le répertoire « /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mail/test/mozmill »
make[4]: *** [libs] Erreur 2
make[4] : on quitte le répertoire « /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mail »
make[3]: *** [libs_tier_app] Erreur 2
make[3] : on quitte le répertoire « /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu »
make[2]: *** [tier_app] Erreur 2
make[2] : on quitte le répertoire « /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu »
make[1]: *** [default] Erreur 2
make[1] : on quitte le répertoire « /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu »
make: *** [build] Erreur 2

The problem is that the script looks for pyconfig.h in mozmill-virtualenv/include/multiarch-i386-linux/python2.7/, but the right path is mozmill-virtualenv/include/python2.7/, i.e. without multiarch-i386-linux/. Anyone knows how to fix this problem?

About these ads
  1. 27 novembre 2011 à 10:38  

    –disable-test will remove mozmill which is causing the error.

  2. Siddharth Agarwal
    27 novembre 2011 à 3:25  

    This seems like some sort of nasty interaction between virtualenv and your system python. I have no idea how to fix it though — you might want to ask ianbicking in #webdev, since he maintains virtualenv.

  3. Siddharth Agarwal
    27 novembre 2011 à 3:30  

    Actually, we might just have an outdated virtualenv. I’ll look into upgrading it to 1.6.4 soon.

  4. Andy
    29 décembre 2012 à 10:57  

    has anyone found a solution for this? I’m getting the same error when trying to build Seamonkey 2.14.1 on Mandriva 2009.0 32 bit (yes I know the distro is old but that shouldn’t be the cause of this error)

  5. Andy
    29 décembre 2012 à 2:32  

    ok, the following patch fixes the problem for me:

    — ./mozilla/configure-orig 2012-12-29 11:39:56.000000000 +0100
    +++ ./mozilla/configure 2012-12-29 11:40:44.000000000 +0100
    @@ -26585,6 +26585,8 @@

    # Populate the virtualenv
    echo "$ac_t""Populating Python virtualenv" 1>&6
    +ln -s . _virtualenv/include/multiarch-i386-linux
    +ls -la _virtualenv/include/
    $MAKE -C build/virtualenv MACOSX_DEPLOYMENT_TARGET= || exit 1

    # Generate a JSON config file for unittest harnesses etc to read

  1. No trackbacks yet.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:


Vous commentez à l'aide de votre compte Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s


Recevez les nouvelles publications par mail.