Re: Help debugging rzip_2.0-2 FTBFS on hppa
Alec Berryman wrote:
Hi debian-hppa,
I'm maintaining rzip, an updated version of which FTBFS on hppa [1] with
the error message:
gcc -I. -I. -Wall -g -O3 -c main.c -o main.o
main.c: In function `main':
main.c:331: internal compiler error: Segmentation fault
hmm I just download your src and rebuild it on my sid install (running a
2.6.8.1-pa7) but don't meet any errors:
# dpkg-buildpackage 2>&1 | tee /var/logs/rzip_2.0-2
dpkg-buildpackage: source package is rzip
dpkg-buildpackage: source version is 2.0-2
dpkg-buildpackage: source maintainer is Alec Berryman <alec@thened.net>
dpkg-buildpackage: host architecture is hppa
debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
/usr/bin/make clean
make[1]: Entering directory `/Debian-apt/WORKS/tools/rzip-2.0'
rm -f *~ rzip.o runzip.o main.o stream.o util.o crc32.o rzip config.cache config.log config.status
make[1]: Leaving directory `/Debian-apt/WORKS/tools/rzip-2.0'
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
dh_clean
rm -f debian/rzip.substvars
rm -f debian/rzip.*.debhelper
rm -rf debian/rzip
rm -f debian/files
find . -type f -a \( -name \#\*\# -o -name .\*\~ -o -name \*\~ -o -name DEADJOE -o -name \*.orig -o -name \*.rej -o -name \*.bak -o -name .\*.orig -o -name .\*.rej -o -name .SUMS -o -name TAGS -o -name core -o \( -path \*/.deps/\* -a -name \*.P \) \) -exec rm -f {} \;
rm -rf autom4te.cache
dpatch deapply-all
10large-sparse-file-support not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
dpkg-source -b rzip-2.0
dpkg-source: building rzip using existing rzip_2.0.orig.tar.gz
dpkg-source: building rzip in rzip_2.0-2.diff.gz
dpkg-source: building rzip in rzip_2.0-2.dsc
debian/rules build
test -d debian/patched || install -d debian/patched
dpatch apply-all
applying patch 10large-sparse-file-support to ./ ... ok.
dpatch cat-all >>patch-stampT
mv -f patch-stampT patch-stamp
dh_testdir
CFLAGS="-Wall -g -O3" ./configure --host=hppa-linux --build=hppa-linux --prefix=/usr --mandir=\${prefix}/share/man
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -Wall -g -O3 ) works... yes
checking whether the C compiler (gcc -Wall -g -O3 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... 1
checking for _LARGE_FILES value needed for large files... no
checking for _XOPEN_SOURCE value needed for large files... no
checking how to run the C preprocessor... gcc -E
checking for fcntl.h... yes
checking for sys/time.h... yes
checking for sys/unistd.h... yes
checking for unistd.h... yes
checking for sys/param.h... yes
checking for ctype.h... yes
checking for sys/wait.h... yes
checking for sys/ioctl.h... yes
checking for string.h... yes
checking for stdlib.h... yes
checking for sys/types.h... yes
checking for ANSI C header files... yes
checking for off_t... yes
checking for size_t... yes
checking size of int... 4
checking size of long... 4
checking size of short... 2
checking for large file support... yes
checking for inline... inline
checking for BZ2_bzBuffToBuffCompress in -lbz2... yes
checking for errno in errno.h... yes
checking for mmap... yes
checking for strerror... yes
checking for getopt_long... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
dh_testdir
/usr/bin/make
make[1]: Entering directory `/Debian-apt/WORKS/tools/rzip-2.0'
gcc -I. -I. -Wall -g -O3 -c rzip.c -o rzip.o
gcc -I. -I. -Wall -g -O3 -c runzip.c -o runzip.o
gcc -I. -I. -Wall -g -O3 -c main.c -o main.o
gcc -I. -I. -Wall -g -O3 -c stream.c -o stream.o
gcc -I. -I. -Wall -g -O3 -c util.c -o util.o
gcc -I. -I. -Wall -g -O3 -c crc32.c -o crc32.o
gcc -Wall -g -O3 -o rzip rzip.o runzip.o main.o stream.o util.o crc32.o -lbz2
make[1]: Leaving directory `/Debian-apt/WORKS/tools/rzip-2.0'
touch build-stamp
debian/rules binary
dh_testdir
/usr/bin/make
make[1]: Entering directory `/Debian-apt/WORKS/tools/rzip-2.0'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/Debian-apt/WORKS/tools/rzip-2.0'
touch build-stamp
dh_testdir
dh_testroot
dh_clean -k
rm -f debian/rzip.substvars
rm -f debian/rzip.*.debhelper
rm -rf debian/rzip
find . -type f -a \( -name \#\*\# -o -name .\*\~ -o -name \*\~ -o -name DEADJOE -o -name \*.orig -o -name \*.rej -o -name \*.bak -o -name .\*.orig -o -name .\*.rej -o -name .SUMS -o -name TAGS -o -name core -o \( -path \*/.deps/\* -a -name \*.P \) \) -exec rm -f {} \;
rm -rf autom4te.cache
dh_installdirs
install -d debian/rzip
/usr/bin/make install prefix=/Debian-apt/WORKS/tools/rzip-2.0/debian/rzip/usr
make[1]: Entering directory `/Debian-apt/WORKS/tools/rzip-2.0'
mkdir -p /Debian-apt/WORKS/tools/rzip-2.0/debian/rzip/usr/bin
/usr/bin/install -c -m 755 rzip /Debian-apt/WORKS/tools/rzip-2.0/debian/rzip/usr/bin
mkdir -p /Debian-apt/WORKS/tools/rzip-2.0/debian/rzip/usr/share/man/man1
/usr/bin/install -c -m 644 ./rzip.1 /Debian-apt/WORKS/tools/rzip-2.0/debian/rzip/usr/share/man/man1/
make[1]: Leaving directory `/Debian-apt/WORKS/tools/rzip-2.0'
dh_testdir
dh_testroot
dh_installchangelogs
install -d debian/rzip/usr/share/doc/rzip
install -o 0 -g 0 -p -m644 debian/changelog debian/rzip/usr/share/doc/rzip/changelog.Debian
dh_installdocs
install -g 0 -o 0 -m 644 -p debian/copyright debian/rzip/usr/share/doc/rzip/copyright
dh_installexamples
dh_installman
dh_link
dh_strip
strip --remove-section=.comment --remove-section=.note debian/rzip/usr/bin/rzip
dh_compress
cd debian/rzip
chmod a-x usr/share/man/man1/rzip.1 usr/share/doc/rzip/changelog.Debian
gzip -9f usr/share/man/man1/rzip.1 usr/share/doc/rzip/changelog.Debian
cd '/Debian-apt/WORKS/tools/rzip-2.0'
dh_fixperms
find debian/rzip -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0
find debian/rzip ! -type l -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s
find debian/rzip/usr/share/doc -type f ! -regex 'debian/rzip/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 644
find debian/rzip/usr/share/doc -type d -print0 2>/dev/null | xargs -0r chmod 755
find debian/rzip/usr/share/man debian/rzip/usr/man/ debian/rzip/usr/X11*/man/ -type f -print0 2>/dev/null | xargs -0r chmod 644
find debian/rzip -perm -5 -type f \( -name '*.so*' -or -name '*.la' -or -name '*.a' \) -print0 2>/dev/null | xargs -0r chmod 644
find debian/rzip/usr/include -type f -name '*.h' -print0 2>/dev/null | xargs -0r chmod 644
find debian/rzip/usr/lib/perl5 debian/rzip/usr/share/perl5 -type f -perm -5 -name '*.pm' -print0 2>/dev/null | xargs -0r chmod a-X
find debian/rzip/usr/bin -type f -print0 2>/dev/null | xargs -0r chmod +x
dh_makeshlibs
rm -f debian/rzip/DEBIAN/shlibs
dh_installdeb
install -o 0 -g 0 -d debian/rzip/DEBIAN
dh_shlibdeps
dpkg-shlibdeps -Tdebian/rzip.substvars debian/rzip/usr/bin/rzip
dh_gencontrol
dpkg-gencontrol -ldebian/changelog -isp -Tdebian/rzip.substvars -Pdebian/rzip
chmod 644 debian/rzip/DEBIAN/control
chown 0:0 debian/rzip/DEBIAN/control
dh_md5sums
cd debian/rzip >/dev/null ; find . -type f ! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; cd '/Debian-apt/WORKS/tools/rzip-2.0' >/dev/null
chmod 644 debian/rzip/DEBIAN/md5sums
chown 0:0 debian/rzip/DEBIAN/md5sums
dh_builddeb
dpkg-deb --build debian/rzip ..
dpkg-deb: building package `rzip' in `../rzip_2.0-2_hppa.deb'.
dpkg-genchanges
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage: binary and diff upload (original source NOT included)
Here are the toolchain pkg installed:
# dpkg -l gcc-3.3 libc6 binutils
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii gcc-3.3 3.3.4-9 The GNU C compiler
ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries and Timezone
ii binutils 2.15-1 The GNU assembler, linker and binary utiliti
(should the same as sarge ?)
hth,
Joel
Reply to: