bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem when building glibc for linux-sh...


From: Prabhakar Kalasani
Subject: Problem when building glibc for linux-sh...
Date: Wed, 4 Jun 2003 17:56:11 -0000

Hi all

I am trying to build the linuxsh for sh3 target with the following ,

binutils-2.13.90.0.18
gcc-3.2.3
glibc-2.2.5

Binutils, gcc were successfully built for the target.

Patched like this....

$ tar -xvzf glibc-2.2.5.tar.gz
$ tar -zxvf glibc-linuxthreads-2.2.5.tar.gz
$ cd glibc-2.2.5
$ patch -p1 < ../glibc_2.2.5-1.0.diff

$ patch -p1 < ../glibc-2.2.5-sh_dl-machine.patch
$ patch -p1 < ../glibc-2.2.5-pread_pwrite-sh-linux.patch    
$ patch -p1 < ../glibc-2.2.5-fpscr_values.patch
$ patch -p1 < ../glibc-2.2-sh-netinet.patch

Configured like this...

$ cd /home/vipin/LatestToolchain/SOURCES/glibc-2.2.5
$ vi configparms

CFLAGS := -ml -m3 -O $(CFLAGS)
ASFLAGS-.o := -ml
LDFLAGS-relocatable := -ml
crts-predefined=yes
build-programs=no
CC=sh3-linux-gcc -ml -m3
RANLIB=sh3-linux-ranlib
AS=sh3-linux-gcc -ml
LD=sh3-linux-ld -ml
AR=sh3-linux-ar
BUILD_CC=gcc

$ CC="sh3-linux-gcc -ml -m3" ../glibc-2.2.5/configure -host=sh3-linux 
--build=`arch`-linux --disable-debug --disable-profile 
--with-headers=/home/vipin/linux-sh/include/ 
--prefix=/home/vipin/LatestToolchain/kp/  --enable-add-ons  
--disable-sanity-checks 

$ make

But while doing "make" in glibc I am getting the following error like...


sh3-linux-gcc -ml syslog.c -c -O2 -Wall -Winline -Wstrict-prototypes =
-Wwrite-strings      -I../include -I. =
-I/home/kpit/linuxsh-2.5.9/build-glibc-2.2.5-3/misc -I.. -I../libio  =
-I/home/kpit/linuxsh-2.5.9/build-glibc-2.2.5-3 -I../sysdeps/sh/elf =
-I../sysdeps/unix/sysv/linux/sh/sh3 -I../sysdeps/unix/sysv/linux/sh =
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common =
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv =
-I../sysdeps/unix/sh -I../sysdeps/unix -I../sysdeps/posix =
-I../sysdeps/sh/sh3 -I../sysdeps/sh -I../sysdeps/wordsize-32 =
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 =
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic  =
-nostdinc -isystem =
/usr/linuxsh-2.5.9/bin/../lib/gcc-lib/sh3-linux/3.0.3/include -isystem =
/usr/linuxsh-2.5.9/sh3-linux/include  -include ../include/libc-symbols.h =
    -o /home/kpit/linuxsh-2.5.9/build-glibc-2.2.5-3/misc/syslog.o
syslog.c: In function `vsyslog':
syslog.c:219: `cancel_handler' undeclared (first use in this function)
syslog.c:219: (Each undeclared identifier is reported only once
syslog.c:219: for each function it appears in.)
syslog.c:219: warning: type defaults to `int' in declaration of =
`__save_FCT'
syslog.c:272: called object is not a function
syslog.c: In function `openlog':
syslog.c:330: parse error before ')' token
syslog.c:330: `__save_FCT' undeclared (first use in this function)
syslog.c:330: parse error before ')' token
syslog.c:338: `__save_ARG' undeclared (first use in this function)
syslog.c: In function `closelog':
syslog.c:362: parse error before ')' token
syslog.c:362: `__save_FCT' undeclared (first use in this function)
syslog.c:362: parse error before ')' token
syslog.c:372: `__save_ARG' undeclared (first use in this function)
make[2]: *** =
[/home/kpit/linuxsh-2.5.9/build-glibc-2.2.5-3/misc/syslog.o] Error 1
make[2]: Leaving directory =
`/home/kpit/fsfsrc/glibc-2.2.5-3-linuxsh/glibc-2.2.5/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory =
`/home/kpit/fsfsrc/glibc-2.2.5-3-linuxsh/glibc-2.2.5'
make: *** [all] Error 2

Please guide me on this
Thanks in advance.

Prabhakar Kalasani
ConteshSoftwarte Ltd.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]