Quoth Chiang Kang Tan:
> Hi all,
> 
> I'm trying to cross compile a simple helloworld C++ program onto my xscale 
router board. So far I've no problem cross compiling C programs to run on my 
router board. But once I try to run C++ programs on the router board, that 
is "successfully" cross compiled, I receive this "Illegal instruction" error. 
I've spent a fair bit of time trawling the Internet but nobody seems to be 
reporting having this problem. So hopefully this is just a simple error I've 
overlooked that someone on this mailing list can point me to the right 
direction to get me started on how to cross compile C++ programs for OpenWrt. 
> 
> FYI, I'm using the OpenWrt-SDK-ixp4xx-2.6-for-Linux-i686 SDK to do the cross 
compiling and I have been following this tutorial, 
http://www.gargoyle-router.com/openwrt-coding.html, with success up till this 
point.
> 
> Thank you in advance.
> 
> Regards,
> 
> Chiang

Looks like GCC is targeting the wrong cpu OR your C++ program has some inline 
asm. (I'd look for the inline asm first.)

Regards,
-- 
Conrad Meyer <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to