Skip to content

Troubleshooting

Taner Şener edited this page Dec 29, 2021 · 3 revisions
  • The latest versions of gnutls depend on bison > 2.4. If there is an older bison version found, then the build fails with the following error. Make sure that your bison is newer than 2.4. bison --version must return a value higher than 2.4.

    CC       parse-datetime.lo
    clang: error: no such file or directory: 'parse-datetime.c'
    clang: error: no input files
    
  • If the gnutls build fails with the following error, check whether nettle has built both libhogweed.a and libnettle.a libraries. If libhogweed.a is not created then re-build both gmp and nettle. The error will be gone when libhogweed.a is built.

    configure: error: Nettle lacks the required rsa_sec_decrypt function

  • Some libraries, like xvidcore below, may fail when performing an I/O operation during compile. It is a race condition and occurs because build scripts do not support parallel execution well. Rebuild that library and error will be gone.

      A: utils/x86_asm/mem_transfer_mmx.asm
      A: utils/x86_asm/mem_transfer_3dne.asm
      A: utils/x86_asm/interlacing_mmx.asm
    install: mkdir =build/utils/x86_asm: File exists
    make: *** [utils/x86_asm/mem_transfer_3dne.o] Error 71
    make: *** Waiting for unfinished jobs....
    
  • When building kvazaar library for the first time on a new host, the following error may occur. Try again or use --reconf-kvazaar flag to fix it.

      GEN      libkvazaar.la
      GEN      kvazaar
    ./.libs/libkvazaar.a(libkvazaar_la-nal-generic.o):nal-generic.c:function array_md5_generic: error: undefined reference to 'kvz_md5_init'
    ./.libs/libkvazaar.a(libkvazaar_la-nal-generic.o):nal-generic.c:function array_md5_generic: error: undefined reference to 'kvz_md5_update'
    ./.libs/libkvazaar.a(libkvazaar_la-nal-generic.o):nal-generic.c:function array_md5_generic: error: undefined reference to 'kvz_md5_final'
    clang60: error: linker command failed with exit code 1 (use -v to see invocation)
    Makefile:905: recipe for target 'kvazaar' failed
    
  • fontconfig library fails on some hosts with the following link errors. Apply --rebuild-libuuid flag and rebuild libuuid library to fix it.

      CCLD     fc-cache
    ../src/.libs/libfontconfig.a(fccache.o):fccache.c:function FcDirCacheCreateUUID: error: undefined reference to 'uuid_unparse'
    ../src/.libs/libfontconfig.a(fccache.o):fccache.c:function FcDirCacheBasenameUUID: error: undefined reference to 'uuid_unparse'
    ../src/.libs/libfontconfig.a(fccache.o):fccache.c:function FcDirCacheLoad: error: undefined reference to 'uuid_parse'
    ../src/.libs/libfontconfig.a(fchash.o):fchash.c:function FcHashUuidCopy: error: undefined reference to 'uuid_copy'
    /home/taner/Projects/ffmpeg-kit/prebuilt/android-arm/libuuid/lib/libuuid.a(libuuid_la-gen_uuid.o):gen_uuid.c:function __uuid_generate_time: error: undefined reference to 'random_get_bytes'
    /home/taner/Projects/ffmpeg-kit/prebuilt/android-arm/libuuid/lib/libuuid.a(libuuid_la-gen_uuid.o):gen_uuid.c:function __uuid_generate_time: error: undefined reference to 'random_get_bytes'
    /home/taner/Projects/ffmpeg-kit/prebuilt/android-arm/libuuid/lib/libuuid.a(libuuid_la-gen_uuid.o):gen_uuid.c:function __uuid_generate_time: error: undefined reference to 'uuid_pack'
    /home/taner/Projects/ffmpeg-kit/prebuilt/android-arm/libuuid/lib/libuuid.a(libuuid_la-gen_uuid.o):gen_uuid.c:function __uuid_generate_random: error: undefined reference to 'random_get_bytes'
    /home/taner/Projects/ffmpeg-kit/prebuilt/android-arm/libuuid/lib/libuuid.a(libuuid_la-gen_uuid.o):gen_uuid.c:function __uuid_generate_random: error: undefined reference to 'uuid_unpack'
    /home/taner/Projects/ffmpeg-kit/prebuilt/android-arm/libuuid/lib/libuuid.a(libuuid_la-gen_uuid.o):gen_uuid.c:function __uuid_generate_random: error: undefined reference to 'uuid_pack'
    clang60: error: linker command failed with exit code 1 (use -v to see invocation)
    Makefile:513: recipe for target 'fc-cache' failed
    make[2]: *** [fc-cache] Error 1
    
  • Building dav1d for Android may fail with the following error if you're using an incompatible or old version of meson. Please upgrade your meson to 0.56.x or later to resolve this issue.

    meson.build:25:0: ERROR: Could not invoke sanity test executable: [Errno 8] Exec format error: '/home/taner/Projects/ffmpeg-kit/.tmp/cmake/build/android-arm64/dav1d/meson-private/sanitycheckc.exe'.

iOS / macOS / tvOS

  • autoreconf receives the following error if gettext path is not correctly set by Homebrew.
    Can't exec "autopoint": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 345.
    autoreconf: failed to run autopoint: No such file or directory
    autoreconf: autopoint is needed because this package uses Gettext
    
    You can fix it by running either brew link gettext --force or echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile.
Clone this wiki locally