-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete Installation of Tensorflow FreeBSD #50766
Comments
|
Nope. those seem to be build issues. I've remedied and patched them and tensorflow builds successfully. However, on the creation of the pip packages, there only seems to be usr/lib/python3.8/site-packages/tensorflow_core available. All other directories are not being installed during pip creation, even though I see they have been built. I'm not sure if there is some platform checks I've overlooked during build that I've failed to catch. |
|
@Amzo |
|
I'll put this on hold for now, and see if I can get tensorflow 2.5.x to build on FreeBSD once I finish through the documentation to create a toolchain to allow it to build, as it currently errors out about no toolchains being found for now. Mostly due to there being no support for FreeBSD in bazel toolchain, and currently no docker support. I'll see if the problem still persists in the newer version of tensorflow. Might be easier to just run a virtual env in the linuxulator on FreeBSD and avoid a native port. |
|
I see on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250646 you said you have not submitted the fix, is there any reason why. |
|
The patch only fixes the import of tensorflow by a broken stage in the Makefile, a lot of stuff is still missing. photoprism only needs libtensorflow which the makefile builds, if you're on freebsd you can build tensorflow from the port and take the library files from the build directory until i finish working out issues with the port. Though this is off topic. i should have things fixed in a day or two. For your issue to build protoprism i can submit a patch tomorrow to package the tensorflow libraries in. |
|
Oh ok wow, thanks a bunch! and take your time. Silly me thought you fixed it but just haven't submitted it yet. |
|
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
|
Closing as stale. Please reopen if you'd like to work on this further. |
|
@Amzo - Were you able to make progress? |
|
Yeah, i upgraded to 2.1.4 and fixed the packaging in the Makefile, and it works as intended on freebsd. |
|
@Amzo Appreciate the quick response! Is your updated code available in ports or was it something you just did locally on your m/c? Also, can you point to any specifics that one to be aware of to compile TF on FreeBSD |
|
Code hasn't been merged yet, but this should work on FreeBSD, best to just email me about it or report on there instead of on here. https://github.com/Amzo/FreeBSD-Tensorflow/tree/master/science/py-tensorflow |
|
how much time did it take to compile TF? |
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
Describe the problem
While tensorflow will build on FreeBSD, the installation is incomplete and only provides lib/python3.8/site-packages/tensorflow_core with nothing else.
Provide the exact sequence of commands / steps that you executed before running into the problem
Commands for building:
@cd ${WRKSRC} && \ bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \ --host_linkopt="-L${LOCALBASE}/lib" --linkopt="-L${LOCALBASE}/lib" --copt="-I${LOCALBASE}/include" \ --verbose_failures -s --incompatible_restrict_string_escapes=false \ --distdir=${WORKDIR}/bazel-dist --linkopt='-fuse-ld=lld' \ //tensorflow:libtensorflow_framework.so \ //tensorflow:libtensorflow.so \ //tensorflow:libtensorflow_cc.so \ //tensorflow/tools/pip_package:build_pip_packageThe creation of the pip package:
@cd ${WRKSRC} && ${SETENV} TMPDIR=${WRKDIR} \ bazel-bin/tensorflow/tools/pip_package/build_pip_package \ ${WRKDIR}/whlThe following variables in the above command contain the following information:
LOCALBASE=/usr/local
BAZEL_BOOT= --output_user_root=${WRKDIR}/bazel_out
BAZEL_COPT="-c opt --copt=-march=native --copt=-mfpmath=sse"
Any other info / logs
I'm assuming the problem is just from the build files failing to default to a suitable platform and is falling back to default values. If I could be pointed into the right direction and files so that I could move forward and patch them it would be helpful.
The text was updated successfully, but these errors were encountered: