Skip to content
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

Linker errors on FreeBSD (-lm missing) #163

Closed
yesudeep opened this issue Aug 23, 2020 · 1 comment
Closed

Linker errors on FreeBSD (-lm missing) #163

yesudeep opened this issue Aug 23, 2020 · 1 comment

Comments

@yesudeep
Copy link
Contributor

❯ bazel test ...
WARNING: /usr/home/yesudeep/.cache/bazel/_bazel_yesudeep/12db47f080f7e9f258fb2857efef7faf/external/remote_java_tools_linux/BUILD:671:11: in hdrs attribute of cc_library rule @remote_java_tools_linux//:combiners: Artifact 'external/remote_java_tools_linux/java_tools/src/tools/singlejar/zip_headers.h' is duplicated (through '@remote_java_tools_linux//:transient_bytes' and '@remote_java_tools_linux//:zip_headers'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation
INFO: Analyzed 17 targets (1 packages loaded, 651 targets configured).
INFO: Found 13 targets and 4 test targets...
ERROR: /usr/home/yesudeep/code/yesudeep/cctz/BUILD:227:10: Linking of rule '//:example2' failed (Exit 1) clang failed: error executing command /usr/bin/clang -o bazel-out/freebsd-fastbuild/bin/example2 bazel-out/freebsd-fastbuild/bin/_objs/example2/example2.pic.o bazel-out/freebsd-fastbuild/bin/libtime_zone.a ... (remaining 5 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
ld: error: undefined symbol: ceilf
>>> referenced by time_zone_impl.cc
>>>               time_zone_impl.pic.o:(ceil(float)) in archive bazel-out/freebsd-fastbuild/bin/libtime_zone.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO: Elapsed time: 0.513s, Critical Path: 0.08s
INFO: 1 process: 1 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
//:civil_time_test                                              (cached) PASSED in 0.2s
//:cctz_benchmark                                                     NO STATUS
//:time_zone_format_test                                              NO STATUS
//:time_zone_lookup_test                                              NO STATUS

FAILED: Build did NOT complete successfully
@yesudeep
Copy link
Contributor Author

The actual problem is diagnosed here: bazelbuild/bazel#12023

@yesudeep yesudeep reopened this Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant