Programs built using buildroot g++ complier for MIPS32 platform results in segmentation fault
Garrett Kajmowicz
gkajmowi at tbaytel.net
Thu Dec 15 05:04:41 UTC 2005
On December 14, 2005 11:03 pm, Jayashree Krishnaswamy wrote:
> Hi,
> 1) I downloaded buildroot snapshot from uclibc.org.
> Was able to successfully build g++/gcc 3.3.5 cross compiler for MIPS32
> target running linux 2.4.25. I wrote a small program cout << "Hello World"
> and tried to build it using g++ compiler. The build was successful, but the
> program crashed on the MIPS target with segmentation fault.
I'm glad to hear that you were able to get the library installed. However,
I'm nervous about segfaults on your flatform.
> 2) I also downloaded uClibc++-0.1.12.tbz2 as it had support for MIPS
> platform. I followed the instructions in INSTALL document to build
> uClibc++. I was unable to build uClibc++ , found compile errors as
> mentioned below:-
<snip>
What I find interesting is that all of the functions that you are building
against with which you are having problems use double. All of the undefined
functions should be part of the C or POSIX spec. Is it possible that they
are unimplemented on your platform? The include of math.h by <cmath> should
provide the required functionality.
The implementation of <cmath> is largely a copy of the GNU cmath header as it
deals with glibc specific issues. Perhaps I'll rewrite that myself, but I
doubt that will help much. The functions which are being complained about
are supposed to be exported by the C library (as opposed to the float
wrappers for double data types).
Can somebody else on the list answer if uClibc support full double precision
math on MIPS?
Unfortunately, I do not personally have the facilities with which to test
uClibc++ on MIPS - I only have a x86 machine. Somebody once tested it and
told me that it worked, so I've listed it in the arch list for testing
purposes.
- Garrett
More information about the uClibc
mailing list