cross compiling bluez 2.16 for arm (Zaurus)
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 6 lines · On 2005-05-05 at 20:22:13 Guylhem Aznar wrote:
arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..
(quoted diff) +0
-2-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 instructionrorw $8,r4' /tmp/ccsosFZV.s:1094: Error: bad instructionrorl $16,r4'
Quoted 8 lines
/tmp/ccsosFZV.s:1094: Error: bad instructionrorw $8,r4' /tmp/ccsosFZV.s:1096: Error: bad instructionrorw $8,r3'/tmp/ccsosFZV.s:1099: Error: bad instructionrorw $8,r2' /tmp/ccsosFZV.s:1102: Error: bad instructionrorw $8,r3'/tmp/ccsosFZV.s:1105: Error: bad instructionrorw $8,r2' /tmp/ccsosFZV.s:1105: Error: bad instructionrorl $16,r2'/tmp/ccsosFZV.s:1105: Error: bad instructionrorw $8,r2' /tmp/ccsosFZV.s:1108: Error: bad instructionrorw $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.
Quoted 3 lines · Dimitry Andric
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel