QNX6.6 cross-compilation problem

Uri Simchoni uri at samba.org
Fri Feb 14 19:22:15 UTC 2020


That looks like something in Waf or in the Samba configuration scripts
that Waf runs. Waf 2.0.x which is used by Samba 4.11.x has a worker
process pool to carry out build / test jobs, and this pool seems to be
stuck - won't execute a simple compilation command to run a
configuration test.

Which version of Ubuntu are you using exactly? What version of Python?
is it vanilla Samba or did you use patches?

I don't have access to QNX toolchain, but if the problem is with the
Samba build system and the build machine (as it appears to be), then
perhaps we can reproduce this without the specific toolchain.

Thanks,
Uri.

On 14/02/2020 11:17, Nicolas Pinault via samba-technical wrote:
> Hi,
> 
> I'm trying to cross-compile Samba (V4.11.6) for QNX6.6.0.
> For this, I've installed QNX dev tools on Ubuntu in a VMWare virtual
> machine (My PC runs Windows10).
> 
> To cross-compile Samba, the command I run is :
> CC=ntoarmv7-gcc AR=ntoarmv7-ar LD=armv7nto-ld GDB=armv7nto-gdb
> CFLAGS=-I/home/nicolas/qnx660/target/qnx6/usr/include waf configure
> --cross-compile --cross-anwsers=qnx.txt
> 
> I filled the unknown fields in the qnx.txt as requested.
> 
> The configuration runs till it hangs at this step :
> ...
> Checking for pthread_mutexattr_setrobust_np : not found
> Checking for library
> pthread                                                      : no
> Checking for pthread_mutexattr_setrobust_np : not found
> Checking for declaration of
> PTHREAD_MUTEX_ROBUST                                  : not found
> Checking for declaration of PTHREAD_MUTEX_ROBUST (as
> enum)                        :
> 
> Sometimes, configuration hangs one or two steps earlier.
> 
> bin/config.log shows :
> ...
> #include <pthread.h>
> 
>  int main(void) {
>                       return (int)PTHREAD_MUTEX_ROBUST;
>                       ; return 0; }
> 
> <==
> [1/1] Compiling
> bin/.conf_check_c3306603f996021a8dd585a3c7167deb/test.c
> 
> 
> While the configurafion is hung, ps-ax shows the following :
>  8302 pts/0    Sl+    0:08 python3
> /home/nicolas/samba/samba-4.11.6/buildtools/bin/waf configure
> --cross-compile --cross-answers=qnx.txt --jobs=4
>  8304 pts/0    S+     0:00 /usr/local/bin/python3 -c #! /usr/bin/env
> python # encoding: utf-8 # Thomas Nagy, 2016-2018 (ita) log_base_path =
> "/home/nicolas/samba/"  import ...
>  8305 pts/0    S+     0:00 /usr/local/bin/python3 -c #! /usr/bin/env
> python # encoding: utf-8 # Thomas Nagy, 2016-2018 (ita) log_base_path =
> "/home/nicolas/samba/"  import ...
>  8306 pts/0    S+     0:00 /usr/local/bin/python3 -c #! /usr/bin/env
> python # encoding: utf-8 # Thomas Nagy, 2016-2018 (ita) log_base_path =
> "/home/nicolas/samba/"  import ...
>  8307 pts/0    S+     0:00 /usr/local/bin/python3 -c #! /usr/bin/env
> python # encoding: utf-8 # Thomas Nagy, 2016-2018 (ita) log_base_path =
> "/home/nicolas/samba/"  import ...
> 
> 
> When I comment out "Mutext Robust" tests, the configuration hangs much
> further. But it hangs.
> 
> As I thought it might be a concurrency problem, I tried with --jobs=1
> option.
> This does not work at all. Exceptions are generated at the very
> beginning of the process.
> 
> 
> I also tried using --cross-execute option. Same problem.
> 
> 
> I spent days on this problem, trying different things but I'm stuck at
> this problem.
> 
> Any pointers ?
> 
> Regards,
> Nicolas
> 




More information about the samba-technical mailing list