From 09d236384513e205d1a46a59e3a768ffc91c3d47 Mon Sep 17 00:00:00 2001 From: Wenjian Huang Date: Thu, 30 Jun 2016 23:30:41 +0800 Subject: [PATCH] solve the building issues "Undefined reference to symbol 'ceil@@GLIBC_2.2.5'" (#3097) * solve the building issues This is to solve https://github.com/tensorflow/tensorflow/issues/3070, the solution is inspired from https://github.com/bazelbuild/bazel/issues/934 and https://github.com/tensorflow/tensorflow/issues/1171 * Update BUILD --- tensorflow/tools/proto_text/BUILD | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tensorflow/tools/proto_text/BUILD b/tensorflow/tools/proto_text/BUILD index 19f14748c54..e6592479b6d 100644 --- a/tensorflow/tools/proto_text/BUILD +++ b/tensorflow/tools/proto_text/BUILD @@ -42,6 +42,13 @@ cc_library( name = "gen_proto_text_functions_lib", srcs = ["gen_proto_text_functions_lib.cc"], hdrs = ["gen_proto_text_functions_lib.h"], + linkopts = [ + "-lm", + "-lpthread", + ] + select({ + "//tensorflow:darwin": [], + "//conditions:default": ["-lrt"] + }), deps = [ "//tensorflow/core:lib", ],