Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Character DDK compilation: (3 Items)
   
Character DDK compilation  
Hello. I'm trying to build devc-ser8250 driver from the Character DDK sources, but the size of the compiled driver(59,
249 bytes) is different from the native one(46,632 bytes) located in '/sbin' directory.

Here is compilation output:
Code:

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/
externs.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/init
.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/intr
.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/main
.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/
options.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/x86/
query_defdev.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/x86/
sys_ttyinit.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc -I/
tmp/src/hardware/devc/public -I/usr/qnx632/target/qnx6/usr/include -DVARIANT_ser8250 /tmp/src/hardware/devc/ser8250/tto.
c

/bin/rm -f /tmp/src/hardware/devc/ser8250/x86/o/devc-ser8250

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -o/tmp/src/hardware/devc/ser8250/x86/o/devc-ser8250 externs.o init.o 
intr.o main.o options.o query_defdev.o sys_ttyinit.o tto.o -L. -L/usr/qnx632/target/qnx6/x86/lib -L/usr/qnx632/target/
qnx6/x86/usr/lib -lio-char -lpm -lps

/usr/qnx632/host/qnx6/x86/usr/bin/usemsg -s __USAGENTO -s __USAGE -iVERSION -iTAGID -iDESCRIPTION -f devc-ser8250.pinfo 
/tmp/src/hardware/devc/ser8250/x86/o/devc-ser8250 /tmp/src/hardware/devc/ser8250/options.c

/usr/qnx632/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/tmp/src/hardware
/devc/ser8250/x86/o -I/tmp/src/hardware/devc/ser8250/x86 -I/tmp/src/hardware/devc/ser8250 -I/tmp/src/hardware/devc...
View Full Message
Re: Character DDK compilation  
> Hello. I'm trying to build devc-ser8250 driver from the Character DDK sources,
>  but the size of the compiled driver(59,249 bytes) is different from the 
> native one(46,632 bytes) located in '/sbin' directory.
> 
...
....
...
> 
> 
> Any thoughts? Thanks in advance.

Does Your driver work for You ?
Maybe it is stripping issue? So what does the file utility report ?:

/root# ls -l /sbin/devc-ser8250
-rwxrwxr-x  1 root      root          46632 Sep 07  2007 /sbin/devc-ser8250

/root# file  /sbin/devc-ser8250
/sbin/devc-ser8250: ELF 32-bit LSB executable, Intel 80386, version 1, dynamica lly linked (uses shared libs), stripped
/root# 

If it is not stripped You can strp it with 
/usr/qnx632/host/qnx6/x86/usr/bin/strip if present.

Hope this helps.
Jeevan

Re: Character DDK compilation  
Thank you very much, Jeevan! This helped me.