LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ffmpeg compile error (https://www.linuxquestions.org/questions/slackware-14/ffmpeg-compile-error-4175730203/)

zdolar 10-24-2023 09:16 AM

ffmpeg compile error
 
1 Attachment(s)
Hi.

Slackware64-current fully updated today + nVidia Quadro P2000

Compiling ffmpeg from Slackware64-current repository.
As nVidia Quadro P2000 is installed, I explicitly disabled nVidia options in .configure.
All other options are the same as in ffmpeg.Slackbuild created by respected Patrick J. Volkerding.

As compilig fails, I deinstalled nVidia kernel, driver an cuda packages and reboot.

Last successful compilation was on september 28, all latter failed.

Compilation terminate with the following last lines:
Quote:

GEN libpostproc/libpostproc.ver
GEN libavformat/libavformat.ver
GEN libswresample/libswresample.ver
HOSTLD doc/print_options
GEN libavfilter/libavfilter.ver
LD libavutil/libavutil.so.57
GENTEXI doc/avoptions_format.texi
GENTEXI doc/avoptions_codec.texi
HTML doc/ffmpeg.html
HTML doc/ffplay.html
HTML doc/ffprobe.html
HTML doc/ffmpeg-all.html
makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make: *** [doc/Makefile:70: doc/ffmpeg.html] Error 1
make: *** Waiting for unfinished jobs....
makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make: *** [doc/Makefile:70: doc/ffplay.html] Error 1
makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make: *** [doc/Makefile:74: doc/ffmpeg-all.html] Error 1
makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make: *** [doc/Makefile:70: doc/ffprobe.html] Error 1
STRIP libavcodec/x86/hevc_mc.o
STRIP libavcodec/x86/vp9itxfm_16bpp.o
STRIP libavcodec/x86/vp9lpf.o
STRIP libavcodec/x86/vp9itxfm.o
LD libswscale/libswscale.so.6
LD libpostproc/libpostproc.so.56
GEN libavcodec/libavcodec.ver
LD libswresample/libswresample.so.4
LD libavcodec/libavcodec.so.59
LD libavformat/libavformat.so.59
LD libavfilter/libavfilter.so.8
LD libavdevice/libavdevice.so.59
HTML doc/ffmpeg.html
makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make: *** [doc/Makefile:70: doc/ffmpeg.html] Error 1
I left /usr/local/cuda/bin in PATH regardless it's empty.

Icluded is config.log.xz.txt, please remove ".txt" extension and extract. Log file is longer then allowed by this forum.

henca 10-24-2023 10:25 AM

The error does not seem related to cuda or any other library. Instead the error seems to indicate a failure when building html files for documentation.

regards Henrik

rizitis 10-24-2023 10:30 AM

Code:

--disable-htmlpages
If you try to build with this option is it building?

some other options you might want to check:
Code:

Documentation options:
  --disable-doc            do not build documentation
  --disable-htmlpages      do not build HTML documentation pages
  --disable-manpages      do not build man documentation pages
  --disable-podpages      do not build POD documentation pages
  --disable-txtpages      do not build text documentation pages


marav 10-24-2023 11:07 AM

Quote:

Originally Posted by henca (Post 6460685)
The error does not seem related to cuda or any other library. Instead the error seems to indicate a failure when building html files for documentation.

regards Henrik

maybe texinfo?

volkerdi 10-24-2023 02:18 PM

Quote:

Originally Posted by marav (Post 6460693)
maybe texinfo?

Almost certainly. That's got a long track record of breakage.

Petri Kaukasoina 10-24-2023 02:31 PM

It seems set_from_init_file should be changed to texinfo_set_from_init_file, doesn't it?

EDIT: And then get_conf should be changed to texinfo_get_conf. And after that yet another different error message about t2h.pm...

marav 10-24-2023 04:02 PM

Same for gentoo & ffmpeg 6
Code:

make: *** [/var/tmp/portage/media-video/ffmpeg-6.0-r10/work/ffmpeg-6.0/doc/Makefile:70:
doc/ffmpeg.html] Error 1
makeinfo: error parsing /var/tmp/portage/media-video/ffmpeg-6.0-r10/work/ffmpeg-6.0/doc/t2h.pm:
Undefined subroutine &Texinfo::Config::set_from_init_file called at
/var/tmp/portage/media-video/ffmpeg-6.0-r10/work/ffmpeg-6.0/doc/t2h.pm line 24.
make: *** [/var/tmp/portage/media-video/ffmpeg-6.0-r10/work/ffmpeg-6.0/doc/Makefile:74:
doc/ffmpeg-all.html] Error 1
echo skipping strip -x libswresample/x86/audio_convert.o

https://bugs.gentoo.org/916104

zdolar 10-25-2023 02:12 AM

Quote:

Originally Posted by rizitis (Post 6460688)
Code:

--disable-htmlpages
If you try to build with this option is it building?

some other options you might want to check:
Code:

Documentation options:
  --disable-doc            do not build documentation
  --disable-htmlpages      do not build HTML documentation pages
  --disable-manpages      do not build man documentation pages
  --disable-podpages      do not build POD documentation pages
  --disable-txtpages      do not build text documentation pages


Thank you rizitis.
Your answer resolved the issue. :)

rizitis 10-25-2023 02:34 AM

Quote:

Originally Posted by zdolar (Post 6460786)
Thank you rizitis.
Your answer resolved the issue. :)

Glad to help you. But on the other hand its not "the solution" for this bug... :)

marav 10-25-2023 03:20 AM

Hi zdolar,

Not building documentation doesn't solve the issue of building documentation

Can you remove the "Solved" tag ?

zdolar 10-25-2023 05:11 AM

Sorry guys, you are right.

Solved tag removed.

rizitis 10-25-2023 10:12 AM

2 problems here, one is solved as Petri Kaukasoina said by set_from_init_file should be changed to texinfo_set_from_init_file && get_conf should be changed to texinfo_get_conf

Then we stuck in Function float_name_caption because it not exists in Texinfo::Common or Convert::...

marav 10-25-2023 10:28 AM

Welcome to this amazing Perl/Texinfo world :D

rizitis 10-25-2023 05:09 PM

1 Attachment(s)
I think I have the solution for building ffmpeg-6.0 with stock texinfo in Slackware-current
Code:

cat $CWD/texinfo.patch | patch -p1 --verbose || exit 1
I finally builded it but if I close my eyes i see perl and texinfo Butterflies...

So plz test it...

ps:@marav, one fixed 2 broke, 2 fixed, 4 broke... it was nice in perl/texinfo_la-la-land but only for one time :D

build.log https://easyupload.io/b5tk3r

marav 10-26-2023 09:53 AM

Quote:

Originally Posted by rizitis (Post 6460913)
I think I have the solution for building ffmpeg-6.0 with stock texinfo in Slackware-current
Code:

cat $CWD/texinfo.patch | patch -p1 --verbose || exit 1
I finally builded it but if I close my eyes i see perl and texinfo Butterflies...

So plz test it...

ps:@marav, one fixed 2 broke, 2 fixed, 4 broke... it was nice in perl/texinfo_la-la-land but only for one time :D

build.log https://easyupload.io/b5tk3r

it works ;-) with ffmpeg-5.1.3


All times are GMT -5. The time now is 02:05 AM.