QNX6.6 cross-compilation problem
Nicolas Pinault
nicolasp at aaton.com
Fri Feb 14 09:17:17 UTC 2020
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
[32mbin/.conf_check_c3306603f996021a8dd585a3c7167deb/test.c[0m
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