This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FW: Error while cross-compiling glibc for sh-linux target


Hi,

I am trying to build a cross compiler toolchain for sh-linux-gcc (not
for sh4-linux-gcc).

I am getting the following error while compiling glibc-2.5 (after
successful built of bootstrap GCC).

make[2]: *** No rule to make target 
`/home/shlinux/sh-linux/new/build/build-glibc/m4/ucontext_i.h', needed
by `/home/shlinux/sh-linux/new/build/build-glibc/m4/stdlib/atof.o'.
Stop.
make[2]: Leaving directory `/home/shlinux/sh-linux/src/glibc-2.5/stdlib'
make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory `/home/shlinux/sh-linux/src/glibc-2.5'
make: *** [lib] Error 2

The configuration used is,

    BUILD_CC=gcc CFLAGS=" -O2 " \
    CC="sh-linux-gcc -m4 " \
    AR=sh-linux-ar RANLIB=sh-linux-ranlib \
    ${GLIBCSRCDIR}/configure \
	--build=i686-linux --host=sh-linux --prefix=/usr/lib \
	--enable-kernel=2.6.0 --enable-static --disable-profile \
	--disable-debug --with-headers=${HEADERS_DIR} --with-tls \
	--with-__thread --without-cvs --libdir=/usr/lib --without-gd \
	--without-fp --enable-add-ons=nptl

make LD=sh-linux-ld RANLIB=sh-linux-ranlib lib

The same configuration works fine when target is selected as 'sh4-linux'
instead of 'sh-linux'. Also, there is no 'ucontext_i.h' in glibc sources
for SH target.

Please guide me how to proceed further.

Regards,
Nupur Jain
KPIT Cummins Infosystems Ltd,
Pune (INDIA)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~ 

Free download of GNU based SH-Linux toolchains for Renesas' SH 
Series.          
The following site also offers free technical support to its 
users.             
Visit http://www.kpitgnutools.com for details.

Latest versions of KPIT GNU SH-Linux tools were released on April 5, 
2007.      
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]