Open sl1pkn07 opened 1 year ago
Please let me know how "/tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto/api_def.pb.cc" was generated. Show me the full command.
how i get that information? is a build or configure process?
maybe this?
/tmp/makepkg/python-onnxruntime/src/onnxruntime/cmake/external/protobuf_function.cmake(150): add_custom_command(OUTPUT ${_generated_srcs} COMMAND ${PROTOC_EXECUTABLE} ARGS --${onnxruntime_protobuf_generate_LANGUAGE}_out ${_dll_export_decl}${CMAKE_CURRENT_BINARY_DIR}/${_src_sub_dir} ${_protobuf_include_path} ${_abs_file} DEPENDS ${_abs_file} ${PROTOC_DEPS} COMMENT Running ${onnxruntime_protobuf_generate_LANGUAGE} protocol buffer (full) compiler on ${_proto} VERBATIM )
EDIT:
/tmp/makepkg/python-onnxruntime/src/onnxruntime/cmake/external/protobuf_function.cmake(150): add_custom_command(OUTPUT /tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto/api_def.pb.h;/tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto/api_def.pb.cc COMMAND /usr/bin/protoc ARGS --cpp_out /tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto/ -I;/tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto;-I;/tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src;-I;/src /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto/api_def.proto DEPENDS /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto/api_def.proto COMMENT Running cpp protocol buffer (full) compiler on /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto/api_def.proto VERBATIM )
Go to the build folder and run:
make clean
make VERBOSE=1 >& build.log
Running cpp protocol buffer (full) compiler on /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto/api_def.proto cd /tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto && /usr/bin/protoc --cpp_out /tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto/ -I /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto -I /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src -I /src /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto/api_def.proto
If you run
/usr/bin/protoc -v
What does it say?
And why do you use "/opt/cuda/bin/g++"? What's that? The complier may have some builtin include dirs that I don't know.
gcc thing is only a symlink to cuda compatible gcc. in my case, gcc 12
output of that command when back to home
@snnn oh. sorry, now understand what you say
cd /tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto && /usr/bin/protoc --cpp_out /tmp/makepkg/python-onnxruntime/src/build/tensorboard/compat/proto/ -I /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto -I /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src -I /src /tmp/makepkg/python-onnxruntime/src/build/_deps/tensorboard-src/tensorboard/compat/proto/api_def.proto
/src: warning: directory does not exist.
that src
directory not exist
EDIT:
removing the -I src
flag, the files generated is equal as without removal the -I src
flag'
protoc -v say
└───╼ protoc -v
Missing value for flag: -v
Hi. any other hint about this? im stuck here when try to build the tensorrt provider. now with TRT 8.6x (same output like 8.5.x)
greetings
Sorry I have no idea why it happened.
I encountered the same problem when building ort with --enable_training
.
Hi.
onnxruntime 1.14.1
my system have
Protobuf version: 3.21.12.0
, and also try to update tensorboard to 2.12.0 in thedeps.txt
file. untouch deps.txt or ugrade ternsorboard link have the same issuethis happen when try to build the TRT foo things
if not. builds ok
greetings