[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re:binutils hppa64: request for dpkg help?



> Hi all,
>
> Don't know if it's the right list but I didn't find any debian m-l dedicated
for binutils so ...
>
> As jda recently fixed some hppa bugs, I grab the cvs dated 2005-10-13 and
rebuild with success a local dpkg thanks to debian diff ;<)
>
> But I encounter the following pb with the hppa64 pkg:
> # dpkg -i binutils-hppa64_2.16.1cvs20051013-1_hppa.deb
> (Reading database ... 77628 files and directories currently installed.)
> Preparing to replace binutils-hppa64 2.16.1cvs20050902-1 (using
binutils-hppa64_2.16.1cvs20051013-1_hppa.deb) ...
> Unpacking replacement binutils-hppa64 ...
> dpkg: error processing binutils-hppa64_2.16.1cvs20051013-1_hppa.deb (--install):
>   trying to overwrite `/usr/lib/libbfd-2.16.91.so', which is also in package
binutils
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Errors were encountered while processing:
>   binutils-hppa64_2.16.1cvs20051013-1_hppa.deb
>
> (it's not the first time a read such pb but I never take time to see how
this was solved)
>
> Any idea?
>
mmm I have a more detail check:
compare with
<http://buildd.debian.org/fetch.php?&pkg=binutils&ver=2.16.1cvs20050902-1&arch=hppa&stamp=1127340406&file=log&as=raw>

1/
I check installed tools:
+++-==============-==============-============================================
ii  autoconf       2.59a-4        automatic configure script builder
ii  bison          2.0-2          A parser generator that is compatible with Y
ii  dejagnu        1.4.4-1        framework for running test suites on softwar
ii  dpatch         2.0.15         patch maintenance system for Debian source p
ii  expect-tcl8.3  5.43.0-3       A program that "talks" to other programs
ii  file           4.15-2         Determines file type using "magic" numbers
ii  flex           2.5.31-34      A fast lexical analyzer generator.
ii  gettext        0.14.5-2       GNU Internationalization utilities
ii  gettext-base   0.14.5-2       GNU Internationalization utilities for the b
ii  libmagic1      4.15-2         File type determination library using "magic
ii  m4             1.4.3-2        a macro processing language
ii  tcl8.4         8.4.11-1       Tcl (the Tool Command Language) v8.4 - run-t
ii  texinfo        4.8-1          Documentation system for on-line information

(I just used expect-tcl8.3 in place of expect because I also use this system
to test gcc cvs (aka 4.1))

but there also some differences with buildd:
[...]
Unpacking flex (from .../flex_2.5.31-34_hppa.deb) ...
[...]
Unpacking libmagic1 (from .../libmagic1_4.12-1_hppa.deb) ...
[...]
Unpacking texinfo (from .../texinfo_4.7-2.2_hppa.deb) ...

2/
all seems ok for the make overrides version:
[...]
CFLAGS="-g -O2" MAKEOVERRIDES="VERSION=2.16.91-hppa64"
make[1]: Entering directory
`/CAD/parisc-linux/Dpkg/dpkg-work/binutils-2.16.1cvs20051017/builddir-hppa64'
make[2]: Entering directory
`/CAD/parisc-linux/Dpkg/dpkg-work/binutils-2.16.1cvs20051017/builddir-hppa64'
make[3]: Entering directory
`/CAD/parisc-linux/Dpkg/dpkg-work/binutils-2.16.1cvs20051017/builddir-hppa64/libiberty'
if [ x"-fPIC" != x ] && [ ! -d pic ]; then \
    mkdir pic; \
else true; fi
[...]

Versus builld:
[...]
CFLAGS="-g -O2" MAKEOVERRIDES="VERSION=2.16.91-hppa64"
make[1]: Entering directory
`/build/buildd/binutils-2.16.1cvs20050902/builddir-hppa64'
make[2]: Entering directory
`/build/buildd/binutils-2.16.1cvs20050902/builddir-hppa64/libiberty'
if [ x"-fPIC" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
[...]

but the wrong stuff occures later:
[...]
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2   -o libbfd.la -rpath /usr/hppa-l
inux-gnu/hppa64-linux-gnu/lib -release 2.16.91  archive.lo archures.lo bfd.lo
bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo for
mat.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo
hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stab
s.lo stab-syms.lo merge.lo dwarf2.lo simple.lo archive64.lo `cat ofiles`
-L../libiberty/pic -liberty
gcc -shared  .libs/archive.o .libs/archures.o .libs/bfd.o .libs/bfdio.o
.libs/bfdwin.o .libs/cache.o .libs/coffgen.o .libs/corefile.
o .libs/format.o .libs/init.o .libs/libbfd.o .libs/opncls.o .libs/reloc.o
.libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o
.libs/linker.o .libs/srec.o .libs/binary.o .libs/tekhex.o .libs/ihex.o
.libs/stabs.o .libs/stab-syms.o .libs/merge.o .libs/dwarf2.o
.libs/simple.o .libs/archive64.o .libs/elf64-hppa.o .libs/elf64.o .libs/elf.o
.libs/elflink.o .libs/elf-strtab.o .libs/elf-eh-frame.
o .libs/dwarf1.o .libs/elf64-gen.o .libs/elf32-gen.o .libs/elf32.o
.libs/cpu-hppa.o  -L/CAD/parisc-linux/Dpkg/dpkg-work/binutils-2.1
6.1cvs20051017/builddir-hppa64/libiberty/pic -liberty  -Wl,-soname
-Wl,libbfd-2.16.91.so -o .libs/libbfd-2.16.91.so
(cd .libs && rm -f libbfd.so && ln -s libbfd-2.16.91.so libbfd.so)
[...]

on a previous line libtool use "-release 2.16.91" while buildd use well
"-release 2.16.91-hppa64"?
(that's also why I suppose that gcc use later "...-Wl,-soname
-Wl,libbfd-2.16.91.so -o .libs/libbfd-2.16.91.so" in place of "...-Wl,-soname
-Wl,libbfd-2.16.91-hppa64.so -o .libs/libbfd-2.16.91-hppa64.so")

Excepted this 'detail' all seems ok:
# dpkg --contents binutils-hppa64_2.16.1cvs20051013-1_hppa.deb
drwxr-xr-x root/root         0 2005-10-13 16:47:17 ./
drwxr-xr-x root/root         0 2005-10-13 16:47:17 ./usr/
drwxr-xr-x root/root         0 2005-10-13 16:46:59 ./usr/lib/
drwxr-xr-x root/root         0 2005-10-13 16:46:33 ./usr/lib/ldscripts/
-rw-r--r-- root/root      8418 2005-10-13 16:46:32
./usr/lib/ldscripts/hppa64linux.x
-rw-r--r-- root/root      8401 2005-10-13 16:46:32
./usr/lib/ldscripts/hppa64linux.xbn
-rw-r--r-- root/root      7859 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xc
-rw-r--r-- root/root      8418 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xn
-rw-r--r-- root/root      5744 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xr
-rw-r--r-- root/root      8015 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xs
-rw-r--r-- root/root      7473 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xsc
-rw-r--r-- root/root      7489 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xsw
-rw-r--r-- root/root      5790 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xu
-rw-r--r-- root/root      7875 2005-10-13 16:46:33
./usr/lib/ldscripts/hppa64linux.xw
-rw-r--r-- root/root    545848 2005-10-13 16:46:59 ./usr/lib/libbfd-2.16.91.so
-rw-r--r-- root/root     66444 2005-10-13 16:46:59 ./usr/lib/libopcodes-2.16.91.so
drwxr-xr-x root/root         0 2005-10-13 16:47:17 ./usr/share/
drwxr-xr-x root/root         0 2005-10-13 16:47:17 ./usr/share/doc/
drwxr-xr-x root/root         0 2005-10-13 16:47:00 ./usr/bin/
-rwxr-xr-x root/root     30132 2005-10-13 16:47:00 ./usr/bin/hppa64-linux-gnu-size
-rwxr-xr-x root/root    315252 2005-10-13 16:47:00
./usr/bin/hppa64-linux-gnu-objdump
-rwxr-xr-x root/root     54124 2005-10-13 16:46:59 ./usr/bin/hppa64-linux-gnu-ar
-rwxr-xr-x root/root     29908 2005-10-13 16:47:00
./usr/bin/hppa64-linux-gnu-strings
-rwxr-xr-x root/root     54128 2005-10-13 16:47:00
./usr/bin/hppa64-linux-gnu-ranlib
-rwxr-xr-x root/root    261168 2005-10-13 16:46:59
./usr/bin/hppa64-linux-gnu-objcopy
-rwxr-xr-x root/root     91036 2005-10-13 16:46:59
./usr/bin/hppa64-linux-gnu-addr2line
-rwxr-xr-x root/root    265436 2005-10-13 16:47:00
./usr/bin/hppa64-linux-gnu-readelf
-rwxr-xr-x root/root    104908 2005-10-13 16:46:59 ./usr/bin/hppa64-linux-gnu-nm
-rwxr-xr-x root/root    261172 2005-10-13 16:47:00
./usr/bin/hppa64-linux-gnu-strip
-rwxr-xr-x root/root     89392 2005-10-13 16:46:59
./usr/bin/hppa64-linux-gnu-c++filt
-rwxr-xr-x root/root    319100 2005-10-13 16:46:59 ./usr/bin/hppa64-linux-gnu-as
-rwxr-xr-x root/root    359376 2005-10-13 16:46:59 ./usr/bin/hppa64-linux-gnu-ld
lrwxrwxrwx root/root         0 2005-10-13 16:47:17
./usr/share/doc/binutils-hppa64 -> binutils

Thanks in advance for attention,
    Joel


---------------------------------------------------------------
A free anti-spam and anti-virus filter on all Scarlet mailboxes
More info on http://www.scarlet.be/



Reply to: