#9916(build system:new): Poor/misleading diagnostics on pkg-config error
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Type: defect Oheimb | Status: new | Priority: important Component: build | Version: git- system | master Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Running ./configure, when anything goes wrong with a dependency lib, one just gets something like {{{ ERROR: x265 not found using pkg-config }}} and it can be extremely hard guessing what went wrong. Then users typically resort to asking in forums like this: https://stackoverflow.com/questions/51918409/compiling-ffmpeg-x265-not- found-using-pkg-config and in my case all those hints did not help. Eventually I dug into the "configure" file and found that pkg_config_fail_message is usually empty, but there is a file ffbuild/config.log that contains a lot of detail. In this case, the test compilation of libx265 went wrong with errors like {{{ undefined reference to `__pow_finite' }}} so the error "x265 not found" is pretty misleading. In case configuration goes wrong, you should at least point users to having a look at ffbuild/config.log I flag this ticket as 'important' because unfortunately it happens way too often that users have trouble with "configure" and are pretty lost. This typically causes major frustration and loss of time. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: new Priority: important | Component: build | system Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by quinkblack): Have you seen there is something after that: ``` If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem. ``` -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: new Priority: important | Component: build | system Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Description changed by David von Oheimb: Old description:
Running ./configure, when anything goes wrong with a dependency lib, one just gets something like
{{{ ERROR: x265 not found using pkg-config }}}
and it can be extremely hard guessing what went wrong. Then users typically resort to asking in forums like this: https://stackoverflow.com/questions/51918409/compiling-ffmpeg-x265-not- found-using-pkg-config and in my case all those hints did not help.
Eventually I dug into the "configure" file and found that pkg_config_fail_message is usually empty, but there is a file ffbuild/config.log that contains a lot of detail. In this case, the test compilation of libx265 went wrong with errors like
{{{ undefined reference to `__pow_finite' }}}
so the error "x265 not found" is pretty misleading.
In case configuration goes wrong, you should at least point users to having a look at ffbuild/config.log
I flag this ticket as 'important' because unfortunately it happens way too often that users have trouble with "configure" and are pretty lost. This typically causes major frustration and loss of time.
New description: Running `./configure`, when anything goes wrong with a dependency lib, one just gets something like {{{ ERROR: x265 not found using pkg-config }}} and it can be extremely hard guessing what went wrong. Then users typically resort to asking in forums like this: https://stackoverflow.com/questions/51918409/compiling-ffmpeg-x265-not- found-using-pkg-config and in my case all those hints did not help. Eventually I dug into the `configure` file and found that `pkg_config_fail_message` is usually empty, but there is a file `ffbuild/config.log` that contains a lot of detail. In my case, the test compilation using `libx265` went wrong with errors like {{{ undefined reference to `__pow_finite' }}} so the error "x265 not found" is pretty misleading. In case configuration goes wrong, you should at least point users to having a look at `ffbuild/config.log` I flag this ticket as 'important' because unfortunately it happens way too often that users have trouble with "configure" and are pretty lost. This typically causes major frustration and loss of time. -- -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
Have you seen there is something after that:
{{{ If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: new Priority: important | Component: build | system Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by David von Oheimb): Replying to [comment:1 quinkblack]: the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem. }}}
No haven't seen this text and don't know where you quoted it from. Anyway, a hint to look at `ffbuild/config.log` should be printed by `configure` on failure. And the "ERROR: XYZ not found using pkg-config" message should be strongly improved. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Carl Eugen Hoyos): * priority: important => normal * status: new => closed * resolution: => invalid Comment: There is a message pointing to config.log -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: reopened Priority: normal | Component: build | system Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by David von Oheimb): * status: closed => reopened * resolution: invalid => Comment: Ok, meanwhile I found the message you were quoting. It indeed gets printed when `configure` fails. Yet the message is not to the point. It does not suggest having a look at `ffbuild/config.log` as a source of diagnostics. And independent of the logfile, as I explained before, output like {{{ ERROR: x265 not found using pkg-config }}} is pretty poor and often even misleading. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Carl Eugen Hoyos): * status: reopened => closed * resolution: => invalid Comment: It does very clearly. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by David von Oheimb): From your treatment of this ticket I can only conclude that 1. you did not care to read/understand it prooperly 2. you care little about users who want/need to build `ffmpeg` themselves. This does not shed good light on this project. I am discouraged from any further interaction. Goodbye. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:7> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9916: Poor/misleading diagnostics on pkg-config error -------------------------------------+------------------------------------- Reporter: David von | Owner: (none) Oheimb | Type: defect | Status: closed Priority: normal | Component: build | system Version: git-master | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): Do not compile in GPL mode if you do not want x265. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9916#comment:8> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg