Closed fty0724 closed 2 years ago
Can you post only the error? What happens if you run ./waf build -v
again? I'm going to try and replicate your issue in the Dockerfile using 18.04.
i have locate the error happend here:
zcm/python/zerocm.c:12115:47: error: format ‘%S’ expects argument of type ‘wchar_t *’, but argument 3 has type ‘PyObject * {aka struct _object *}’ [-Werror=format=]
"unbound method %.200S() needs an argument",
~~~~~^
cyfunc->func_qualname);
~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
so, I unregistered this code, and it works!
What does unregistered mean?
sorry, my english is bad, I mean code cancellation (add # before these lines).
What lines exactly? I can't replicate your issue when building the entire repo from the Dockerfile.
in zcm/python/zerocm.c: line 12115
PyError_Fromat(PyExc_TypeError,"unbound method %.200S() needs an argument", cyfunc->funcqualname);
Is that a file in your build directory?
yes, it's in the build directory
Yeah you shouldn't need to ever edit anything in the build directory. I was unable to reproduce your issue in the Dockerfile. If you are able to reproduce your issue in the dockerfile, I would love to take a look. But otherwise, it will be something with the way you set up your environment or are building. I'm going to close out this issue. If you'd like to continue to debug, I would suggest modifying the Dockerfile to generate your issue. What you'll probably find is that there is some difference between how you are trying to build and how the dockerfile is building. This is the command I was running to try and reproduce your issue:
docker build -f Dockerfile -t zcm --build-arg IMAGE_VERSION=18.04 .
Feel free to reopen the issue if you find additional details or are able to instruct how to replicate the issue
When I build zcm in the below environment: gcc&g++ 7.5.0, Python 3.6, linux 18.04
here is the process:
Then I try to build,but the error happend:
how can I fix it? Thanks!