tensorflow / io

Dataset, streaming, and file system extensions maintained by TensorFlow SIG-IO
Apache License 2.0
709 stars 288 forks source link

manylinux builds? #1507

Open hrw opened 3 years ago

hrw commented 3 years ago

Now you are using python-3.x-slim docker images to build.

Tensorflow is buildable in manylinux2014 so would be nice to be able to build tensorflow/io there as well.

hrw commented 3 years ago

Nevermind. toolchain in manylinux2014 image lacks "__cxa_throw_bad_array_new_length" and "std::__throw_out_of_range_fmt" functions :(

hrw commented 3 years ago
 export BAZEL_LINKLIBS=-l%:libstdc++.a

to the rescue ;D

hrw commented 3 years ago
[root@jagular ansible]# auditwheel repair dist/tensorflow_io-0.20.0-cp39-cp39-linux_aarch64.whl 
INFO:auditwheel.main_repair:Repairing tensorflow_io-0.20.0-cp39-cp39-linux_aarch64.whl
Traceback (most recent call last):
  File "/usr/local/bin/auditwheel", line 8, in <module>
    sys.exit(main())
  File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/main.py", line 51, in main
    rval = args.func(args, p)
  File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/main_repair.py", line 123, in execute
    out_wheel = repair_wheel(args.WHEEL_FILE,
  File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/repair.py", line 67, in repair_wheel
    raise ValueError(('Cannot repair wheel, because required '
ValueError: Cannot repair wheel, because required library "libtensorflow_framework.so.2" could not be located

Any suggestions?

tensorflow 2.6.0 is installed

hrw commented 3 years ago

Found https://github.com/tensorflow/io/commit/02dcf4a hack.

hrw commented 3 years ago

And built: https://snapshots.linaro.org/ldcg/python-cache/tensorflow-io-gcs-filesystem/