termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.01k stars 2.99k forks source link

[Bug]: Error While building dbus-glib #21489

Closed RajDave-Dev closed 2 days ago

RajDave-Dev commented 2 days ago

Problem description

When building dbus-glib in the termux's docker image I got the error everytime tried with root user and the default user.

CC       dbus-gthread.lo                                          
CC       dbus-bash-completion-helper.o                            
CCLD     libdbus-glib-1.la                                        
CCLD     libdbus-gtool.la                                         
CCLD     dbus-binding-tool                                        
CCLD     dbus-bash-completion-helper                            
make[3]: Leaving directory '/home/builder/.termux-build/dbus-glib/host-build/dbus'                                                  
Making all in examples                                            
make[3]: Entering directory '/home/builder/.termux-build/dbus-glib/host-build/dbus/examples'                                        /bin/bash ../../libtool --mode=execute ../../dbus/dbus-binding-tool --prefix=some_object --mode=glib-server --output=example-service-glue.h /home/builder/.termux-build/dbus-glib/src/dbus/examples/example-service.xml                                                 /bin/bash ../../libtool --mode=execute ../../dbus/dbus-binding-tool --prefix=test_object --mode=glib-server --output=example-signal-emitter-glue.h /home/builder/.termux-build/dbus-glib/src/dbus/examples/example-signal-emitter.xml                                   
Compilation failed: Failed to close file descriptor for child process (Operation not permitted)                                     
Compilation failed: Failed to close file descriptor for child process (Operation not permitted)                                     
make[3]: *** [Makefile:814: example-signal-emitter-glue.h] Error 1
make[3]: *** Waiting for unfinished jobs....                      
make[3]: *** [Makefile:811: example-service-glue.h] Error 1       
make[3]: Leaving directory '/home/builder/.termux-build/dbus-glib/host-build/dbus/examples'
make[2]: *** [Makefile:1049: all-recursive] Error 1               
make[2]: Leaving directory '/home/builder/.termux-build/dbus-glib/host-build/dbus'                                                  make[1]: *** [Makefile:536: all-recursive] Error 1                make[1]: Leaving directory '/home/builder/.termux-build/dbus-glib/host-build'                                                       
make: *** [Makefile:436: all] Error 2

What steps will reproduce the bug?

Build dbus-glib

What is the expected behavior?

No response

System information

Ubuntu 20.04
Ram 32GB 
Storage 431GB (Free)
Intel xeon gold
RajDave-Dev commented 2 days ago

I've built it on my Ubuntu 20.04 the build was successful but in docker it failes

Biswa96 commented 2 days ago

Are you following the steps from this wiki https://github.com/termux/termux-packages/wiki/Building-packages ?

RajDave-Dev commented 2 days ago

Yes

Biswa96 commented 2 days ago

I can not reproduce the issue in clean termux-package-builder container. Please try to build the package in a clean container. Or you can try to build it in CI by forking this repository.

RajDave-Dev commented 2 days ago

Yeah, I also think so that it's my system problem, and I will try to run that container on other system

licy183 commented 2 days ago

Try passing --security-opt seccomp=unconfined when starting the container and see if it works.

RajDave-Dev commented 1 day ago

Okay, I'll try that as well