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
> /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:
>  warning: comparison 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]
>   for (int64_t i = 0; i < x_vec.size(); i++) {
>                       ~ ^ ~~~~~~~~~~~~
> /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:
>  error: cannot initialize a member subobject of type 
> 'Py_ssize_t' (aka 'long') with an rvalue of type 'nullptr_t'
>   nullptr,                                     /* tp_print */
>   ^~~~~~~
> [ 96%] Building CXX object 
> caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o
> /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:
>  error: cannot initialize a member subobject of type 
> 'Py_ssize_t' (aka 'long') with an rvalue of type 'nullptr_t'
>   nullptr,                                     /* tp_print */
>   ^~~~~~~
> 1 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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to