py38-pytorch fails to build in buildbot
Steven Smith
steve.t.smith at gmail.com
Sun Dec 1 12:23:16 UTC 2019
I’m working on porting AllenNLP models in https://github.com/macports/macports-ports/pull/5862 .
The build bot fails building py38-pytorch, which I haven’t modified within this PR. I have verified that the Python version 3.7 build of the parent py-allennlp works both locally and within the build bot.
Have I specified something incorrect in the parent Portfile for py-allennlp? Is this is known issue? Should I scale back to just Python version 3.7 for this port?
See: https://paste.z0k.xyz/aa3770fbe290
> [ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o
> [1m/opt/local/var/macports/build/_Users_runner_runners_2.160.1_work_1_s_python_py-pytorch/py38-pytorch/work/pytorch-1.3.1/test/cpp/api/serialize.cpp:333:25: [0m[0;1;35mwarning: [0m[1mcomparison of integers of different signs: 'int64_t' (aka 'long long') and 'std::__1::vector<at::Tensor, std::__1::allocator<at::Tensor> >::size_type' (aka 'unsigned long') [-Wsign-compare][0m
> for (int64_t i = 0; i < x_vec.size(); i++) {
> [0;1;32m ~ ^ ~~~~~~~~~~~~
> [0m[1m/opt/local/var/macports/build/_Users_runner_runners_2.160.1_work_1_s_python_py-pytorch/py38-pytorch/work/pytorch-1.3.1/torch/csrc/Device.cpp:185:3: [0m[0;1;31merror: [0m[1mcannot initialize a member subobject of type 'Py_ssize_t' (aka 'long') with an rvalue of type 'nullptr_t'[0m
> nullptr, /* tp_print */
> [0;1;32m ^~~~~~~
> [0m[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o
> [1m/opt/local/var/macports/build/_Users_runner_runners_2.160.1_work_1_s_python_py-pytorch/py38-pytorch/work/pytorch-1.3.1/torch/csrc/Dtype.cpp:65:3: [0m[0;1;31merror: [0m[1mcannot initialize a member subobject of type 'Py_ssize_t' (aka 'long') with an rvalue of type 'nullptr_t'[0m
> nullptr, /* tp_print */
> [0;1;32m ^~~~~~~
> [0m1 error generated.
> make[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> [ 96%] Building CXX object test_api/CMakeFiles/test_api.dir/static.cpp.o
> 1 error generated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191201/3541f381/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191201/3541f381/attachment.bin>
More information about the macports-dev
mailing list