Skip to content

illogical-impulse-microtex-git fails to build on Arch Linux with GCC 16 / current fontconfig #3422

Description

@developercrocodiles

Step 1. Before you submit

  • I have read the Troubleshooting and Usage pages.
  • I've successfully updated to the latest version following the guidance.
  • I've successfully updated the system packages to the latest.
  • I've ticked the checkboxes without reading their contents

Step 2. Quick diagnose info

Not relevent

Step 3. Describe the issue

Build fails on latest arch Linux.

Logs
[ 96%] Building CXX object CMakeFiles/LaTeX.dir/src/platform/cairo/graphic_cairo.cpp.o
/home/monty/.cache/dots-hyprland/sdata/dist-arch/illogical-impulse-microtex-git/src/MicroTeX/src/latex.cpp: In static member function ‘static std::string tex::LaTeX::queryResourceLocation(std::string&)’:
/home/monty/.cache/dots-hyprland/sdata/dist-arch/illogical-impulse-microtex-git/src/MicroTeX/src/latex.cpp:57:13: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   57 |     asprintf(&userdata_fallback, "%s/.local/share/clatexmath/", home);
      |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/monty/.cache/dots-hyprland/sdata/dist-arch/illogical-impulse-microtex-git/src/MicroTeX/src/platform/cairo/graphic_cairo.cpp: In member function ‘void tex::Font_cairo::loadFont(const std::string&)’:
/home/monty/.cache/dots-hyprland/sdata/dist-arch/illogical-impulse-microtex-git/src/MicroTeX/src/platform/cairo/graphic_cairo.cpp:44:18: error: ‘FcFreeTypeQuery’ was not declared in this scope
   44 |   FcPattern* p = FcFreeTypeQuery(f, 0, blanks, &count);
      |                  ^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/LaTeX.dir/build.make:1171: CMakeFiles/LaTeX.dir/src/platform/cairo/graphic_cairo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/LaTeX.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
[./setup]: Command "makepkg -Afsi --noconfirm" has failed.
You may need to resolve the problem manually BEFORE repeating this command.
[Tip] If a certain package is failing to install, try installing it separately in another terminal.
  r = Repeat this command (DEFAULT)
  e = Exit now
  i = Ignore this error and continue (your setup might not work correctly)
 [R/e/i]: 

Reminder

  • I agree that it's usually impossible for others to help me without my logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ISSUEGeneral issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions