msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.28k stars 1.21k forks source link

diff can't load libsigsegv-2.dll #3989

Closed karen-arutyunov closed 6 years ago

karen-arutyunov commented 6 years ago

After MSYS2 upgrade trying to run diff fails like this:

C:/msys64/mingw64/bin/diff.exe: error while loading shared libraries: libsigsegv-2.dll: cannot open shared object file: No such file or directory

It seems that mingw-w64-x86_64-diffutils 3.6-1 package lacks dependency on mingw-w64-x86_64-libsigsegv.

The same is about i686 architecture.

peterbud commented 6 years ago

I cannot repro this - can you elaborate?

$ /mingw64/bin/diff --version
diff (GNU diffutils) 3.6
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.

Also it works in cmd prompt:

C:\msys64\mingw64\bin>diff.exe --version
diff (GNU diffutils) 3.6
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.
lazka commented 6 years ago

I cannot repro this - can you elaborate?

Try after pacman -R mingw-w64-i686-libsigsegv

peterbud commented 6 years ago

I don't have libsigsegvinstalled:

$ pacman -Ss libsigs
mingw32/mingw-w64-i686-libsigsegv 2.12-1
    Page fault detection library (mingw-w64)
mingw64/mingw-w64-x86_64-libsigsegv 2.12-1
    Page fault detection library (mingw-w64)
Alexpux commented 6 years ago

@peterbud do you install diffutils from repo or it your own builded?

peterbud commented 6 years ago

I see, that was the problem:

lazka commented 6 years ago

f265c223794a