{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21315","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21315/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21315/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21315/events","html_url":"https://github.com/tensorflow/tensorflow/issues/21315","id":346730505,"node_id":"MDU6SXNzdWUzNDY3MzA1MDU=","number":21315,"title":"building tensorflow shared library in windows debug mode (cmake) /MDd","user":{"login":"amirhessam","id":9620110,"node_id":"MDQ6VXNlcjk2MjAxMTA=","avatar_url":"https://avatars2.githubusercontent.com/u/9620110?v=4","gravatar_id":"","url":"https://api.github.com/users/amirhessam","html_url":"https://github.com/amirhessam","followers_url":"https://api.github.com/users/amirhessam/followers","following_url":"https://api.github.com/users/amirhessam/following{/other_user}","gists_url":"https://api.github.com/users/amirhessam/gists{/gist_id}","starred_url":"https://api.github.com/users/amirhessam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amirhessam/subscriptions","organizations_url":"https://api.github.com/users/amirhessam/orgs","repos_url":"https://api.github.com/users/amirhessam/repos","events_url":"https://api.github.com/users/amirhessam/events{/privacy}","received_events_url":"https://api.github.com/users/amirhessam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T19:10:32Z","updated_at":"2018-08-01T19:10:32Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\n### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: no\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: windows 10\r\n- **TensorFlow installed from (source or binary)**: source\r\n- **TensorFlow version (use command below)**: r 1.9\r\n### Describe the problem\r\nWe get many linking error for building tensorflow shared library in windows when debug mode is selected\r\n(/MDd switch in VC++). We get many error messages like\r\n\r\n> mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' \r\n\r\nAfter digging into the issue, I noticed the linker is using wrong GRPC libs. \r\n\r\n`\r\ndouble_conversion\\src\\double_conversion\\double-conversion\\$(Configuration)\\double-conversion.lib\r\nzlib\\install\\lib\\zlibstaticd.lib\r\ngrpc\\src\\grpc\\Release\\grpc++_unsecure.lib\r\ngrpc\\src\\grpc\\Release\\grpc_unsecure.lib\r\ngrpc\\src\\grpc\\Release\\gpr.lib\r\nsnappy\\src\\snappy\\$(Configuration)\\snappy.lib\r\n`\r\nApparently, the cmake script is using the release version of grpc regardless of the config. I changed it manually and it was fixed. It would be nice if this fix is included in the future patches. \r\n"}}
{"actor":{"display_login":"amirhessam"}}