linux-bluetooth.vger.kernel.org archive mirror
 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

* Re: [Bluez-devel] cross compiling bluez 2.16 for arm (Zaurus)
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Dimitry Andric @ 2005-05-06  8:30 UTC (permalink / raw)
  To: Guylhem Aznar; +Cc: bluez-devel, steve.crane

[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]

On 2005-05-05 at 20:22:13 Guylhem Aznar wrote:

> 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 usually means there's something wrong with your toolchain.
Please run exactly the same command line, but then with the "-v"
option to arm-linux-gcc, and mail us the output.

[-- Attachment #2: Type: application/pgp-signature, Size: 183 bytes --]

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

* Re: [Bluez-devel] cross compiling bluez 2.16 for arm (Zaurus)
  2005-05-06  8:30 ` Dimitry Andric
@ 2005-05-06 22:06   ` Guylhem Aznar
  0 siblings, 0 replies; 3+ messages in thread
From: Guylhem Aznar @ 2005-05-06 22:06 UTC (permalink / raw)
  To: Dimitry Andric; +Cc: bluez-devel, steve.crane

On Friday,  6 May 2005 at 10:30:36 (+0200), Dimitry Andric wrote:
> This usually means there's something wrong with your toolchain.
> Please run exactly the same command line, but then with the "-v"
> option to arm-linux-gcc, and mail us the output.

Seems normal to me. And it could compile everything else. IMHO it's
more likely a problem with sdptool.

Reading specs from /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/cpp -lang-c -v -I. -I. -=
I.. -I/home/guylhem/bluez-libs-2.16//include -I/usr/include -D__GNUC__=3D=
2 -D__GNUC_MINOR__=3D95 -Dunix -Darm -Dlinux -D__ELF__ -Darm_elf -D__unix=
__ -D__arm__ -D__linux__ -D__ELF__ -D__arm_elf__ -D__unix -D__arm -D__lin=
ux -D__arm_elf -Asystem(unix) -Asystem(posix) -Acpu(arm) -Amachine(arm) -=
D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -Wall -D__ARM_ARCH_4__ -D__APCS_32__ -D=
HAVE_CONFIG_H sdptool.c /tmp/ccHeRuYo.i
GNU CPP version 2.95.2 19991024 (release) (ARM GNU/Linux with ELF)
#include "..." search starts here:
#include <...> search starts here:
 .
 ..
 /home/guylhem/bluez-libs-2.16/include
 /usr/include
 /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/include
 /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/in=
clude
End of search list.
The following default directories have been omitted from the search path:
 /opt/Embedix/tools/arm-linux/include/g++-3
 /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/sy=
s-include
End of omitted list.
 /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/cc1 /tmp/ccHeRuYo.i -qui=
et -dumpbase sdptool.c -O2 -Wall -version -o /tmp/ccwaDwHF.s
GNU C version 2.95.2 19991024 (release) (arm-linux) compiled by GNU C ver=
sion 2.95.3 20010315 (release).
 /opt/Embedix/tools/arm-linux/bin/as -o sdptool.o /tmp/ccwaDwHF.s
/tmp/ccwaDwHF.s: Assembler messages:
/tmp/ccwaDwHF.s:1094: Error: bad instruction `rorw $8,r4'
/tmp/ccwaDwHF.s:1094: Error: bad instruction `rorl $16,r4'
/tmp/ccwaDwHF.s:1094: Error: bad instruction `rorw $8,r4'
/tmp/ccwaDwHF.s:1096: Error: bad instruction `rorw $8,r3'
/tmp/ccwaDwHF.s:1099: Error: bad instruction `rorw $8,r2'
/tmp/ccwaDwHF.s:1102: Error: bad instruction `rorw $8,r3'
/tmp/ccwaDwHF.s:1105: Error: bad instruction `rorw $8,r2'
/tmp/ccwaDwHF.s:1105: Error: bad instruction `rorl $16,r2'
/tmp/ccwaDwHF.s:1105: Error: bad instruction `rorw $8,r2'
/tmp/ccwaDwHF.s:1108: Error: bad instruction `rorw $8,r3'

--=20
Bien =E0 vous - Best regards,
Guylhem P. Aznar

--=20
*@externe.net                                            http://externe.n=
et
P=E9rim=E9/Deprecated:    @oeil.qc.ca, @metalab.unc.edu, @ibiblio.org, @7=
un.org
GPG: 92EB37C1 DD11C9C9 20519D01 E8FA1B11 42975AF7 http://externe.net/pubk=
ey


-------------------------------------------------------
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;
as well as URLs for NNTP newsgroup(s).