Opened 5 years ago
Closed 18 months ago
#59192 closed defect (wontfix)
py36-tensorflow @2.0.0: does not build
Reported by: | brolcz | Owned by: | emcrisostomo (Enrico Maria Crisostomo) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.1 |
Keywords: | Cc: | cjones051073 (Chris Jones), andrey-popov (Andrey Popov), mascguy (Christopher Nielsen) | |
Port: | py-tensorflow |
Description
When I attempt to upgrade py36-tensorflow, it does not build.
:info:build PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin \ :info:build bazel-out/host/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/host/bin' '--plugin=protoc-gen-grpc=bazel-out/host/bin/external/grpc/grpc_cpp_plugin' '--grpc_out=bazel-out/host/bin' -I. -I. -I. -Iexternal/com_google_protobuf/src -Ibazel-out/host/bin/external/com_google_protobuf/src -I. -I. -I. -Iexternal/com_google_protobuf/src -Ibazel-out/host/bin/external/com_google_protobuf/src -Iexternal/com_google_protobuf/src -Ibazel-out/host/bin/external/com_google_protobuf/src -I. -Iexternal/com_google_protobuf/src -Ibazel-out/host/bin/external/com_google_protobuf/src -Iexternal/com_google_protobuf/src -Ibazel-out/host/bin/external/com_google_protobuf/src -Iexternal/com_google_protobuf/src -Ibazel-out/host/bin/external/com_google_protobuf/src tensorflow/core/profiler/profiler_analysis.proto) :info:build ERROR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py36-tensorflow/work/tensorflow-tensorflow-64c3d38/tensorflow/core/profiler/BUILD:55:1: ProtoCompile tensorflow/core/profiler/profiler_analysis.pb.h failed (Segmentation fault): protoc failed: error executing command bazel-out/host/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/host/bin' '--plugin=protoc-gen-grpc=bazel-out/host/bin/external/grpc/grpc_cpp_plugin' '--grpc_out=bazel-out/host/bin' -I. -I. ... (remaining 18 argument(s) skipped) :info:build bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist. :info:build bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist. :info:build bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist. :info:build bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist. :info:build bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist. :info:build bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist. :info:build Target //tensorflow/tools/pip_package:build_pip_package failed to build :info:build Use --verbose_failures to see the command lines of failed build steps. :info:build INFO: Elapsed time: 158.301s, Critical Path: 28.80s :info:build INFO: 379 processes: 379 local. :info:build FAILED: Build did NOT complete successfully :info:build FAILED: Build did NOT complete successfully :info:build Command failed: bazel --max_idle_secs=60 --output_user_root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py36-tensorflow/work build -s -c opt --config=opt --conlyopt '-Os' --cxxopt '-Os' --cxxopt '-stdlib=libc++' --linkopt '-L/opt/local/lib' --linkopt '-Wl,-headerpad_max_install_names' --config=mkl //tensorflow/tools/pip_package:build_pip_package :info:build Exit code: 1 :error:build Failed to build py36-tensorflow: command execution failed :debug:build Error code: NONE :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py36-tensorflow/main.log for details.
Attachments (2)
Change History (20)
comment:1 Changed 5 years ago by brolcz
comment:2 Changed 5 years ago by cjones051073 (Chris Jones)
You need to post a complete log file from a clean build attempt....
Changed 5 years ago by brolcz
comment:5 Changed 5 years ago by mf2k (Frank Schima)
Port: | py-tensorflow added |
---|
Changed 5 years ago by andrey-popov (Andrey Popov)
Attachment: | catalina.log added |
---|
Log from port install for py37-tensorflow on macOS 10.15
comment:6 Changed 5 years ago by andrey-popov (Andrey Popov)
I experience what seems to be a similar problem (segmentation fault during build) for py37-tensorflow @2.0.0 with macOS 10.15 and Xcode 11.1. I attached the full log (catalina.log
). Note that this seems to be different from #59282 (where errors seem to be related to downloading of files).
comment:7 Changed 5 years ago by andrey-popov (Andrey Popov)
Cc: | andrey-popov added |
---|
comment:8 Changed 5 years ago by cjones051073 (Chris Jones)
I have a suspicion that this might be another instance of the Xcode 11 + Darwin 19 '-fstack-check' issue we have been seeing in a few places. Testing applying the work around now. Seems to be working (build still going but has past where it previously failed). It will take a while, tensorflow is a mammoth build, but I will push something when I am sure it completes....
comment:9 Changed 5 years ago by cjones051073 (Chris Jones)
sadly, this did not work.... for now, unless someone comes up with a good idea I'm going to consider this as something upstream needs to address themselves.
comment:10 Changed 5 years ago by cjones051073 (Chris Jones)
Upstream already have an issue for this.
comment:11 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Upstream has closed the issue, saying Xcode 11.4 and later fix the problem. So what do we need to do about that in MacPorts? We may have Xcode 11.4.1 on our build machine already but that's no guarantee that users have upgraded. Do we need to add an Xcode version check to the port (perhaps the xcodeversion portgroup)?
comment:12 follow-up: 13 Changed 5 years ago by cjones051073 (Chris Jones)
comment:13 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Your commit message says:
py-tensorflow: use xcode_workaround PG to require Xcode 11.4+ on macOS 10.15
What about on 10.14? This ticket was originally reported by a user using Xcode 11.0 on macOS 10.14.
comment:14 Changed 5 years ago by cjones051073 (Chris Jones)
I guess in principle someone if they wanted to could update the PG to work on 10.14..
comment:15 Changed 5 years ago by cjones051073 (Chris Jones)
comment:16 Changed 5 years ago by mf2k (Frank Schima)
Cc: | cjones051073 added; emcrisostomo@… jonesc@… removed |
---|---|
Owner: | set to emcrisostomo |
Status: | new → assigned |
comment:17 Changed 18 months ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:18 Changed 18 months ago by mascguy (Christopher Nielsen)
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Support for Python 3.6 was dropped for py-tensorflow
some time ago, so this ticket is no longer relevant. Closing.
Sorry, I forgot to mention. My Mac OS is Mojave 10.14.6.