Tensorflow bezel command line c options does not pass down to gcc if static object is compiled -


when compile tensorflow bazel, found c option put in bazel command line passed object file dynamic library (with -fpic option), not object file static library (without -fpic).

for example, ran following command:

bazel build --copt="-deigen_use_mkl_vml" -c opt //tensorflow/tools/pip_package:build_pip_package -s 

i expect -deigen_use_mkl_vml passed down gcc, not *.o. example, gcc command line external/nasm/labels.c following:

(cd /nfs/pdx/home/sfu2/.cache/bazel/_bazel_sfu2/fec016c4b4f3097e22950dbc1f4b848d/execroot/private-tensorflow && \   exec env - \     ld_library_path=/nfs/pdx/home/sfu2/gcc/install/lib64:/usr/lib64:/usr/local/lib \     path=/nfs/pdx/home/sfu2/bin:/usr/bin:/usr/local/bin/:/usr/lib64/qt-3.3/bin:/nfs/pdx/home/sfu2/perl5/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin \     pwd=/proc/self/cwd \   /usr/bin/gcc -u_fortify_source -fstack-protector -wall -b/usr/bin -b/usr/bin -wunused-but-set-parameter -wno-free-nonheap-object -fno-omit-frame-pointer -g0 -o2 '-d_fortify_source=1' -dndebug -ffunction-sections -fdata-sections -g0 -md -mf bazel-out/host/bin/external/nasm/_objs/nasm/external/nasm/labels.d -dhave_snprintf -iquote external/nasm -iquote bazel-out/host/genfiles/external/nasm -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -w '-std=c99' -fno-canonical-system-headers -wno-builtin-macro-redefined '-d__date__="redacted"' '-d__timestamp__="redacted"' '-d__time__="redacted"' -c external/nasm/labels.c -o bazel-out/host/bin/external/nasm/_objs/nasm/external/nasm/labels.o) 

is bug in tensorflow build script?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -