Skip to content

[macOS] Installation of libcachesim fails #182

@laustam

Description

@laustam

Bug description

The installation script install_libcachesim.sh fails to execute due to too many errors being emitted:

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

After brief inspection, it seems that the cause of these errors is due to clang being stricter than gcc. For example, the following errors occur frequently:

Errors generated

  1. Missing newline at end of a file
error: no newline at end of file [-Werror,-Wnewline-eof]
  1. Missing explicit type casting (caught by Clang with -Wformat-pedantic)
error: format specifies type 'void *' but the argument has type 'char *' [-Werror,-Wformat-pedantic]
  1. Token pasting with empty VA_ARGS (not allowed by Clang)
error: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Werror,-Wgnu-zero-variadic-macro-arguments]
  1. Unused private field
error: private field 'vtime_granularity_' is not used [-Werror,-Wunused-private-field]
  1. Missing namespace (Clang wants explicit std::move instead of move)
error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call]

Reproduction steps

  1. Run bash install_libcachesim.sh as mentioned in the setup section of the README

Device information

Hardware: Apple MacBook Pro M1, 8GB, 2020
OS: macOS Sequoia 15.3.1
Homebrew: 4.5.2-21

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