This is the mail archive of the 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: Status - compiling on hppa / ld sigsegv's - glibc 2.2.93


If you would like to say "that's a lot of patches touching things" and 
decide not assist in debugging the problem... I will still respect you ;)

Added to the end of this email is a listing of all the required patches
to build glibc on hppa. Although the original dates of these patches are
listed, they have been updated to build 2.2.93.

If you require anything more detailed than what I have provided, please
contact the list or myself directly.

Thanks for you help!


Testing 2.2.93 snapshot on hppa:

gcc-3.2 -v
Reading specs from /usr/lib/gcc-lib/hppa-linux/3.2.1/specs
Configured with: /build/buildd/gcc-3.2-3.2.1ds0/src/configure -v --enable-languages=c,c++,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-objc-gc hppa-linux
Thread model: posix
gcc version 3.2.1 20020830 (Debian prerelease)

ld -v
GNU ld version 20020814 Debian GNU/Linux

Build Process:

Patch the source tree with the listing of patches provided below.
Move into a build tree and configure/make.

export CC=gcc-3.2
export CFLAGS="-g -O2"

../libc/configure --prefix=/usr --host=hppa-linux --target=hppa-linux --build=hppa-linux
--enable-add-ons --without-cvs >& ../configure.log

* (10k) 

make >& ../build.log

* (170k)

The following issue:

CPP='gcc-3.2 -E -x c-header'  /mnt/flaire/src/glibc-upstream-cvs/libc-build/elf/ --library-path /mnt/flaire/src/glibc-upstream-cvs/libc-build:/mnt/flaire/src/glibc-upstream-cvs/libc-build/math:/mnt/flaire/src/glibc-upstream-cvs/libc-build/elf:/mnt/flaire/src/glibc-upstream-cvs/libc-build/dlfcn:/mnt/flaire/src/glibc-upstream-cvs/libc-build/nss:/mnt/flaire/src/glibc-upstream-cvs/libc-build/nis:/mnt/flaire/src/glibc-upstream-cvs/libc-build/rt:/mnt/flaire/src/glibc-upstream-cvs/libc-build/resolv:/mnt/flaire/src/glibc-upstream-cvs/libc-build/crypt:/mnt/flaire/src/glibc-upstream-cvs/libc-build/linuxthreads /mnt/flaire/src/glibc-upstream-cvs/libc-build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /mnt/flaire/src/glibc-upstream-cvs/libc-build/sunrpc/xbootparam_prot.T
make[2]: *** [/mnt/flaire/src/glibc-upstream-cvs/libc-build/sunrpc/xbootparam_prot.stmp] Segmentation fault
make[2]: Leaving directory `/mnt/flaire/src/glibc-upstream-cvs/libc/glibc-2.2.93/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/mnt/flaire/src/glibc-upstream-cvs/libc/glibc-2.2.93'
make: *** [all] Error 2

gdb /mnt/flaire/src/glibc-upstream-cvs/libc-build/elf/

GNU gdb 2002-08-18-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa-linux"...
(gdb) set args --help
(gdb) r
Starting program: /mnt/flaire/src/glibc-upstream-cvs/libc-build/elf/ --help

Program received signal SIGSEGV, Segmentation fault.
0x410026a4 in _dl_start () at do-rel.h:73
73            r = r + MIN (nrelative, relsize / sizeof (ElfW(Rel)));
(gdb) bt
#0  0x410026a4 in _dl_start () at do-rel.h:73
#1  0x4100209c in _start () at rtld.c:154
(gdb) disassemble 
0x410026a4 <_dl_start+624>:     fldd 0(sr0,r1),fr22
(gdb) i r
     flags: 0                       pcsqt: 800                
        r1: 0                        eiem: 0      
(gdb) break do-rel.h:73
Breakpoint 1 at 0x4100269c: file do-rel.h, line 73.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /mnt/flaire/src/glibc-upstream-cvs/libc-build/elf/ --help

Breakpoint 1, _dl_start () at do-rel.h:73
73            r = r + MIN (nrelative, relsize / sizeof (ElfW(Rel)));
(gdb) display r
No symbol "r" in current context.

r1 should probably not be zero.
ld doesn't survive startup :(

Any help would be much appreciated. I think that I may have to track
down the whole startup process to see what is happening.

 HP PA-PARISC - glibc patches

 Applied with:
	for i in `ls ../upstream-patches/*`; do patch -p1 < $i; done;

 00-glibc23-hppa-pthreads (Alan Modra) 		- Wed, Nov 14, 2001
        - Patches for LinuxThreads.
        = Looking to have some version merged upstream.
        ! Changed by various people to keep them up-to-date.

 01-glibc23-hppa-rela (Alan Modra) 		- Wed, Nov 14 2001
        - Required changes for rel / rela.
        = Looking to have some version merged upstream.
        * Needs review since is sigsegv'ing at:
        * do-rel.h:73 with what looks like a null reladdr.
        ! Changed by various people to keep them up-to-date.

 02-glibc23-hppa-unwind (Matthew Wilcox) 	- Sun, 03 Feb 2002
        - Correct unwind settings.
        - Updated to require arch_minimum_kernel=2.4.9 
	- (0.9.3 ISO Shipped kernel)
        = Looking to have some version merged upstream.

 03-glibc23-hppa-tests (Randolph Chung) 	- Mon, 25 Mar 2002 
        - Define hppa libm test accepted ulp error tolerances.
	= Looking to have some version merged upstream.

 04-glibc23-hppa-data-start (Randolph Chung) 	- Mon, 25 Mar 2002
        - Declare a data_start symbol in crt1.o.
        = Looking to have some version merged upstream.

 05-glibc23-hppa-mcontext (Carlos O'Donell) 	- Wed, 28 Aug 2002	
	- Typedef mcontext to sigcontext, matching kernel.
	= Needs review.
	* Requires 64-bit kernel fix to work on 64-bit machines.
	* Passing back 64-bit values to 32-bit userspace is not nice.

 06-glibc23-hppa-divdi3 (Randolph Chung) 	- Wed, 04 Sep 2002
	- Pull in definition of divdi3_internal for hppa
	- Temporary build fix.
	= Being reviewed. Similar issues to everyone else.


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