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
- Missing newline at end of a file
error: no newline at end of file [-Werror,-Wnewline-eof]
- Missing explicit type casting (caught by Clang with -Wformat-pedantic)
error: format specifies type 'void *' but the argument has type 'char *' [-Werror,-Wformat-pedantic]
- 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]
- Unused private field
error: private field 'vtime_granularity_' is not used [-Werror,-Wunused-private-field]
- Missing namespace (Clang wants explicit std::move instead of move)
error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call]
Reproduction steps
- 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
Bug description
The installation script
install_libcachesim.shfails 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
clangbeing stricter thangcc. For example, the following errors occur frequently:Errors generated
Reproduction steps
bash install_libcachesim.shas mentioned in the setup section of theREADMEDevice information
Hardware: Apple MacBook Pro M1, 8GB, 2020
OS: macOS Sequoia 15.3.1
Homebrew: 4.5.2-21