tweag / clodl

Turn dynamically linked ELF binaries and libraries into self-contained closures.
BSD 3-Clause "New" or "Revised" License
164 stars 6 forks source link

Closures of libraries named as *.so fail to build #24

Closed facundominguez closed 5 years ago

facundominguez commented 5 years ago

library_closure fails with

ERROR: file 'clotestbin-closure_Usolib/libhello-cc.so' is generated by these conflicting actions:
Label: //:clotestbin-closure-as-libs, //:clotestbin-closure-runfiles
RuleClass: _rename_as_solib rule, _expose_runfiles rule
Configuration: b93351232485d7aae598752ea518de7e
Mnemonic: Symlink, SkylarkAction
Action key: a405cd256b658226272436ee29792619, 491ba63def9a64729d4385c6f63c0274
Progress message: Symlink clotestbin-closure_Usolib/libhello-cc.so, SkylarkAction clotestbin-closure_Usolib/libhello-cc.so
PrimaryInput: File:[[<execution_root>]bazel-out/k8-fastbuild/bin]libhello-cc.so
PrimaryOutput: File:[[<execution_root>]bazel-out/k8-fastbuild/bin]clotestbin-closure_Usolib/libhello-cc.so
Owner information: //:clotestbin-closure-as-libs com.google.devtools.build.lib.skyframe.BuildConfigurationValue$Key@99896fcf false (996475399), //:clotestbin-closure-runfiles com.google.devtools.build.lib.skyframe.BuildConfigurationValue$Key@99896fcf false (1588167226)
MandatoryInputs: are equal
Outputs: are equal

Our CI passes because we only make closures of executables or executables made libraries.