Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-devel] cross compiling bluez 2.16 for arm (Zaurus)
@ 2005-05-05 18:22 Guylhem Aznar
  2005-05-06  8:30 ` Dimitry Andric
  0 siblings, 1 reply; 3+ messages in thread
From: Guylhem Aznar @ 2005-05-05 18:22 UTC (permalink / raw)
  To: bluez-devel; +Cc: steve.crane

Hello

While trying to compile 2.16 utils to provide newer packages for
fellow Zaurus users, I got the following error:

arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/home/guylhem/bluez-libs-2.16//include  -I/usr/include -Wall -O2 -c `test -f 'sdptool.c' || echo './'`sdptool.c
/tmp/ccsosFZV.s: Assembler messages:
/tmp/ccsosFZV.s:1094: Error: bad instruction `rorw $8,r4'
/tmp/ccsosFZV.s:1094: Error: bad instruction `rorl $16,r4'
/tmp/ccsosFZV.s:1094: Error: bad instruction `rorw $8,r4'
/tmp/ccsosFZV.s:1096: Error: bad instruction `rorw $8,r3'
/tmp/ccsosFZV.s:1099: Error: bad instruction `rorw $8,r2'
/tmp/ccsosFZV.s:1102: Error: bad instruction `rorw $8,r3'
/tmp/ccsosFZV.s:1105: Error: bad instruction `rorw $8,r2'
/tmp/ccsosFZV.s:1105: Error: bad instruction `rorl $16,r2'
/tmp/ccsosFZV.s:1105: Error: bad instruction `rorw $8,r2'
/tmp/ccsosFZV.s:1108: Error: bad instruction `rorw $8,r3'

This should mean x86 asm sneaked in. However I could not find any.

So I commented out this part. Went fine for a while when I got:

/bin/sh ../libtool --mode=link arm-linux-gcc -I/home/guylhem/bluez-libs-2.16//include  -I/usr/include -Wall -O2   -o hciconfig  hciconfig.o csr.o -L/home/guylhem/bluez-libs-2.16//lib -lbluetooth -L/home/guylhem/bluez-libs-2.16/lib -lbluetooth
arm-linux-gcc -I/home/guylhem/bluez-libs-2.16//include -I/usr/include -Wall -O2 -o hciconfig hciconfig.o csr.o  -L/home/guylhem/bluez-libs-2.16//lib -L/home/guylhem/bluez-libs-2.16/lib -lbluetooth
hciconfig.o: In function `cmd_name':
hciconfig.o(.text+0x10ac): undefined reference to `__ctype_b_loc'
collect2: ld returned 1 exit status
make: *** [hciconfig] Error 1

This is due to an old bug (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91290) - I recommand removing ctype.h include to fix that one.

I'm using:
export PATH=/opt/Embedix/tools/bin/:$PATH
for libs:
./configure --host=arm-linux
for utils:
./configure --host=arm-linux  --with-bluez=/home/guylhem/bluez-libs-2.16

and the Embedix tools from http://externe.net/zaurus/sdk/ (gcc 2.95 is the only one binary compatible with the zaurus default rom)

Any clue for sdptool ?

Guylhem


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-06 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-05 18:22 [Bluez-devel] cross compiling bluez 2.16 for arm (Zaurus) Guylhem Aznar
2005-05-06  8:30 ` Dimitry Andric
2005-05-06 22:06   ` Guylhem Aznar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox