Bug#513420: Breaks building libgsf from source
Package: gcc-4.3
Version: 4.3.3-1
Severity: serious
Justification: causes libgsf to no longer build from source; regression
compared to testing's gcc-4.3 packages.
What am I trying to do:
* Build libgsf from source again on amd64 (or build libgsf svn trunk).
How am I trying to do it / steps to reproduce:
* Set up a sid environment in which to build libgsf from the Debian source
package, e.g. in pbuilder.
* Get the libgsf source package and extract it.
* In the source directory, run
env MALLOC_CHECK_=2 debian/rules build
What behaviour did I expect to get:
* The libgsf build runs to completion.
What behaviour did I actually get:
* The libgsf build fails during documentation generation, with messages
similar to the following:
creating gsf-scan
gtk-doc: Running scanner gsf-scan
sh: line 1: 27898 Segmentation fault ( ./gsf-scan )
Scan failed:
make[3]: *** [scan-build.stamp] Error 139
make[3]: Leaving directory `/tmp/buildd/libgsf-1.14.11/build/doc'
* This behaviour is fully repeatable for me.
Notes and observations:
* "gsf-scan" is built from generated sources using gtk-doc-tools.
* To preserve the gsf-scan sources and objects, comment out the unlink line
which removes them in /usr/bin/gtkdoc-scangobj .
* When running plain "debian/rules build" without the env MALLOC_CHECK_=2,
the problem manifests at a later point in the build as follows:
cd ../../doc/html && gtkdoc-mkhtml gsf ../gsf-docs.sgml
../xml/text.xml:255: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xD0 0x45 0x2E 0x02
<para>When to quote fields.</para><para>Default value: ÐE.</para>
^
../xml/text.xml:255: parser error : PCDATA invalid Char value 2
<para>When to quote fields.</para><para>Default value: ÐE.</para>
^
../xml/text.xml:279: parser error : chunk is not well balanced
^
../gsf-docs.sgml:232: parser error : Failure to process entity GsfText
&GsfText;
^
../gsf-docs.sgml:232: parser error : Entity 'GsfText' not defined
&GsfText;
^
unable to parse ../gsf-docs.sgml
make[3]: *** [html-build.stamp] Error 6
This can be tracked back to a garbage string in the <DEFAULT> block within
the <ARG> block for GsfOutputCsvQuotingMode in doc/gsf.args which is a
file generated by gsf-scan. The garbage string can vary between repeated
attempts.
* This libgsf version (1.14.11-1) has previously been built successfully on
all architectures.
* The problem is still reproducible for me when the optimisation level is
reduced (in debian/rules) to -O1 .
* I could not reproduce the problem in the following variations:
* When lowering the optimisation level to -O0 .
* Building in a 32-bit pbuilder chroot on amd64.
* Building in a sid environment with the gcc-4.3 packages downgraded to
the 4.3.2-1.1 versions from testing.
* Building using CC=gcc-4.2 .
* Building using CC=gcc-4.1 .
* Building using CC=/usr/lib/gcc-snapshot/bin/gcc .
which makes me suspect that the problem isn't with the (generated)
gsf-scan sources, but with gcc's code generation.
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing-proposed-updates'), (500, 'stable'), (400, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.28.2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.3 depends on:
ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii cpp-4.3 4.3.3-1 The GNU C preprocessor
ii gcc-4.3-base 4.3.3-1 The GNU Compiler Collection (base
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libgcc1 1:4.3.3-1 GCC support library
ii libgomp1 4.3.3-1 GCC OpenMP (GOMP) support library
Versions of packages gcc-4.3 recommends:
ii libc6-dev 2.7-18 GNU C Library: Development Librari
Versions of packages gcc-4.3 suggests:
ii gcc-4.3-doc 4.3.2.nf1-1 documentation for the GNU compiler
pn gcc-4.3-locales <none> (no description available)
ii gcc-4.3-multilib 4.3.3-1 The GNU C compiler (multilib files
pn libgcc1-dbg <none> (no description available)
pn libgomp1-dbg <none> (no description available)
pn libmudflap0-4.3-dev <none> (no description available)
pn libmudflap0-dbg <none> (no description available)
-- no debconf information
Reply to: