From: Arnout Vandecappelle Date: Thu, 7 Mar 2019 21:50:41 +0100 Subject: [Buildroot] [PATCH] package/python3: require util-linux' In-Reply-To: References: Message-ID: <438902bb-ee24-a352-07d5-50caa348e095@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 07/03/2019 17:23, Jan Kundr?t wrote: > Without this dependency, a top level parallel build fails for me (-j24): > > /home/ci/build/build/host-python3-3.7.2/Modules/_uuidmodule.c: In function 'py_uuid_generate_time_safe': > /home/ci/build/build/host-python3-3.7.2/Modules/_uuidmodule.c:15:5: error: unknown type name 'uuid_t'; did you mean 'uid_t'? > uuid_t uuid; > ^~~~~~ > uid_t > /home/ci/build/build/host-python3-3.7.2/Modules/_uuidmodule.c:32:5: error: implicit declaration of function 'uuid_generate_time'; did you mean 'py_uuid_generate_time_safe'? [-Werror=implicit-function-declaration] > uuid_generate_time(uuid); > ^~~~~~~~~~~~~~~~~~ > py_uuid_generate_time_safe > > I *suspect* that this is due to host-uboot-tools which provide > /usr/include/uuid.h and which gets accidentally picked by python3. I don't see host-uboot-tools install uui.h in $(HOST_DIR)/include... ARe you sure that is where it comes from? Is that what packages-file-list-host.txt says? Anyway, nothing should install anything in /usr/include. Maybe that's the problem, that you have a wrong /usr/include/uuid.h installed on your system? Regards, Arnout > > There's a bugreport [1] upstream which at leeast appears to be relevant. > > [1] https://bugs.python.org/issue32627 > > Signed-off-by: Jan Kundr?t > --- > package/python3/python3.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/package/python3/python3.mk b/package/python3/python3.mk > index ef2c4857d8..dcec210674 100644 > --- a/package/python3/python3.mk > +++ b/package/python3/python3.mk > @@ -40,7 +40,7 @@ HOST_PYTHON3_CONF_ENV += \ > > PYTHON3_DEPENDENCIES = host-python3 libffi > > -HOST_PYTHON3_DEPENDENCIES = host-expat host-zlib host-libffi > +HOST_PYTHON3_DEPENDENCIES = host-expat host-zlib host-libffi host-util-linux > > PYTHON3_INSTALL_STAGING = YES > >