Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to build IOZONE tool on QNX SDP7.1: (3 Items)
   
How to build IOZONE tool on QNX SDP7.1  
Hi All,

I want to build IOZONE tool for QNX OS systems.

I have tried to build the tool on QNX momentics IDE but facing some build errors as below :


C:\iozone\iozone3_506\src\current>make qnx
which: no ndk-build in (/cygdrive/c/QNX/QNX_Momentics_IDE_2/features/com.qnx.tools.jre.win32.x86_64_11.0.10/jdk-11.0.10+
9-jre/bin/server:/cygdrive/c/QNX/QNX_Momentics_IDE_2/features/com.qnx.tools.jre.win32.x86_64_11.0.10/jdk-11
.0.10+9-jre/bin:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS:/cygdrive/c/Program 
Files/Intel/Intel(R) Management Engine Components/iCLS:/cygdrive/c/windows/system32:/cygdrive/c/windows:/cygdr
ive/c/windows/System32/Wbem:/cygdrive/c/windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/windows/System32/OpenSSH:/
cygdrive/c/Users/ssdrive/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Python27:/cygdrive/c/Python27/Script
s:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/
Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Compon
ents/IPT:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/ProgramData/chocolatey/
bin:/usr/bin:/cygdrive/c/Windows/System32/drivers:/cygdrive/c/Users/ssdrive/AppData/Local/Microsoft/WindowsAp
ps:/cygdrive/c/Users/ssdrive/Downloads/MinGW:/cygdrive/c/QNX/QNX_Momentics_IDE_2)

Build iozone for QNX

cc -c -O  -DNAME='"qnx"' -DHAVE_ANSIC_C -D_FILE_OFFSET_BITS=64 -DASYNC_IO  iozone.c -o iozone_qnx.o
make: cc: No such file or directory
make: *** [makefile:1568: iozone_qnx.o] Error 127


Need some suggestions on building the tool.

Regards,
Re: How to build IOZONE tool on QNX SDP7.1  
> Hi All,
> 
> I want to build IOZONE tool for QNX OS systems.
> 
> I have tried to build the tool on QNX momentics IDE but facing some build 
> errors as below :
> 
> 
> C:\iozone\iozone3_506\src\current>make qnx
> which: no ndk-build in (/cygdrive/c/QNX/QNX_Momentics_IDE_2/features/com.qnx.
> tools.jre.win32.x86_64_11.0.10/jdk-11.0.10+9-jre/bin/server:/cygdrive/c/QNX/
> QNX_Momentics_IDE_2/features/com.qnx.tools.jre.win32.x86_64_11.0.10/jdk-11
> .0.10+9-jre/bin:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management 
> Engine Components/iCLS:/cygdrive/c/Program Files/Intel/Intel(R) Management 
> Engine Components/iCLS:/cygdrive/c/windows/system32:/cygdrive/c/windows:/cygdr
> 
> ive/c/windows/System32/Wbem:/cygdrive/c/windows/System32/WindowsPowerShell/v1.
> 0:/cygdrive/c/windows/System32/OpenSSH:/cygdrive/c/Users/ssdrive/AppData/Local
> /Microsoft/WindowsApps:/cygdrive/c/Python27:/cygdrive/c/Python27/Script
> s:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/
> DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:
> /cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Compon
> ents/IPT:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components
> /IPT:/cygdrive/c/ProgramData/chocolatey/bin:/usr/bin:/cygdrive/c/Windows/
> System32/drivers:/cygdrive/c/Users/ssdrive/AppData/Local/Microsoft/WindowsAp
> ps:/cygdrive/c/Users/ssdrive/Downloads/MinGW:/cygdrive/c/QNX/
> QNX_Momentics_IDE_2)
> 
> Build iozone for QNX
> 
> cc -c -O  -DNAME='"qnx"' -DHAVE_ANSIC_C -D_FILE_OFFSET_BITS=64 -DASYNC_IO  
> iozone.c -o iozone_qnx.o
> make: cc: No such file or directory
> make: *** [makefile:1568: iozone_qnx.o] Error 127
> 
> 
> Need some suggestions on building the tool.
> 
Makefile :

iozone_qnx.o:	iozone.c libbif.c  libasync.c
	@echo ""
	@echo "Build iozone for QNX"
	@echo ""
	$(CC) -c -O  -DNAME='"qnx"' -DHAVE_ANSIC_C -D_FILE_OFFSET_BITS=64 -DASYNC_IO $(CFLAGS) iozone.c -o iozone_qnx.o
	$(CC) -c -O -DHAVE_ANSIC_C -D_FILE_OFFSET_BITS=64 -DASYNC_IO  $(CFLAGS) libbif.c -o libbif.o
	$(CC) -c -O  -DNAME='"qnx"' -DHAVE_ANSIC_C -D_FILE_OFFSET_BITS=64 -DASYNC_IO $(CFLAGS) libasync.c -o libasync.o

