[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] cross-compile the stack with arm-linux-gcc



Dear all,

    I am interested in porting the Axis stack to iPAQ. I am now trying to 
cross-compile the stack with arm-linux-gcc. The arm kernel i used is 2.4.15.

    However, I have some problems in comppiling the stack. It shows that ": 
relocation truncated to fit: R_ARM_PC24 __get_unaligned". What is the happen 
when compiling the stack???

Regards,
Tim


[root@pcoptofyp2 openbt]# export CC=/skiff/local/bin/arm-linux-gcc
[root@pcoptofyp2 openbt]# export LD=/skiff/local/bin/arm-linux-ld
[root@pcoptofyp2 openbt]# make
make -C linux/drivers/char/bluetooth
make[1]: Entering directory 
`/root/OPENBT_ARM/openbt/linux/drivers/char/bluetooth'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/root/OPENBT_ARM/openbt/linux/drivers/char/bluetooth'
make -C libs install
make[1]: Entering directory `/root/OPENBT_ARM/openbt/libs'
Making install in expat for host
make[2]: Entering directory `/root/OPENBT_ARM/openbt/libs/expat'
Making install in xmltok for host
make[3]: Entering directory `/root/OPENBT_ARM/openbt/libs/expat/xmltok'
install -d /root/OPENBT_ARM/openbt/target/host/lib
install -d /root/OPENBT_ARM/openbt/target/host/include
install -m 0644 libxmltok.a /root/OPENBT_ARM/openbt/target/host/lib/
install -m 0644 xmltok.h /root/OPENBT_ARM/openbt/target/host/include/
make[3]: Leaving directory `/root/OPENBT_ARM/openbt/libs/expat/xmltok'
Making install in xmlparse for host
make[3]: Entering directory `/root/OPENBT_ARM/openbt/libs/expat/xmlparse'
install -d /root/OPENBT_ARM/openbt/target/host/lib
install -d /root/OPENBT_ARM/openbt/target/host/include
install -m 0644 libxmlparse.a /root/OPENBT_ARM/openbt/target/host/lib/
install -m 0644 xmlparse.h /root/OPENBT_ARM/openbt/target/host/include/
make[3]: Leaving directory `/root/OPENBT_ARM/openbt/libs/expat/xmlparse'
make[2]: Leaving directory `/root/OPENBT_ARM/openbt/libs/expat'
make[1]: Leaving directory `/root/OPENBT_ARM/openbt/libs'
make -C apps/bluetooth/userstack links
make[1]: Entering directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/userstack'
make[1]: Leaving directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/userstack'
make -C apps/bluetooth
make[1]: Entering directory `/root/OPENBT_ARM/openbt/apps/bluetooth'
Making all in experimental for host
make[2]: Entering directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/experimental'
make[2]: Leaving directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/experimental'
Making all in sdp_server for host
make[2]: Entering directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/sdp_server'
make[2]: Leaving directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/sdp_server'
Making all in userstack for host
make[2]: Entering directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/userstack'
/skiff/local/bin/arm-linux-gcc  -pthread  btd.o btdebug.o btmem.o hci.o 
l2cap.o l2cap_con.o rfcomm.o sdp.o tcs.o test.o bt_proc.o hci_vendor.o 
sec_client.o l2cap_sec.o rfcomm_sec.o -lutil  -o btduser
hci.o: In function `hci_receive_data':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:465: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:465: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
hci.o: In function `update_ncp':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:729: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:729: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
hci.o: In function `process_event':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1046: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1046: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1046: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1046: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1049: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1049: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
hci.o:/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1049: more 
undefined references to `__get_unaligned' follow
hci.o: In function `process_event':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1049: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
hci.o: In function `process_return_param':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1166: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1267: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1269: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1271: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1294: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1524: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1526: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:1527: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
hci.o: In function `set_acl_hdr':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:3528: undefined 
reference to `__put_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:3528: relocation 
truncated to fit: R_ARM_PC24 __put_unaligned
hci.o: In function `hci_handle':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:3534: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/hci.c:3534: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
l2cap.o: In function `l2cap_receive_data':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/l2cap.c:595: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/l2cap.c:595: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
rfcomm.o: In function `process_mcc':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/rfcomm.c:1597: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/rfcomm.c:1597: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/rfcomm.c:1628: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/rfcomm.c:1628: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
rfcomm.o: In function `send_pn_msg':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/rfcomm.c:2286: undefined 
reference to `__put_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/rfcomm.c:2286: relocation 
truncated to fit: R_ARM_PC24 __put_unaligned
sdp.o: In function `sdp_receive_data':
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/sdp.c:803: undefined 
reference to `__get_unaligned'
/root/OPENBT_ARM/openbt/apps/bluetooth/userstack/sdp.c:803: relocation 
truncated to fit: R_ARM_PC24 __get_unaligned
collect2: ld returned 1 exit status
make[3]: *** [btduser] Error 1
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/root/OPENBT_ARM/openbt/apps/bluetooth/userstack'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/root/OPENBT_ARM/openbt/apps/bluetooth'
make: *** [all] Error 2
[root@pcoptofyp2 openbt]#



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com