Skip to content

Build failure: insync #576779

Open

Description

@MaxWipfli

Nixpkgs version

  • Unstable (26.11)

Steps to reproduce

  1. Build insync.
  2. Observe the build failure.

Can Hydra reproduce this build failure?

Hydra doesn’t try to build the package.

Link to Hydra build job

No response

Relevant log output

Running phase: qtPreHook
@nix { "action": "setPhase", "phase": "qtPreHook" }
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/yqmwsm8zkwiqbd74h07k37fsc1pmvqax-insync_3.9.11.60043-forky_amd64.deb
source root is root
setting SOURCE_DATE_EPOCH to timestamp 1783957787 of file "root/usr/share/doc/insync/changelog.gz"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
no Makefile or custom buildPhase, doing nothing
Running phase: glibPreInstallPhase
@nix { "action": "setPhase", "phase": "glibPreInstallPhase" }
Running phase: glibPreInstallPhase
@nix { "action": "setPhase", "phase": "glibPreInstallPhase" }
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: qtOwnPathsHook
@nix { "action": "setPhase", "phase": "qtOwnPathsHook" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
wrapping Qt applications in /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/bin /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/sbin /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/libexec /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/Applications
shrinking RPATHs of ELF executables and libraries in /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043
[skipping 355 lines]
checking for references to /build/ in /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043...
gzipping man pages under /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/share/man/
�\8B�\00\00\00\00\00\00\03\03\00\00\00\00\00\00\00\00\00patching script interpreter paths in /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043
/nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/bin/insync: interpreter directive changed from "#!/bin/bash" to "/nix/store/nnm9gdr70ihc6zc9298mzz8jpcgaciql-bash-5.3p20/bin/bash"
automatically fixing dependencies for ELF files
{'add_existing': True,
 'append_rpaths': [],
 'extra_args': [],
 'ignore_missing': [],
 'keep_libc': False,
 'libs': [PosixPath('/nix/store/vfy44rdk3y99clm2fzazm45d12lzwmnq-dpkg-1.23.7/lib'),
          PosixPath('/nix/store/24zxb4wfmwvnbjjk2jdkzmj7irk41w3w-auto-patchelf-hook/lib'),
          PosixPath('/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/lib'),
[skipping 286 lines]
          PosixPath('/nix/store/j68qh8jqkw9i4dfv0168zz36rx3c65ny-qtvirtualkeyboard-5.15.19/lib')],
 'paths': [PosixPath('/nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043')],
 'preserve_origin': False,
 'recursive': True,
 'relativize_rpath': False,
 'runtime_dependencies': [],
 'structured_logs': False}
searching for dependencies of /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync/libXtst.so.6
    libXext.so.6 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libX11.so.6 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
setting RPATH to: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
[skipping 1022 lines]
searching for dependencies of /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync/lxml/html/diff.cpython-39-x86_64-linux-gnu.so
setting interpreter of /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync/PySide2/Qt/libexec/QtWebEngineProcess
searching for dependencies of /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync/PySide2/Qt/libexec/QtWebEngineProcess
    libQt5Gui.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libQt5Core.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libGL.so.1 -> found: /nix/store/wwfxbskbriy9w5cyabx4z2sdak6n6jvs-libglvnd-1.7.0/lib
    libQt5WebEngineCore.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libQt5Quick.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libQt5QmlModels.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libQt5WebChannel.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libQt5Qml.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libQt5Network.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libQt5Positioning.so.5 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libstdc++.so.6 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
    libgcc_s.so.1 -> found: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync
setting RPATH to: /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync:/nix/store/wwfxbskbriy9w5cyabx4z2sdak6n6jvs-libglvnd-1.7.0/lib
setting interpreter of /nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync/PySide2/Qt/libexec/QtWebEngineProcess.debug
patchelf: data offset extends past file end
Traceback (most recent call last):
  File �[35m"/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf"�[0m, line �[35m681�[0m, in �[35m<module>�[0m
    �[31mmain�[0m�[1;31m()�[0m
    �[31m~~~~�[0m�[1;31m^^�[0m
  File �[35m"/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf"�[0m, line �[35m651�[0m, in �[35mmain�[0m
    �[31mauto_patchelf�[0m�[1;31m(�[0m
    �[31m~~~~~~~~~~~~~�[0m�[1;31m^�[0m
        �[1;31mlogger,�[0m
        �[1;31m^^^^^^^�[0m
    ...<9 lines>...
        �[1;31madd_existing=args.add_existing,�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31mextra_args=args.extra_args)�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf"�[0m, line �[35m522�[0m, in �[35mauto_patchelf�[0m
    dependencies += �[31mauto_patchelf_file�[0m�[1;31m(�[0m
                    �[31m~~~~~~~~~~~~~~~~~~�[0m�[1;31m^�[0m
        �[1;31mlogger=logger,�[0m
        �[1;31m^^^^^^^^^^^^^^�[0m
    ...<7 lines>...
        �[1;31mcontaining_path=containing_path�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
    �[1;31m)�[0m
    �[1;31m^�[0m
  File �[35m"/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf"�[0m, line �[35m405�[0m, in �[35mauto_patchelf_file�[0m
    �[31msubprocess.run�[0m�[1;31m(�[0m
    �[31m~~~~~~~~~~~~~~�[0m�[1;31m^�[0m
            �[1;31m["patchelf", "--set-interpreter", interpreter_path.as_posix(), path.as_posix()] + extra_args,�[0m
            �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
            �[1;31mcheck=True)�[0m
            �[1;31m^^^^^^^^^^^�[0m
  File �[35m"/nix/store/3nsc9phchsd9c8336ahxgpgwp7q9df1b-python3-3.14.8-env/lib/python3.14/subprocess.py"�[0m, line �[35m578�[0m, in �[35mrun�[0m
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
�[1;35msubprocess.CalledProcessError�[0m: �[35mCommand '['patchelf', '--set-interpreter', '/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2', '/nix/store/s1q0vnb7cqg9mvzhj53h8vvph4c30q0s-insync-pkg-3.9.11.60043/lib/insync/PySide2/Qt/libexec/QtWebEngineProcess.debug']' returned non-zero exit status 1.�[0m

Additional context

I figured out already that the immediate reason for the build failure is that patchelf was updated from 0.15.2 to 0.19.2. The new version performs a (presumably) correct bounds check and thus fails to read the empty .dynamic section of the QtWebEngineProcess.debug file. Since that file is a debug file, patching does not make sense as far as I understand. However, the previous patchelf version hid this "bug" by simply patching the debug file and succeeding (somehow).

I think the easy solution is to remove the debug file from the derivation since it is not really needed. Maybe there would be a way to modify the autoPatchelfHook to detect and skip debug files, but this is probably out of scope for this issue.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.57, NixOS, 26.05 (Yarara), 26.05.20261020.cd4ea8d
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.9
  • nixpkgs: /nix/store/jp4c6jcd6sr11az6r2754d2ycify5ph1-source

Notify maintainers

@hellwolf


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: build failure
    on Oct 21, 2026
  2. MaxWipfli commented on Oct 21, 2026

    @MaxWipfli
    ContributorAuthor

    I tried to fix the issue by removing the QtWebEngineProcess.debug file. This leads to a successful build, but insync --help then segfaults. Some AI-assisted debugging with Codex and strace suggests that this could be related to this patchelf issue.

    So there seem to be two layered issues which need to be resolved.

  3. MaxWipfli commented on Oct 21, 2026

    @MaxWipfli
    ContributorAuthor

    I confirmed that using a patchelf which includes NixOS/patchelf#672 (the fix for NixOS/patchelf#674) fixes the second issue, and the combined fix makes insync build and run properly again.

    You can find my working code here: https://github.com/MaxWipfli/nixpkgs/tree/insync_rm_debug_elf. I did not open a PR since I don't think the patchelf override is Nixpkgs-quality.

    (I used Codex with GPT-6.1-Sol for debugging these issues.)

  4. MaxWipfli commented on Oct 27, 2026

    @MaxWipfli
    ContributorAuthor

    Side note: It seems the first part of this issue (patchelf failing to patch the *.debug file) is what is being solved here: NixOS/patchelf#595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions