patches/glibc/2.3.2/README-hppa
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
yann@1
     1
[See also http://parisc-linux.org/toolchain
yann@1
     2
 One of these days I'll have a look at what they've
yann@1
     3
 got there, and incorporate their patches.]
yann@1
     4
yann@1
     5
-------
yann@1
     6
yann@1
     7
The error
yann@1
     8
yann@1
     9
../linuxthreads/sysdeps/pthread/errno-loc.c: In function `__errno_location':
yann@1
    10
../linuxthreads/sysdeps/pthread/errno-loc.c:39: `pthread_descr' undeclared (first use in this function)
yann@1
    11
../linuxthreads/sysdeps/pthread/errno-loc.c:39: (Each undeclared identifier is reported only once
yann@1
    12
../linuxthreads/sysdeps/pthread/errno-loc.c:39: for each function it appears in.)
yann@1
    13
../linuxthreads/sysdeps/pthread/errno-loc.c:39: syntax error before "self"
yann@1
    14
../linuxthreads/sysdeps/pthread/errno-loc.c:40: warning: implicit declaration of function `LIBC_THREAD_GETMEM'
yann@1
    15
../linuxthreads/sysdeps/pthread/errno-loc.c:40: `self' undeclared (first use in this function)
yann@1
    16
../linuxthreads/sysdeps/pthread/errno-loc.c:40: `p_errnop' undeclared (first use in this function)
yann@1
    17
../linuxthreads/sysdeps/pthread/errno-loc.c:40: warning: return makes pointer from integer without a cast
yann@1
    18
make[2]: *** [/home/gotom/glibc/glibc-2.3.2/build/csu/errno-loc.o] Error 1
yann@1
    19
make[2]: Leaving directory `/home/gotom/glibc/glibc-2.3.2/glibc-2.3.2/csu'
yann@1
    20
make[1]: *** [csu/subdir_lib] Error 2
yann@1
    21
yann@1
    22
means that hppa does not yet have the proper stuff for linuxthreads.
yann@1
    23
yann@1
    24
See
yann@1
    25
http://groups.google.com/groups?selm=20030322165012%247208%40gated-at.bofh.it
yann@1
    26
http://lists.debian.org/debian-glibc/2003/debian-glibc-200303/msg00472.html
yann@1
    27
yann@1
    28
A set of experimental patches is at
yann@1
    29
http://www.baldric.uwo.ca/~carlos/glibc-2.3.2-patches.tar.gz
yann@1
    30
but since they touch generic code, I'm not comfortable using them in general yet.
yann@1
    31
Go ahead and grab them if you want to build for hppa before hppa
yann@1
    32
support is merged into glibc.