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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some dependent projects break: undefined reference to folly::detail::base64_detail::base64Decode_SSE4_2(char const*, char const*, char*) #1823
Comments
I suspect 9d6acb3 probably needed to be included for things to work. Could you try with that applied? If it works, I can release a patch version of folly and get everything else updated to that patch version. |
It fails the same way with this patch. |
I am seeing the same issue when installing CacheLib make[2]: Leaving directory '/root/Desktop/Ritesh/new/CacheLib/build-folly' |
I also hit this issue building At least for Homebrew failure with diff --git a/folly/detail/base64_detail/Base64Api.cpp b/folly/detail/base64_detail/Base64Api.cpp
index b02148a64..ad074525b 100644
--- a/folly/detail/base64_detail/Base64Api.cpp
+++ b/folly/detail/base64_detail/Base64Api.cpp
@@ -19,13 +19,13 @@
#include <folly/detail/base64_detail/Base64Api.h>
#include <folly/detail/base64_detail/Base64SWAR.h>
-#if FOLLY_X64
+#if FOLLY_X64 && FOLLY_SSE_PREREQ(4, 2)
#include <folly/detail/base64_detail/Base64_SSE4_2.h>
#endif
namespace folly::detail::base64_detail {
-#if FOLLY_X64
+#if FOLLY_X64 && FOLLY_SSE_PREREQ(4, 2)
Base64RuntimeImpl base64EncodeSelectImplementation() {
if (folly::CpuId().sse42()) {
return { |
Sorry it's taken so long to actually get this fix landed, 437b29d should fix this issue. |
Summary: Pull Request resolved: facebook#1776 This is a dangerous trait that we do not really need. Effectively reverts {D35615227 (facebook@ad7ec0b)}. Addresses the following build failure observed in the Github Actions build iunder Windows: ``` Test project Z:/build/folly Start 1823: traits_test.Traits.is_complete 1/1 Test facebook#1823: traits_test.Traits.is_complete ...***Failed 0.02 sec Note: Google Test filter = Traits.is_complete [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from Traits [ RUN ] Traits.is_complete D:\a\folly\folly\folly\test\TraitsTest.cpp(355): error: Value of: IncompleteEnum::IS_COMPLETE Actual: true Expected: false [ FAILED ] Traits.is_complete (0 ms) [----------] 1 test from Traits (0 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test suite ran. (0 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] Traits.is_complete 1 FAILED TEST ``` Reviewed By: Orvid Differential Revision: D36426055 fbshipit-source-id: c74a9709bbcdd579e3e943ff8cb151060e33d0e9
Issues appear to be due to CMake logic that was previously referenced.
Also, I wanted to check how Lines 254 to 255 in 6198adf
Does EDIT: When built without
|
It seems this test is the wrong way round? https://github.com/facebook/folly/blob/main/CMakeLists.txt#L233 |
Summary: See #1823 * CMAKE_LIBRARY_ARCHITECTURE is not always defined * This doesn't work: `set(IS_X86_64_ARCH NOT(IS_X86_64_ARCH STREQUAL "-1"))` * Two conditionals for `IS_X86_64_ARCH` were reversed Reviewed By: bochko Differential Revision: D38653631 fbshipit-source-id: c4b6f2820a2280356a7eb69bf0e9253434b5e750
Everything around this should be fixed at this point as far as I know. |
proxygen-2022.07.18.00 fails:
See facebook/proxygen#419
clang-13
FreeBSD 13.1
The text was updated successfully, but these errors were encountered: