git send-email thows Errno architecture (..) does not match executable architecture (…) at /usr/lib64/perl5/Errno.pm line 11

So I needed to send a patch into the linux kernel and installed git email on my fedora machine.

However, for the life of me I can’t figure why when I just even do this:

  • Smartgit always asking for password credentials
  • Branches created by one user not seen by others
  • deploy wordpress database settings and not content
  • What does it mean to specify two blobs in `git rebase`?
  • git-svn clone server sent unexpected return value (303 see other)
  • Git svn fetch and then commit to remote git
  • [gideon@gideon-fedora linus_tree]$ git send-email
    

    I get:

    Errno architecture (x86_64-linux-thread-multi-4.4.9-300.fc23.x86_64) does not match executable architecture (x86_64-linux-thread-multi-4.7.9-200.fc24.x86_64) at /usr/lib64/perl5/Errno.pm line 11.
    Compilation failed in require at /usr/share/perl5/vendor_perl/File/Temp.pm line 17.
    BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/File/Temp.pm line 17.
    Compilation failed in require at /usr/libexec/git-core/git-send-email line 28.
    BEGIN failed--compilation aborted at /usr/libexec/git-core/git-send-email line 28.
    

    So if I do perl -V I get:

    Summary of my perl5 (revision 5 version 22 subversion 2) configuration:
    
      Platform:
        osname=linux, osvers=4.7.9-200.fc24.x86_64, 
        archname=x86_64-linux-thread-multi
        uname='linux buildhw-05.phx2.fedoraproject.org 
        4.7.9-200.fc24.x86_64 #1 
        smp thu oct 20 14:26:16 utc 2016 x86_64 x86_64 x86_64 gnulinux '
    

    BUT if I do this $ uname -r I get: 4.6.4-301.fc24.x86_64

    Yes I am playing with kernels and I did do a make and make install of the latest 4.10-rc kernel.

    Any clues to how this happened? I tried reinstalling perl and reinstalling git mail.

  • Error executing: /usr/bin/git fetch origin
  • git-svn rebase “File name too long”
  • Git won't clean working tree - How to Diagnose
  • Does git clone copy all source code?
  • Show Feedback From GIt When Launching as Spawned Node Process
  • How Can I Get My Play! 2.0 Application to Automatically Compile Protocol Buffers?
  • One Solution collect form web for “git send-email thows Errno architecture (..) does not match executable architecture (…) at /usr/lib64/perl5/Errno.pm line 11”

    This doesn’t look git specific. You can use perl -e 'use Errno' to confirm that it triggers the same error all by itself.

    You mentioned that you tried reinstalling perl, but despite Errno being a core module, Fedora packages it separately as perl-Errno.

    Upgrading perl-Errno should fix the version mismatch between it and perl.

    Git Baby is a git and github fan, let's start git clone.