Skip to content

malloc and free not found #4805

Closed
Closed

Description

@doaso
  • distro: gentoo
  • package: gui-apps/waybar
  • compiler: clang version 21.1.8+libcxx
  • compiler: gcc (Gentoo 15.2.1_p20251122 p3) 15.2.1 20251122

Maybe it's not your mistake, I'm not sure. :)

build_log.txt

info.txt

Activity

  1. reopened this on Feb 8, 2026
  2. acuteaangle commented on Feb 21, 2026

    @acuteaangle
    In file included from ../Waybar-0.12.0/src/modules/disk.cpp:1:
    In file included from ../Waybar-0.12.0/include/modules/disk.hpp:3:
    /usr/include/fmt/format.h:747:28: error: use of undeclared identifier 'malloc'
    

    The build failure is coming from the dependency dev-libs/libfmt

    This issue has been fixed upstream by fmtlib/fmt#4477, and the fix was merged in 12.1.0, but your build log shows it is attempting to use fmt 11.1.4:

    Run-time dependency fmt found: YES 11.1.4
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions