New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.40 build failure #2873
Comments
I hit this issue for macOS as well using Meson. |
One way to fix this: --- libuuid/src/uuid_time.c
+++ libuuid/src/uuid_time.c
@@ -85,6 +85,10 @@
}
#if defined(__USE_TIME_BITS64) && defined(__GLIBC__)
extern time_t uuid_time64(const uuid_t uu, struct timeval *ret_tv) __attribute__((weak, alias("__uuid_time")));
+#elif defined(__clang__) && defined(__APPLE__)
+__asm__(".globl _uuid_time");
+__asm__(".set _uuid_time, ___uuid_time");
+extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv);
#else
extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv) __attribute__((weak, alias("__uuid_time")));
#endif |
@gershnik Would you want to submit a PR? |
@jwillikers My fix fixes the surface issue - the build no longer breaks and For example why usage of Thus my comment was meant to unblock people who need the build not to break rather than to suggest a proper fix. (FWIW I maintain a CMake build of libuuid at https://github.com/gershnik/libuuid-cmake and the fix works there) If the libuuid library authors agree that this is actually the proper fix, happy to submit a PR. |
Weak aliases are not supported by clang on Darwin. Instead this fix uses inline asm to make `_uuid_time` and alias to `___uuid_time` Fixes util-linux#2873
馃憢 trying to build the latest release, but run into some build issue. The error log is as below:
error build log
full build log, https://github.com/Homebrew/homebrew-core/actions/runs/8476769739/job/23226791433?pr=167458
relates to Homebrew/homebrew-core#167458
The text was updated successfully, but these errors were encountered: