-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bundled folly installation needs to link with [email protected] #5309
Comments
This error is reported here #5222 (comment) |
…#5309) Summary: Folly needs OpenSSL 1.1 version to function. In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions causing the build to fail. Currently, in the `setup-macos.sh` script, we set OPENSSL_ROOT_DIR=$(brew --prefix [email protected]). We require a similar change for the bundled folly installs as well. To achieve this goal, we now set the `OPENSSL_ROOT_DIR` environment variable via the CMake file to set the path to the correct version of OpenSSL. Resolves facebookincubator#1446, facebookincubator#5309
…#5309) Summary: Folly needs OpenSSL 1.1 version to function. In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions causing the build to fail. Currently, in the `setup-macos.sh` script, we set OPENSSL_ROOT_DIR=$(brew --prefix [email protected]). We require a similar change for the bundled folly installs as well. To achieve this goal, we now set the `OPENSSL_ROOT_DIR` environment variable via the CMake file to set the path to the correct version of OpenSSL. Resolves facebookincubator#1446, facebookincubator#5309
Hi @majetideepak,
I should have my PR up for review soon 👍 |
@rishitc thanks for the update. Can you check if just |
The bundled folly CMake files are in |
Hi @majetideepak, |
…#5309) Summary: Folly needs OpenSSL 1.1 version to function. In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions causing the build to fail. Currently, in the `setup-macos.sh` script, we set OPENSSL_ROOT_DIR=$(brew --prefix [email protected]). We require a similar change for the bundled folly installs as well. To achieve this goal, we now set the `OPENSSL_ROOT_DIR` environment variable via the CMake file to set the path to the correct version of OpenSSL. Resolves facebookincubator#1446, facebookincubator#5309
…#5309) Summary: Folly needs OpenSSL 1.1 version to function. In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions causing the build to fail. Currently, in the `setup-macos.sh` script, we set OPENSSL_ROOT_DIR=$(brew --prefix [email protected]). We require a similar change for the bundled folly installs as well. To achieve this goal, we now set the `OPENSSL_ROOT_DIR` environment variable via the CMake file to set the path to the correct version of OpenSSL. Resolves facebookincubator#1446, facebookincubator#5309
Hi @majetideepak, Please let me know if you need any further information or have any questions. Thanks |
Hi @majetideepak, Thanks |
@rishitc I missed your updates. Looks like we are seeing issues with openssl version on CI as well. We will merge your fix. |
…#5309) Summary: Folly needs OpenSSL 1.1 version to function. In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions causing the build to fail. Currently, in the `setup-macos.sh` script, we set OPENSSL_ROOT_DIR=$(brew --prefix [email protected]). We require a similar change for the bundled folly installs as well. To achieve this goal, we now set the `OPENSSL_ROOT_DIR` environment variable via the CMake file to set the path to the correct version of OpenSSL. Resolves facebookincubator#1446, facebookincubator#5309
Hi @majetideepak, I was also following the discussion in #5426, from which I gathered that my fix is not solving the CI issue, though it appears to fix the problem when building locally. There was one observation from your PR (#5428) that the macos-build-macos-intel CI build failed for your PR while it ran successfully in my PR (#5361). I'm still trying to understand why the same code change gave inconsistent results. I looked at the output for the failed build for your PR (#5428). Looking at the CI output (link) the reason the build failure is that I believe the CI used OpenSSL version 3 (the giveaway was the 'HMAC_CTX_free' deprecated errors) even though the environment variable Locally, even on my system (MacOS M1), the default OpenSSL is version 3; however, setting the |
@rishitc I believe the CI MacOS environment changed between your run and my run which caused this. |
…#5309) Summary: Folly needs OpenSSL 1.1 version to function. In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions causing the build to fail. Currently, in the `setup-macos.sh` script, we set OPENSSL_ROOT_DIR=$(brew --prefix [email protected]). We require a similar change for the bundled folly installs as well. To achieve this goal, we now set the `OPENSSL_ROOT_DIR` environment variable via the CMake file to set the path to the correct version of OpenSSL. Resolves facebookincubator#1446, facebookincubator#5309
…#5309) Summary: Folly needs OpenSSL 1.1 version to function. In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions causing the build to fail. Currently, in the `setup-macos.sh` script, we set OPENSSL_ROOT_DIR=$(brew --prefix [email protected]). We require a similar change for the bundled folly installs as well. To achieve this goal, we now set the `OPENSSL_ROOT_DIR` environment variable via the CMake file to set the path to the correct version of OpenSSL. Resolves facebookincubator#1446, facebookincubator#5309
Problem description
Folly needs OpenSSL 1.1 version.
In the presence of other OpenSSL versions, it is possible that folly in bundled mode can pick up other incompatible versions.
In the setup-macos.sh scripts, we set
OPENSSL_ROOT_DIR=$(brew --prefix [email protected])
.We need to set something similar for bundled folly install as well.
Build error seen
CMake Error at /usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR: Found unsuitable version "1.0.2d", but
required is at least "1.1.1" (found
/opt/homebrew/Cellar/openssl/1.0.2d_1/lib/libcrypto.dylib, )
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindOpenSSL.cmake:670 (find_package_handle_standard_args)
_build/release/_deps/folly-src/CMake/folly-deps.cmake:81 (find_package)
_build/release/_deps/folly-src/CMakeLists.txt:132 (include)
System information
Mac M1 with OpenSSL 1.0.2d present.
CMake log
No response
The text was updated successfully, but these errors were encountered: