Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#4117 - build: error during meson-install #9101

Closed
openwrt-bot opened this issue Oct 31, 2021 · 5 comments
Closed

FS#4117 - build: error during meson-install #9101

openwrt-bot opened this issue Oct 31, 2021 · 5 comments
Labels

Comments

@openwrt-bot
Copy link

bittorf:

with r17900 and make distclean && make -j1 V=sc

Installing /home/bastian/software/openwrt-build-kalua/openwrt/build_dir/host/pkgconf-1.8.0/pkg.m4 to /home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/share/aclocal
Installing /home/bastian/software/openwrt-build-kalua/openwrt/build_dir/host/pkgconf-1.8.0/AUTHORS to /home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/share/doc/pkgconf
Installing /home/bastian/software/openwrt-build-kalua/openwrt/build_dir/host/pkgconf-1.8.0/README.md to /home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/share/doc/pkgconf
Traceback (most recent call last):
  File "/home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/bin/meson/mesonbuild/mesonmain.py", line 138, in run
    return options.run_func(options)
  File "/home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/bin/meson/mesonbuild/minstall.py", line 767, in run
    installer.do_install(datafilename)
  File "/home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/bin/meson/mesonbuild/minstall.py", line 550, in do_install
    self.apply_ldconfig(dm, destdir)
  File "/home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/bin/meson/mesonbuild/minstall.py", line 373, in apply_ldconfig
    apply_ldconfig(dm)
  File "/home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/bin/meson/mesonbuild/minstall.py", line 255, in apply_ldconfig
    proc, out, err = Popen_safe(['ldconfig', '-v'])
  File "/home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/bin/meson/mesonbuild/mesonlib/universal.py", line 1393, in Popen_safe
    p = subprocess.Popen(args, universal_newlines=True, close_fds=False,
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: 'ldconfig'
FAILED: meson-install 
/home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:38: /home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/stamp/.pkgconf_installed] Error 1
make[3]: Leaving directory '/home/bastian/software/openwrt-build-kalua/openwrt/tools/pkgconf'
time: tools/pkgconf/compile#2.11#0.33#2.45
    ERROR: tools/pkgconf failed to build.
make[2]: *** [tools/Makefile:161: tools/pkgconf/compile] Error 1
make[2]: Leaving directory '/home/bastian/software/openwrt-build-kalua/openwrt'
make[1]: *** [tools/Makefile:157: /home/bastian/software/openwrt-build-kalua/openwrt/staging_dir/host/stamp/.tools_compile_yyynyynnyyyynyyyyyynyynyyynynyyyyyyyyyyyyyyyyynynnyyyyyyyy] Error 2
make[1]: Leaving directory '/home/bastian/software/openwrt-build-kalua/openwrt'
make: *** [/home/bastian/software/openwrt-build-kalua/openwrt/include/toplevel.mk:230: world] Fehler 2
@openwrt-bot
Copy link
Author

bittorf:

this error:
OSError: [Errno 8] Exec format error: 'ldconfig'

can be seen in:
logs/tools/pkgconf/compile.txt

@openwrt-bot
Copy link
Author

bittorf:

Even a clean git checkout with r17924 does not work.
This is an up-to-date debian 11.1 system.

make[1] world make[2] tools/compile make[2] package/cleanup make[3] -C tools/flock compile make[3] -C tools/xz compile make[3] -C tools/sed compile make[3] -C tools/tar compile make[3] -C tools/patch compile make[3] -C tools/autoconf-archive compile make[3] -C tools/m4 compile make[3] -C tools/ninja compile make[3] -C tools/lzma compile make[3] -C tools/cpio compile make[3] -C tools/sstrip compile make[3] -C tools/patch-image compile make[3] -C tools/mtools compile make[3] -C tools/xxd compile make[3] -C tools/zip compile make[3] -C tools/expat compile make[3] -C tools/kernel2minor compile make[3] -C tools/meson compile make[3] -C tools/pkgconf compile ERROR: tools/pkgconf failed to build. make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on

@openwrt-bot
Copy link
Author

bittorf:

It works with r17888, but fails with r17889.
This is true for Debian 11.1, but everything works on e.g. Ubuntu 20.10

@openwrt-bot
Copy link
Author

chunkeey:

See if this helps. If it does, please provide a Tested-By tag.

#4736

@openwrt-bot
Copy link
Author

bittorf:

This fix works for me:
#4736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant