This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: Troubles adding coldfire to glibc


I've attempted ot add coldfire support to glibc-2.2.5 so I can get
linux running on the v4e core.  The section about porting int the FAQ
porting indicates that I read the documentation, unfotunately outside
of the manual for the functions, I can't find any documentation on
this. 

Follwing what I saw in sysdeps/m68k, I've created the directories:

sysdeps/coldfire
sysdeps/coldfire/bits
sysdeps/unix/sysv/linux/coldfire

and I've populated them with:

sysdeps/coldfire/Implies (copied from sysdep/m68k)
sysdeps/coldfire/bits/byteswap.h  (copied from sysdeps/m68k/bits)
sysdeps/coldfire/bits/endian.h    (""           "")
sysdeps/coldfire/bits/huge_val.h  (""           "")
sysdeps/coldfire/bits/setjmp.h    (""           "")
sysdepts/unix/sysv/linux/coldfire/bits/fcntl.h (copied from ../../m68k/bits)
sysdepts/unix/sysv/linux/coldfire/bits/mman.h  (""                 "")
sysdepts/unix/sysv/linux/coldfire/bits/poll.h  (""                 "")
sysdepts/unix/sysv/linux/coldfire/bits/resource.h  (""                 "")
sysdepts/unix/sysv/linux/coldfire/bits/stat.h  (""                 "")

I've modified configure to add:

coldfire)	base_machine=coldfire machine=coldfire ;;

I've added 'coldfire' and 'coldfire-*' to scripts/config.sub in the
alias decode.

When I configure it using:

CC=m68k-linux-gcc AR=m68k-linux-ar RANLIB=m68k-linux-ranlib /home/pbarada/work/cvs-wavemark/cross-linux-tools/glibc-2.2.5/configure --host=coldfire-linux --prefix=/tmp/junk/m68k-linux --enable-add-ons=linuxthreads --with-headers=/tmp/junk/m68k-linux/include --enable-hacker-mode --enable-debug-configure

configure succeeds, but make fails on:

make[2]: Entering directory `/home/pbarada/work/cvs-wavemark/cross-linux-tools/glibc-2.2.5/posix'
m68k-linux-gcc ../sysdeps/generic/uname.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g      -I../include -I. -I/home/pbarada/work/cvs-wavemark/cross-linux-tools/obj/junk/m68k-linux/glibc/posix -I.. -I../libio  -I/home/pbarada/work/cvs-wavemark/cross-linux-tools/obj/junk/m68k-linux/glibc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../sysdeps/unix/sysv/linux/coldfire -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 -I../sysdeps/posix -I../sysdeps/coldfire -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem /tmp/junk/lib/gcc-lib/m68k-linux/3.2/include -isystem /tmp/junk/m68k-linux/include -D_LIBC_REENTRANT -include ../inclu!
!
!
de/libc-symbols.h     -o /home/pbarada/work/cvs-wavemark/cross-linux-tools/obj/junk/m68k-linux/glibc/posix/uname.o
../sysdeps/generic/uname.c:25:25: config-name.h: No such file or directory
../sysdeps/generic/uname.c: In function `__uname':
../sysdeps/generic/uname.c:57: `UNAME_SYSNAME' undeclared (first use in this function)
../sysdeps/generic/uname.c:57: (Each undeclared identifier is reported only once
../sysdeps/generic/uname.c:57: for each function it appears in.)
../sysdeps/generic/uname.c:58: `UNAME_RELEASE' undeclared (first use in this function)
../sysdeps/generic/uname.c:59: `UNAME_VERSION' undeclared (first use in this function)
../sysdeps/generic/uname.c:60: `UNAME_MACHINE' undeclared (first use in this function)

And I can't find *anywhere* where a definiton of UNAME is, nor can I
find config-name.h

All suggestions are most appreciated....

-- 
Peter Barada                                   Peter.Barada@motorola.com
Wizard                                         781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola)   781-270-0193 (fax)


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