Weird rpm problem, rpm guru needed!

2007-10-13 Thread Marcin Krol
Hello.

While trying to get base PLD Titanium working I've encountered serious
problem with rpm and I can't find what causes it. Any help or hints will
be appreciated. Situation (in chronological order):

1. rpm 4.4.9-1 was built manually in PLD Ac amd64 chroot after hacking
macros to force usage of x86-64 gcc. Everything works.

2. After installing resulting packages same rpm was rebuild once again
to see if it will work without hacking macros. It worked and rpm still
works at this point

3. Now following things were done: perl was updated from AC-branch to
HEAD one. OpenSSL was upgraded to 0.9.8. Python and poldek were rebuilt
with new openssl.

4. At some point I've tried to build mawk.spec and got following error
from builder:

Documentation compressed.
+ exit 0
-bash: line 1: 28157 Segmentation fault  TMPDIR=/tmp/B.c49d5d nice
-n 19 rpmbuild -bb --target x86_64-pld-linux mawk.spec
error: No files produced.

I've tried manual build and got:

Documentation compressed.
+ exit 0
Memory fault (core dumped)
Error: package build failed. (no more info)

gdb says:

Core was generated by `rpmbuild -ba -v mawk.spec'.
Program terminated with signal 11, Segmentation fault.
#0  0x2ac399dbd165 in _start () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x2ac399dbd165 in _start () from /lib64/ld-linux-x86-64.so.2
#1  0x in ?? ()

So it seems like glibc problem, but glibc wasn't touched and at point 2
same spec was building just fine.

5. What I've tried to fix the problem:

a) I recompiled both glibc and rpm with debugging symbols but gdb still
wasn't giving more information than above.
b) I've upgraded rpm to 4.4.9-9, no change.
c) I've upgraded glibc from 2.6.1-2 to 2.6.1-3
d) I've adjusted and tried http://rpm5.org/cvs/chngview?cn=7926 patch to
see if its BUFSIZ problem. Still no luck.

6. Problem exists only on x86_64 platform. i586 and i686 are working OK.

7. currently x86_64 version of PLD Titanium is just PLD Ac amd64 with
just few core packages rebuilt to x86_64 arch.

8. Other failing specs are perl and rpm-build-macros

Any ideas what more I can do to nail this problem? If you need more info
let me know.

M.
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [Th] [EMAIL PROTECTED]

2007-10-13 Thread Tomasz Mateja
Jeff Johnson napisaƂ(a):
>> D:40 0x000a 81920   -1 rw /dev/pts
> 
> Ick. Smells like lots of chroots.
>

I have 2 chroots on this machine 32 and 64bit.

> ...
>> LZDIO: 244 reads, 8557275660681216 total bytes in 0.668983 secs
> 
> Hmmm, looks like a int32 vs size_t, or a big <-> little endian,  
> problem somewhere.
> 
> What version of rpm?
> 
[EMAIL PROTECTED] RPMS]# rpm -q rpm
rpm-4.4.9-8.sparc64


> 73 de Jeff
> ___
> pld-devel-en mailing list
> pld-devel-en@lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [Th] [EMAIL PROTECTED]

2007-10-13 Thread Jeff Johnson

On Oct 13, 2007, at 12:18 PM, Tomasz Mateja wrote:
...

> D: mounted filesystems:
> D: idevbsize   bavail   iavail mount point
> D: 0 0x0003 81920   -1 rw /proc
> D: 1 0x0003 81920   -1 rw /proc
> D: 2 0x0003 81920   -1 rw /proc
> D: 3 0x0003 81920   -1 rw /proc
> D: 4 0x0003 81920   -1 rw /proc
> D: 5 0x0003 81920   -1 rw /proc
> D: 6 0x0003 81920   -1 rw /proc
> D: 7 0x0003 81920   -1 rw /proc
> D: 8 0x0003 81920   -1 rw /proc
> D: 9 0x0003 81920   -1 rw /proc
> D:10 0x0003 81920   -1 rw /proc
> D:11 0x0003 81920   -1 rw /proc
> D:12 0x0003 81920   -1 rw /proc
> D:12 0x0003 81920   -1 rw /proc
> D:13 0x000a 81920   -1 rw /dev/pts
> D:14 0x0003 81920   -1 rw /proc
> D:15 0x000a 81920   -1 rw /dev/pts
> D:16 0x0003 81920   -1 rw /proc
> D:17 0x000a 81920   -1 rw /dev/pts
> D:18 0x0003 81920   -1 rw /proc
> D:19 0x000a 81920   -1 rw /dev/pts
> D:20 0x0003 81920   -1 rw /proc
> D:21 0x0003 81920   -1 rw /proc
> D:22 0x0003 81920   -1 rw /proc
> D:23 0x0003 81920   -1 rw /proc
> D:24 0x0003 81920   -1 rw /proc
> D:25 0x0003 81920   -1 rw /proc
> D:26 0x0003 81920   -1 rw /proc
> D:27 0x0003 81920   -1 rw /proc
> D:28 0x0003 81920   -1 rw /proc
> D:29 0x0003 81920   -1 rw /proc
> D:30 0x0003 81920   -1 rw /proc
> D:31 0x0003 81920   -1 rw /proc
> D:32 0x0003 81920   -1 rw /proc
> D:33 0x0003 81920   -1 rw /proc
> D:34 0x000a 81920   -1 rw /dev/pts
> D:35 0x0003 81920   -1 rw /proc
> D:36 0x000a 81920   -1 rw /dev/pts
> D:37 0x0003 81920   -1 rw /proc
> D:38 0x000a 81920   -1 rw /dev/pts
> D:39 0x0003 81920   -1 rw /proc
> D:40 0x000a 81920   -1 rw /dev/pts

Ick. Smells like lots of chroots.

...
> LZDIO: 244 reads, 8557275660681216 total bytes in 0.668983 secs

Hmmm, looks like a int32 vs size_t, or a big <-> little endian,  
problem somewhere.

What version of rpm?

73 de Jeff
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


[Th] [EMAIL PROTECTED]

2007-10-13 Thread Tomasz Mateja
I still cannot manage to get rpm at sparc64 working with rpms compressed 
with lzma (f.ex. noarch from our ftp) those compressed with bzip working 
without any problems, rpmbuild produces good lzma compressed rpms. So 
problem is only with extracting.

simple gdb log: http://rg4.polsl.pl/pldsparc/rpm.gdb

[EMAIL PROTECTED] RPMS]# rpm -ihv  autoconf-2.61-9.noarch.rpm 

Preparing...### 
[100%]
1:autoconf   ### 
[100%]
error: unpacking of archive failed: cpio: Bad magic
[EMAIL PROTECTED] RPMS]#

[EMAIL PROTECTED] RPMS]# rpm -ihvvv autoconf-2.61-9.noarch.rpm

D: == autoconf-2.61-9.noarch.rpm
D: Expected size:   827801 = lead(96)+sigs(180)+pad(4)+data(827521)
D:   Actual size:   827801
D: autoconf-2.61-9.noarch.rpm: Header SHA1 digest: OK 
(1096335571ff4a49cf8c3b361161254c09a1c0f8)
D:  added binary package [0]
D: found 0 source and 1 binary packages
D: opening  db environment /var/lib/rpm/Packages cdb:mpool
D: opening  db index   /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index   /var/lib/rpm/Packages
D: == +++ autoconf-2.61-9 noarch/linux 0x0
D: opening  db index   /var/lib/rpm/Depends create mode=0x0
D: opening  db index   /var/lib/rpm/Basenames rdonly mode=0x0
D:  read h#1071 Header SHA1 digest: OK 
(7e960413be7abeba8778d1bab64f1e6cbbeeb88c)
D:  Requires: /bin/awk  YES (db files)
D:  read h#1115 Header SHA1 digest: OK 
(5aca719fedbae2220cead65afc13bf9226b6e818)
D:  Requires: /bin/sh   YES (db files)
D:  Requires: /bin/sh   YES (cached)
D:  Requires: /bin/sh   YES (cached)
D:  read h# 863 Header SHA1 digest: OK 
(38ce8cea546f83d017e001ff79a9b83710622b0d)
D:  Requires: /usr/bin/perl YES (db files)
D: opening  db index   /var/lib/rpm/Providename rdonly mode=0x0
D:  read h# 975 Header SHA1 digest: OK 
(034e288283eb299655a8702b26cbe2a685464d0f)
D:  Requires: diffutils YES (db 
provides)
D:  read h#1105 Header SHA1 digest: OK 
(5d3547d13b0c02de3b3cc81a616a00c29a53b34d)
D:  Requires: m4 = 3:1.4.10 YES (db 
provides)
D:  read h#1102 Header SHA1 digest: OK 
(e6add778369f676d01257bbfc86f96fa28538059)
D:  Requires: mktempYES (db 
provides)
D:  Requires: perl(Autom4te::C4che) YES (added 
provide)
D:  Requires: perl(Autom4te::ChannelDefs)   YES (added 
provide)
D:  Requires: perl(Autom4te::Channels)  YES (added 
provide)
D:  Requires: perl(Autom4te::Configure_ac)  YES (added 
provide)
D:  Requires: perl(Autom4te::FileUtils) YES (added 
provide)
D:  Requires: perl(Autom4te::General)   YES (added 
provide)
D:  Requires: perl(Autom4te::Request)   YES (added 
provide)
D:  Requires: perl(Autom4te::Struct)YES (added 
provide)
D:  Requires: perl(Autom4te::XFile) YES (added 
provide)
D:  Requires: perl(Carp)YES (db 
provides)
D:  Requires: perl(Cwd) YES (db 
provides)
D:  read h# 864 Header SHA1 digest: OK 
(15fe68908580bc2ec87cf52922a2315a454006c2)
D:  Requires: perl(Data::Dumper)YES (db 
provides)
D:  Requires: perl(DynaLoader)  YES (db 
provides)
D:  Requires: perl(Errno)   YES (db 
provides)
D:  Requires: perl(Exporter)YES (db 
provides)
D:  Requires: perl(File::Basename)  YES (db 
provides)
D:  Requires: perl(File::Compare)   YES (db 
provides)
D:  Requires: perl(File::Copy)  YES (db 
provides)
D:  Requires: perl(File::Find)  YES (db 
provides)
D:  Requires: perl(File::Path)  YES (db 
provides)
D:  Requires: perl(File::stat)  YES (db 
provides)
D:  Requires: perl(Getopt::Long)YES (db 
provides)
D:  Requires: perl(IO::File)YES (db 
provides)
D:  Requires: perl(POSIX)   YES (db 
provides)
D:  Requires: perl(Text::ParseWords)YES (db 
provides)
D:  Requires: perl(strict)  YES (db 
provides)
D:  Requires: perl(vars)YES (db 
provides)
D:  Requires: perl-base >= 0:5.000  YES (db 
provides)
D:  Requires: perl-base >= 0:5.005  YES (db 
provides)
D:  Requires: perl-base >= 0:5.005_03