* bug#34797: ffmpeg: error while loading shared libraries: (...): file too short
@ 2019-03-09 20:10 Alex Vong
2019-03-09 20:28 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 3+ messages in thread
From: Alex Vong @ 2019-03-09 20:10 UTC (permalink / raw)
To: 34797; +Cc: guix-devel, alexvong1995
[-- Attachment #1: Type: text/plain, Size: 1972 bytes --]
Hello guix,
Does anyone has the same problem with ffmpeg from latest master? I've
got the following error:
========================================================================
alexvong1995@debian:~$ ffmpeg --help
ffmpeg: error while loading shared libraries: /gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58: file too short
========================================================================
The following command shows that most of the shared libraries built are
empty:
========================================================================
alexvong1995@debian:~$ LC_ALL=C find "$(guix build ffmpeg)/lib" -type f -execdir ls -hl '{}' ';'
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libavformat.so.58.20.100
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libavutil.so.56.22.100
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libavfilter.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libavutil.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libavresample.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libpostproc.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libswresample.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libavcodec.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libavformat.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libswscale.pc
-r--r--r-- 6785 root root 0 Jan 1 1970 ./libavdevice.pc
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libavdevice.so.58.5.100
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libavfilter.so.7.40.101
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libavresample.so.4.0.0
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libswresample.so.3.3.100
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libpostproc.so.55.3.100
-r-xr-xr-x 26 root root 0 Jan 1 1970 ./libswscale.so.5.3.100
-r-xr-xr-x 2 root root 14M Jan 1 1970 ./libavcodec.so.58.35.100
========================================================================
I'm CC'ing guix-devel since ffmpeg is essential to many audio/video
packages (e.g. mpv, vlc).
Cheers,
Alex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ffmpeg: error while loading shared libraries: (...): file too short
2019-03-09 20:10 bug#34797: ffmpeg: error while loading shared libraries: (...): file too short Alex Vong
@ 2019-03-09 20:28 ` Tobias Geerinckx-Rice
2019-03-10 13:36 ` bug#34797: " Alex Vong
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-03-09 20:28 UTC (permalink / raw)
To: Alex Vong; +Cc: guix-devel, bug-guix
Alex,
Something is amiss on your box.
Alex Vong wrote:
> Does anyone has the same problem with ffmpeg from latest master?
> I've
> got the following error:
>
> ========================================================================
> alexvong1995@debian:~$ ffmpeg --help
> ffmpeg: error while loading shared libraries:
> /gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58:
> file too short
> ========================================================================
--8<---------------cut here---------------start------------->8---
λ file -L
/gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58
/gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58:
ELF 64-bit LSB pie executable x86-64, version 1 (SYSV),
dynamically linked, stripped
λ ls -lh
/gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58.5.100
-r-xr-xr-x 2 root root 152K Jan 1 1970
/gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58.5.100
--8<---------------cut here---------------end--------------->8---
Have you fsck'd your file system lately?
T G-R
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#34797: ffmpeg: error while loading shared libraries: (...): file too short
2019-03-09 20:28 ` Tobias Geerinckx-Rice
@ 2019-03-10 13:36 ` Alex Vong
0 siblings, 0 replies; 3+ messages in thread
From: Alex Vong @ 2019-03-10 13:36 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: guix-devel, 34797-done, alexvong1995
[-- Attachment #1: Type: text/plain, Size: 1610 bytes --]
Hello Tobias,
Tobias Geerinckx-Rice <somebody@not-sent-or-endorsed-by.tobias.gr>
writes:
> Alex,
>
> Something is amiss on your box.
>
> Alex Vong wrote:
>> Does anyone has the same problem with ffmpeg from latest master?
>> I've
>> got the following error:
>>
>> ========================================================================
>> alexvong1995@debian:~$ ffmpeg --help
>> ffmpeg: error while loading shared libraries:
>> /gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58:
>> file too short
>> ========================================================================
>
> λ file -L
> /gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58
> /gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58:
> ELF 64-bit LSB pie executable x86-64, version 1 (SYSV),
> dynamically linked, stripped
>
> λ ls -lh
> /gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58.5.100
> -r-xr-xr-x 2 root root 152K Jan 1 1970
> /gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1/lib/libavdevice.so.58.5.100
>
> Have you fsck'd your file system lately?
>
> T G-R
Thanks for the suggestion! I think I did. Running
sudo guix gc --verify=contents,repair
shows that glibc, perl and ffmpeg are corrupted.
However, the repair doesn't fix the
"/gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1" item.
I guess this's because it is built using grafting.
Anyway, I roll back, delete the latest generation, build ffmpeg and it
works again!
Thanks,
Alex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-10 13:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-09 20:10 bug#34797: ffmpeg: error while loading shared libraries: (...): file too short Alex Vong
2019-03-09 20:28 ` Tobias Geerinckx-Rice
2019-03-10 13:36 ` bug#34797: " Alex Vong
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).