fileop_qnx.o:	fileop.c
	@echo ""
	@echo "Building fileop for QNX"
	@echo ""
	$(CC) -Wall -c -O $(CFLAGS) -D_FILE_OFFSET_BITS=64 fileop.c -o fileop_qnx.o

qnx:	iozone_qnx.o libbif.o libasync.o fileop_qnx.o pit_server.o
	$(CC) -O $(LDFLAGS) iozone_qnx.o libbif.o libasync.o -o iozone
	$(CC)  -O fileop_qnx.o -o fileop
	$(CC)  -O pit_server.o -o pit_server

> Regards,


Re: How to build IOZONE tool on QNX SDP7.1  
I have made changes in the make file for some qnx related defines .
Still i am facing errors as below :

11:35:28 **** Incremental Build of configuration Debug for project current ****
Info: Internal Builder is used for build
qcc -o libasync.o "..\\libasync.c" -V8.3.0,gcc_ntoaarch64le -c -O0 -g 
..\libasync.c: In function 'async_init':
..\libasync.c:283:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   exit(174);
   ^~~~
..\libasync.c:283:3: warning: incompatible implicit declaration of built-in function 'exit'
..\libasync.c:283:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
..\libasync.c:116:1:
+#include <stdlib.h>
 #endif
..\libasync.c:283:3:
   exit(174);
   ^~~~
..\libasync.c:285:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  bzero(*gc,sizeof(struct cache));
  ^~~~~
..\libasync.c:285:2: warning: incompatible implicit declaration of built-in function 'bzero'
..\libasync.c: In function 'end_async':
..\libasync.c:306:2: warning: implicit declaration of function 'del_cache'; did you mean 'incache'? [-Wimplicit-function
-declaration]
  del_cache(mygc);
  ^~~~~~~~~
  incache
..\libasync.c: In function 'async_read':
..\libasync.c:436:3: warning: implicit declaration of function 'takeoff_cache'; did you mean 'alloc_cache'? [-Wimplicit-
function-declaration]
   takeoff_cache(gc,ce);
   ^~~~~~~~~~~~~
   alloc_cache
..\libasync.c: In function 'alloc_cache':
..\libasync.c:545:3: warning: incompatible implicit declaration of built-in function 'exit'
   exit(175);
   ^~~~
..\libasync.c:545:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
..\libasync.c:547:2: warning: incompatible implicit declaration of built-in function 'bzero'
  bzero(ce,sizeof(struct cache_ent));
  ^~~~~
..\libasync.c:554:3: warning: incompatible implicit declaration of built-in function 'exit'
   exit(1);
   ^~~~
..\libasync.c:554:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
..\libasync.c:563:3: warning: incompatible implicit declaration of built-in function 'exit'
   exit(176);
   ^~~~
..\libasync.c:563:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
..\libasync.c: At top level:
..\libasync.c:622:1: warning: conflicting types for 'takeoff_cache'
 takeoff_cache(struct cache *gc, struct cache_ent *ce)
 ^~~~~~~~~~~~~
..\libasync.c:436:3: note: previous implicit declaration of 'takeoff_cache' was here
   takeoff_cache(gc,ce);
   ^~~~~~~~~~~~~
..\libasync.c:696:1: warning: conflicting types for 'del_cache'
 del_cache(gc)
 ^~~~~~~~~
..\libasync.c:306:2: note: previous implicit declaration of 'del_cache' was here
  del_cache(mygc);
  ^~~~~~~~~
..\libasync.c: In function 'async_read_no_copy':
..\libasync.c:799:4: warning: incompatible implicit declaration of built-in function 'exit'
    exit(1);
    ^~~~
..\libasync.c:799:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
..\libasync.c:819:3: warning: implicit declaration of function 'putoninuse' [-Wimplicit-function-declaration]
   putoninuse(gc,ce);
   ^~~~~~~~~~
..\libasync.c:960:4: warning: incompatible implicit declaration of built-in function 'exit'
    exit(1);
    ^~~~
..\libasync.c:960:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
..\libasync.c: In function 'async_release':
..\libasync.c:986:2: warning: implicit declaration of function 'takeoffinuse'; did you mean 'takeoff_cache'? [-Wimplicit
-function-declaration]
  takeoffinuse(gc);
  ^~~~~~~~~~~~
  takeoff_cache
..\libasync.c: At top level:
..\libasync.c:1000:1: warning: conflicting types for 'putoninuse'
 putoninuse(gc,entry)
 ^~~~~~~~~~
..\libasync.c:819:3: note: previous implicit declaration of 'putoninuse' was here
   putoninuse(gc,ce);
   ^~~~~~~~~~
..\libasync.c:1021:1: warning: conflicting types for 'takeoffinuse'
 takeoffinuse(gc)
...
View Full Message