You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
base:synchronization and base:threading don't link on windows bazel #3615
changed the title [-]base:synchronization and bas:threading don't link on windows bazel[/-][+]base:synchronization and base:threading don't link on windows bazel[/+]on Oct 27, 2020
ah that's different - unless bazel-out/x64_windows-opt/bin/external/com_google_absl/absl/synchronization/ is on the LIBPATH (which it shouldn't be) it won't conflict. That file gets pulled in from flags stuff and is unrelated.
I'll try changing the #pragma comment(lib) to be more specific so we can ensure it's getting added. Threading needs this library so there's no way we can keep nowindows'ing it. Worst case we can /defaultlib it (no harm).
I'll try changing the #pragma comment(lib) to be more specific so we can ensure it's getting added. Threading needs this library so there's no way we can keep nowindows'ing it. Worst case we can /defaultlib it (no harm).
It was just the tests that failed to link, the libraries and other binaries using them were fine.
I found the linkopts = ["-DEFAULTLIB:advapi32.lib"] style syntax for Bazel, but that didn't work with Synchronization.lib/synchronization.lib (and I don't see any other projects doing that).
Activity
[-]base:synchronization and bas:threading don't link on windows bazel[/-][+]base:synchronization and base:threading don't link on windows bazel[/+]benvanik commentedon Oct 27, 2020
possibly this: https://discordapp.com/channels/689900678990135345/689957613152239638/768256643879403550
ScottTodd commentedon Oct 27, 2020
Renaming our
synchronizationcc_libraryisn't sufficient to fix this.Following this suggestion from a failing
bazel build:The logs include
Click to expand `.params` file
So we're even including
absl/synchronization/synchronization.lib, defined here: https://github.com/abseil/abseil-cpp/blob/5bf048b8425cc0a342e4647932de19e25ffd6ad7/absl/synchronization/BUILD.bazel#L68-L110The binaries in absl which include that library do work even from IREE (with our
WORKSPACEincluded,.bazelrcsettings, etc.):benvanik commentedon Oct 27, 2020
ah that's different - unless
bazel-out/x64_windows-opt/bin/external/com_google_absl/absl/synchronization/is on the LIBPATH (which it shouldn't be) it won't conflict. That file gets pulled in from flags stuff and is unrelated.benvanik commentedon Nov 18, 2020
I'll try changing the #pragma comment(lib) to be more specific so we can ensure it's getting added. Threading needs this library so there's no way we can keep nowindows'ing it. Worst case we can /defaultlib it (no harm).
Speculative removing nowindows tags (#3615).
Speculative removing nowindows tags (#3615).
Speculative removing nowindows tags (#3615).
Speculative removing nowindows tags (#3615).
Speculative removing nowindows tags (#3615).
Speculative removing nowindows tags (#3615).
ScottTodd commentedon Nov 18, 2020
It was just the tests that failed to link, the libraries and other binaries using them were fine.
14 remaining items
Merge main -> google
Merge main -> google
Merge main -> google
Merge main -> google
Merge main -> google (#4048)
ScottTodd commentedon Mar 25, 2021
x_X still seeing this (just tried to build
//bindings/tflite:smoke_teston Windows using Bazel)ScottTodd commentedon Apr 1, 2021
I found the
linkopts = ["-DEFAULTLIB:advapi32.lib"]style syntax for Bazel, but that didn't work withSynchronization.lib/synchronization.lib(and I don't see any other projects doing that).benvanik commentedon Jul 1, 2022
Closing as bazel 🤷.