-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Compilation error for cpp tests on macOS with gcc and thread
sanitizer
#4331
Comments
Tested on my mac tonight and this is still an issue. Providing a reproducible example here, to help anyone wanting to work on this in the future. mkdir build
cd ./build
cmake \
-DBUILD_CPP_TEST=ON \
-DCMAKE_C_COMPILER='gcc-11' \
-DCMAKE_CXX_COMPILER='g++-11' \
-DUSE_OPENMP=OFF \
-DUSE_SANITIZER=ON \
-DUSE_DEBUG=ON \
-DENABLED_SANITIZERS="thread" \
.. logs:
(notice And then built and tested make testlightgbm -j3
./../testlightgbm Logs:
|
This comment was marked as spam.
This comment was marked as spam.
@tusharverma200 sure, we'd welcome a contribution! Please put up a pull request if you believe you've found a fix for this issue. |
I am using the 3.0.0 version,compiled with gcc 10.5, how to fix the error with this lightgbm version? |
I am able to compile by removing all these __mm_malloc to malloc macros. Personally, I don't think we should have a macro that change a global API like malloc in public header. |
FWIW, I get the same compilation error when trying to install
|
Full log
The text was updated successfully, but these errors were encountered: