Skip to content

Error: error loading precompiled runner: runner: bad binary format (version mismatch) #622

@kepi

Description

@kepi

Lsyncd started to give me error in subj after recent update on Arch linux.

During compilation everything seems ok. Lua is found in version 5.4 (I applied patch from PR #568 too).

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped                                                                                                                                                                                                                      
-- Detecting CXX compile features                                                                                                                                                                                                                                              
-- Detecting CXX compile features - done                                                                                                                                                                                                                                       
-- Found Lua: /usr/lib/liblua5.4.so;/usr/lib/libm.so (found version "5.4.1")                                                                                                                                                                                                   
-- Configuring done                                                                                                                                                                                                                                                            
-- Generating done              
-- Build files have been written to: /tmp/makepkg/lsyncd/src/lsyncd-release-2.2.3/build                                                                                                                                                                                        
[ 11%] Generating defaults.out      
[ 22%] Generating runner.out                   
Compiling built-in default configs  
Compiling built-in runner
[ 33%] Generating defaults.c                                                                                                           
[ 44%] Generating runner.c        
Generating built-in default configs
Generating built-in runner linkable
Scanning dependencies of target lsyncd
[ 66%] Building C object CMakeFiles/lsyncd.dir/lsyncd.c.o
[ 66%] Building C object CMakeFiles/lsyncd.dir/runner.c.o
[ 77%] Building C object CMakeFiles/lsyncd.dir/defaults.c.o
[ 88%] Building C object CMakeFiles/lsyncd.dir/inotify.c.o
/tmp/makepkg/lsyncd/src/lsyncd-release-2.2.3/lsyncd.c: In function ‘write_pidfile’:
/tmp/makepkg/lsyncd/src/lsyncd-release-2.2.3/lsyncd.c:718:2: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  718 |  write( pidfile_fd, buf, strlen( buf ) );
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking C executable lsyncd
[100%] Built target lsyncd

Result binary looks fine, linked to correct libraries. Lua versions are same.

lua -v
Lua 5.4.1  Copyright (C) 1994-2020 Lua.org, PUC-Rioluac -v
Lua 5.4.1  Copyright (C) 1994-2020 Lua.org, PUC-Rioldd /usr/bin/lsyncd
	linux-vdso.so.1 (0x00007fff455c6000)
	liblua.so.5.4 => /usr/lib/liblua.so.5.4 (0x00007f04e2195000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f04e1fcc000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f04e1fc6000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007f04e1e80000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f04e2242000)

Unfortunately lsyncd is not working:

Error: error loading precompiled runner: runner: bad binary format (version mismatch)

There is discussion at https://aur.archlinux.org/packages/lsyncd/ about this issue. Looks like multiple Lua version at system may be the problem. Unfortunately I'm not able to uninstall other lua versions as I need programs depending on older ones too :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions