Linux上でbazelを使い、coptsで-m32オプションを指定して、C++のDLLをビルドをしようとしたところ、以下のようなエラーが発生しました。
/home/ike/tensorflow$ bazel build //tensorflow/examples/build_dll:inference.dll ERROR: /home/ike/tensorflow/tensorflow/examples/build_dll/BUILD:1:1: C++ compilation of rule '//tensorflow/examples/build_dll:inference.dll' failed (Exit 1) In file included from /usr/include/c++/5/bits/stl_tree.h:63:0, from /usr/include/c++/5/map:60, from tensorflow/examples/build_dll/dll.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:59:28: fatal error: bits/c++config.h: No such file or directory
原因分かる方いらっしゃいますか?
ちなみに、BUILDの内容は以下の通りです。
cc_binary( name = "inference.dll", srcs = ["dll.cpp"], copts = ["-m32"], linkshared = 1, linkopts = select({ "//conditions:default": ["-lm"], }), deps = select({ "//conditions:default": [ "//tensorflow/cc:cc_ops", "//tensorflow/core:framework_internal", "//tensorflow/core:tensorflow", ], }), )
追記
- 以下のコマンドを実行してもダメでした。
$ sudo apt-get install libc6-dev-i386
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。