[uClibc]native c++ 3.1.1 toolchain: fault-common.c 242 Bus Error

Bob Cheng hdrhg at hotmail.com
Tue Aug 13 06:40:03 UTC 2002


Hi Erik:

  I always get "fault-common.c 242 Bus Error" when I run my helloworldcpp 
code on the uClinux 2.4.6(arm940tdmi), even I tried to compile my 
helloworldcpp.cpp using the newest uClibc-0.9.14 and native g++ 3.1.1 
toolchain. This error message seems to be generated by __do_page_fault() 
function in kernel source file linux/arch/armnommu/mm/fault-common.c

I even tried to remove the 'cout << "Hello World C++"' line. I still get the 
same bus error for an empty main() program.

Could you give me some hints to trace the cause of this problem? Thanks!

p.s.

(1) my helloworldcpp.cpp:

#include <iostream.h>

main()
{
        cout << "Hello World C++\n";
}

(2) how do I compile helloworldcpp.cpp:

[bob at voip test]$ /home/bob/gcc-3.1.1/toolchain/bin/arm-uclibc-g++ -elf2flt 
hello
worldcpp.cpp -o helloworldcpp


Sincerely,
Bob Cheng



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




More information about the uClibc mailing list