GNU bug report logs - #34797
ffmpeg: error while loading shared libraries: (...): file too short

Previous Next

Package: guix;

Reported by: Alex Vong <alexvong1995 <at> gmail.com>

Date: Sat, 9 Mar 2019 20:11:02 UTC

Severity: normal

Done: Alex Vong <alexvong1995 <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34797 in the body.
You can then email your comments to 34797 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#34797; Package guix. (Sat, 09 Mar 2019 20:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Vong <alexvong1995 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 09 Mar 2019 20:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alex Vong <alexvong1995 <at> gmail.com>
To: bug-guix <at> gnu.org
Cc: guix-devel <at> gnu.org, alexvong1995 <at> gmail.com
Subject: ffmpeg: error while loading shared libraries: (...): file too short
Date: Sun, 10 Mar 2019 04:10:15 +0800
[Message part 1 (text/plain, inline)]
Hello guix,

Does anyone has the same problem with ffmpeg from latest master? I've
got the following error:

========================================================================
alexvong1995 <at> 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 <at> 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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34797; Package guix. (Sat, 09 Mar 2019 20:30:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <somebody <at> not-sent-or-endorsed-by.tobias.gr>
To: Alex Vong <alexvong1995 <at> gmail.com>
Cc: guix-devel <at> gnu.org, bug-guix <at> gnu.org
Subject: Re: ffmpeg: error while loading shared libraries: (...): file too
 short
Date: Sat, 09 Mar 2019 21:28:47 +0100
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 <at> 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




Reply sent to Alex Vong <alexvong1995 <at> gmail.com>:
You have taken responsibility. (Sun, 10 Mar 2019 13:37:02 GMT) Full text and rfc822 format available.

Notification sent to Alex Vong <alexvong1995 <at> gmail.com>:
bug acknowledged by developer. (Sun, 10 Mar 2019 13:37:02 GMT) Full text and rfc822 format available.

Message #13 received at 34797-done <at> debbugs.gnu.org (full text, mbox):

From: Alex Vong <alexvong1995 <at> gmail.com>
To: Tobias Geerinckx-Rice <somebody <at> not-sent-or-endorsed-by.tobias.gr>
Cc: guix-devel <at> gnu.org, 34797-done <at> debbugs.gnu.org, alexvong1995 <at> gmail.com
Subject: Re: ffmpeg: error while loading shared libraries: (...): file too
 short
Date: Sun, 10 Mar 2019 21:36:33 +0800
[Message part 1 (text/plain, inline)]
Hello Tobias,

Tobias Geerinckx-Rice <somebody <at> 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 <at> 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
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 08 Apr 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.