Skip to content

Build failure: nvi #382978

Closed
Closed

Description

@dcarosone

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

❯ nix shell nixpkgs#nvi

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/287964194

Relevant log output

error: builder for '/nix/store/vnzbgmh1shngw3slf6dj4s0jny42d9sb-nvi-1.81.6.drv' failed with exit code 2;
       last 25 log lines:
       > /nix/store/fd118hwh7d1ncib4mdw56ylv3g9k0iyj-bash-5.2p37/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../dist  -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/`echo vi-ipc | sed 's,x,x,'`\" -I../dist/../regex    -O -c -o key.lo `test -f '../dist/../common/key.c' || echo '../dist/'`../dist/../common/key.c
       >  gcc -DHAVE_CONFIG_H -I. -I../dist -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/vi-ipc\" -I../dist/../regex -O -c ../dist/../common/key.c  -fPIC -DPIC -o .libs/key.o
       > /nix/store/fd118hwh7d1ncib4mdw56ylv3g9k0iyj-bash-5.2p37/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../dist  -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/`echo vi-ipc | sed 's,x,x,'`\" -I../dist/../regex    -O -c -o db.lo `test -f '../dist/../common/db.c' || echo '../dist/'`../dist/../common/db.c
       >  gcc -DHAVE_CONFIG_H -I. -I../dist -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/vi-ipc\" -I../dist/../regex -O -c ../dist/../common/db.c  -fPIC -DPIC -o .libs/db.o
       > /nix/store/fd118hwh7d1ncib4mdw56ylv3g9k0iyj-bash-5.2p37/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../dist  -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/`echo vi-ipc | sed 's,x,x,'`\" -I../dist/../regex    -O -c -o main.lo `test -f '../dist/../common/main.c' || echo '../dist/'`../dist/../common/main.c
       >  gcc -DHAVE_CONFIG_H -I. -I../dist -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/vi-ipc\" -I../dist/../regex -O -c ../dist/../common/main.c  -fPIC -DPIC -o .libs/main.o
       > ../dist/../common/main.c: In function 'editor':
       > ../dist/../common/main.c:389:23: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
       >   389 |                 (void)write(STDOUT_FILENO, p, len);
       >       |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > /nix/store/fd118hwh7d1ncib4mdw56ylv3g9k0iyj-bash-5.2p37/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../dist  -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/`echo vi-ipc | sed 's,x,x,'`\" -I../dist/../regex    -O -c -o mark.lo `test -f '../dist/../common/mark.c' || echo '../dist/'`../dist/../common/mark.c
       >  gcc -DHAVE_CONFIG_H -I. -I../dist -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/vi-ipc\" -I../dist/../regex -O -c ../dist/../common/mark.c  -fPIC -DPIC -o .libs/mark.o
       > /nix/store/fd118hwh7d1ncib4mdw56ylv3g9k0iyj-bash-5.2p37/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../dist  -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/`echo vi-ipc | sed 's,x,x,'`\" -I../dist/../regex    -O -c -o msg.lo `test -f '../dist/../common/msg.c' || echo '../dist/'`../dist/../common/msg.c
       >  gcc -DHAVE_CONFIG_H -I. -I../dist -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/vi-ipc\" -I../dist/../regex -O -c ../dist/../common/msg.c  -fPIC -DPIC -o .libs/msg.o
       > /nix/store/fd118hwh7d1ncib4mdw56ylv3g9k0iyj-bash-5.2p37/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../dist  -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/`echo vi-ipc | sed 's,x,x,'`\" -I../dist/../regex    -O -c -o options.lo `test -f '../dist/../common/options.c' || echo '../dist/'`../dist/../common/options.c
       >  gcc -DHAVE_CONFIG_H -I. -I../dist -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/vi-ipc\" -I../dist/../regex -O -c ../dist/../common/options.c  -fPIC -DPIC -o .libs/options.o
       > /nix/store/fd118hwh7d1ncib4mdw56ylv3g9k0iyj-bash-5.2p37/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../dist  -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/`echo vi-ipc | sed 's,x,x,'`\" -I../dist/../regex    -O -c -o options_f.lo `test -f '../dist/../common/options_f.c' || echo '../dist/'`../dist/../common/options_f.c
       >  gcc -DHAVE_CONFIG_H -I. -I../dist -D__REGEX_PRIVATE -I. -I../dist/../include -DVI=\"/nix/store/33z7hl3vq8dv67jc0x32pwnlarayzdnk-nvi-1.81.6/bin/vi-ipc\" -I../dist/../regex -O -c ../dist/../common/options_f.c  -fPIC -DPIC -o .libs/options_f.o
       > ../dist/../common/options_f.c: In function 'f_encoding':
       > ../dist/../common/options_f.c:324:16: error: implicit declaration of function 'conv_enc' [-Wimplicit-function-declaration]
       >   324 |         return conv_enc(sp, offset, str);
       >       |                ^~~~~~~~
       > make[1]: *** [Makefile:902: options_f.lo] Error 1
       > make[1]: Leaving directory '/build/nvi-1.81.6/build.unix'
       > make: *** [Makefile:570: all] Error 2

Additional context

last successful build 2024-02-04, also failing on staging-next

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.13, NixOS, 25.05 (Warbler), 25.05.20250216.d74a233
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.93.0-dev-pre20250217-02c1231 System type: x86_64-linux Additional system types: aarch64-linux, i686-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/dan/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/dan/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/dan/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/dan/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/gxdk4pwnr44ql8fzin6h1fpqfsvfyjbg-gnome-settings-daemon-47.2/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/swjziqy15fbs1hghdkghsc7ns57adq3l-lix-2.93.0-dev-pre20250217-02c1231/share
  • nixpkgs: /nix/store/s1fbk6a410xn8vcaj54iqv22agyn0ria-source

Notify maintainers


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 Feb 17, 2025
  2. TomaSajt commented on Feb 18, 2025

    @TomaSajt
    Contributor

    For reference, it broke after this staging-next merge: #361878

    Probably the gcc13 -> gcc14 bump is the issue

  3. aduh95 commented on May 18, 2025

    @aduh95
    Contributor

    Maybe relevant: neovim/neovim#32180

  4. tnias commented on May 30, 2025

    @tnias
    Contributor

    A related PR was opened by @suominen at #410629

  5. ddz commented on Sep 15, 2025

    @ddz
    Contributor

    I was not aware that there was already an open PR that fixes this issue, but I had also opened one that also updates nvi by applying all of Debian's patches to it: #442968

  6. suominen commented on Sep 15, 2025

    @suominen
    Contributor

    @ddz — I think --enable-widechar is important to have. It would also be nice to get the recovery files stored in /var/tmp/vi.recover like on other systems, and to enable notifications on boot (needs sendmail). They definitely should not be in /tmp and blown away on reboot.

  7. ddz commented on Sep 15, 2025

    @ddz
    Contributor

    @suominen: Both fair points, I didn't have any opinions about them except trying to preserve existing behavior unless there are reasons to change it.

  8. ddz commented on Nov 14, 2025

    @ddz
    Contributor

    FWIW, #442968 currently enables widechar support but keeps recovery files in /tmp to preserve existing behavior (NixOS uses systemd-tmpfiles for both /tmp and /var/tmp, but perhaps you are using nixpkgs on another OS?). There is also a stylistic difference between our PRs is that mine uses the maintainers/scripts/debian-patches.sh script whereas yours downloads the patches itself.

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