Programs built using buildroot g++ complier for MIPS32 platform results in segmentation fault

Jayashree Krishnaswamy jkrishnaswamy at merunetworks.com
Thu Dec 15 04:03:19 UTC 2005


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.
 
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:-
    

mips-linux-strip -x -R .note -R .comment utility.o

WRAPPER_INCLUDEDIR=-I../include ../bin/g++-uc -Wall -Wno-trigraphs -pedantic -ansi -Os -mno-split-addresses -fPIC -o valarray.o -c valarray.cpp

In file included from ../include/valarray:26,

from valarray.cpp:20:

../include/cmath: In function `long double std::acos(long double)':

../include/cmath:152: error: `::acosl' undeclared (first use here)

../include/cmath: In function `long double std::asin(long double)':

../include/cmath:160: error: `::asinl' undeclared (first use here)

../include/cmath: In function `long double std::atan(long double)':

../include/cmath:168: error: `::atanl' undeclared (first use here)

../include/cmath: In function `long double std::atan2(long double, long double)

':

../include/cmath:176: error: `::atan2l' undeclared (first use here)

../include/cmath: In function `long double std::ceil(long double)':

../include/cmath:184: error: `::ceill' undeclared (first use here)

../include/cmath: In function `long double std::cosh(long double)':

../include/cmath:202: error: `::coshl' undeclared (first use here)

../include/cmath: In function `long double std::exp(long double)':

../include/cmath:210: error: `::expl' undeclared (first use here)

../include/cmath: In function `long double std::floor(long double)':

../include/cmath:228: error: `::floorl' undeclared (first use here)

../include/cmath: In function `long double std::fmod(long double, long double)

':

../include/cmath:236: error: `::fmodl' undeclared (first use here)

../include/cmath: In function `long double std::frexp(long double, int*)':

../include/cmath:244: error: `::frexpl' undeclared (first use here)

../include/cmath: In function `long double std::ldexp(long double, int)':

../include/cmath:252: error: `::ldexpl' undeclared (first use here)

../include/cmath: In function `long double std::log(long double)':

../include/cmath:260: error: `::logl' undeclared (first use here)

../include/cmath: In function `long double std::log10(long double)':

../include/cmath:268: error: `::log10l' undeclared (first use here)

../include/cmath: In function `long double std::modf(long double, long double*)

':

../include/cmath:276: error: `::modfl' undeclared (first use here)

../include/cmath: In function `long double std::pow(long double, long double)':

../include/cmath:293: error: `::powl' undeclared (first use here)

../include/cmath: In function `long double std::sinh(long double)':

../include/cmath:323: error: `::sinhl' undeclared (first use here)

../include/cmath: In function `long double std::tan(long double)':

../include/cmath:341: error: `::tanl' undeclared (first use here)

../include/cmath: In function `long double std::tanh(long double)':

../include/cmath:349: error: `::tanhl' undeclared (first use here)

make[1]: *** [valarray.o] Error 1

make[1]: Leaving directory `/home/jkrishnaswamy/meru-depot/meru/devel/odmap/src/external/temp/uClibc++/src'

make: *** [all] Error 2

****************************************************************************

Please can somebody tell me how I should proceed? I require to build C++ program for MIPS target.

Thanks very much,

Jayashree

 
 


More information about the uClibc mailing list