[uClibc] Where to get patches

Rudolf Ladyzhenskii Rudolf.ladyzhenskii at opennw.com
Fri Jul 30 01:40:40 UTC 2004


HI, me again,

Have used latest snapshot -- still same problem.
As I said earlier -- toolchain is built separately from uClibc.

I have found following link describing problem in SH architecture.
http://www.uclibc.org/lists/uclibc-cvs/2004-April/004510.html

This describes some patches to uClibc to overcome problem I have with gcc 3.4 

I am "cross-compiling" on i686 host to i386 target. Attempt to modify header file for i386 target in same way as for SH target created other errors.

Here is exact compilation error as apeparing when compiling unmodified latest snapsot (29 July 2004) of uClibc.

make[4]: Entering directory `/home/rudolfl/project/ibis/build-tools/uClibc/libc/
sysdeps/linux/common'
i386-linux-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -
mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os -funit-at-a-time
     -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. -I/home/shared/too
ls/lib/gcc/i386-linux/3.4.1/include -fPIC -c gmon.c -o gmon.o
gmon.c:518: error: conflicting types for '__mcount_internal'
../../../../include/bits/machine-gmon.h:33: error: previous declaration of '__mc
ount_internal' was here
gmon.c:518: error: conflicting types for '__mcount_internal'
../../../../include/bits/machine-gmon.h:33: error: previous declaration of '__mc
ount_internal' was here
../../../../include/bits/atomicity.h: In function `exchange_and_add':
../../../../include/bits/atomicity.h:31: warning: matching constraint does not a
llow a register
../../../../include/bits/atomicity.h:31: warning: matching constraint does not a
llow a register
../../../../include/bits/atomicity.h: In function `atomic_add':
../../../../include/bits/atomicity.h:40: warning: matching constraint does not a
llow a register
../../../../include/bits/atomicity.h:40: warning: matching constraint does not a
llow a register
../../../../include/bits/atomicity.h: In function `compare_and_swap':
../../../../include/bits/atomicity.h:51: warning: matching constraint does not a
llow a register
../../../../include/bits/atomicity.h:51: warning: matching constraint does not a
llow a register
make[4]: *** [gmon.o] Error 1
make[4]: Leaving directory `/home/rudolfl/project/ibis/build-tools/uClibc/libc/s
ysdeps/linux/common'
make[3]: *** [common] Error 2
make[3]: Leaving directory `/home/rudolfl/project/ibis/build-tools/uClibc/libc/s
ysdeps/linux'
make[2]: *** [_dir_linux] Error 2
make[2]: Leaving directory `/home/rudolfl/project/ibis/build-tools/uClibc/libc/s
ysdeps'
make[1]: *** [_dir_sysdeps] Error 2
make[1]: Leaving directory `/home/rudolfl/project/ibis/build-tools/uClibc/libc'
make: *** [_dir_libc] Error 2
[rudolfl at homer ~/project/ibis/build-tools/uClibc]$




Rudolf

-----Original Message-----
From: Manuel Novoa III [mailto:mjn3 at codepoet.org]
Sent: Friday, July 30, 2004 11:12 AM
To: Rudolf Ladyzhenskii
Cc: uclibc at uclibc.org
Subject: Re: [uClibc] Where to get patches


On Fri, Jul 30, 2004 at 09:45:40AM +1000, Rudolf Ladyzhenskii wrote:
> I am trying to compile uClibc 0.9.26 with gcc 3.4.1 and I am getting some errors. In particular, compiler complains about --mount_internal being re-declared. Doing a google search I found that someone has already encountered problem and made some chanegs to the code. Instead of changing the file(s) manually I was hoping to get "official" patches.
> Could not find any on the uClibc website. 
> 
> Do I have to get latest snapsot or there is a place I can download patch(es)?

The gcc 3.4.1 toolchain is not well tested.  But you can find what I
currently have at http://uclibc.org/cgi-bin/cvsweb/toolchain/#dirlist .
Be aware that you _must_ use the uClibc snapshot (or cvs) as there are
some issues with the 0.9.26 release.

Manuel



More information about the uClibc mailing list