inkscape: FTBFS on mips(el)

Bug #10768 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
inkscape (Debian)
Fix Released
Unknown
inkscape (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #283476 http://bugs.debian.org/283476

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #283476 http://bugs.debian.org/283476

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 29 Nov 2004 11:16:07 +0100
From: Wolfram Quester <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: inkscape: FTBFS on mips(el)

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: inkscape
Version: 0.39+0.40pre4-1
Severity: serious

Inkscape fails to build on mips(el) in the final linker step. The error
message is
mips-linux-g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverl=
oaded-virtual -Wswitch -Wno-unused-parameter -Wall -g -O2 -o inkscape --exp=
ort-dynamic main.o -Wl,--export-dynamic -Wl,--export-dynamic libinkpre.a d=
ialogs/libspdialogs.a trace/libtrace.a xml/libspxml.a svg/libspsvg.a widget=
s/libspwidgets.a display/libspdisplay.a helper/libspchelp.a libnrtype/libnr=
type.a libnr/libnr.a livarot/libvarot.a util/libinkutil.a extension/libexte=
nsion.a extension/implementation/libimplementation.a extension/internal/lib=
internal.a inkjar/libinkjar.a libinkpost.a /usr/lib/libxml2.so -lpthread /u=
sr/lib/libgtkmm-2.4.so /usr/lib/libgdkmm-2.4.so /usr/lib/libatkmm-1.6.so /u=
sr/lib/libgtk-x11-2.0.so /usr/lib/libpangomm-1.4.so /usr/lib/libglibmm-2.4.=
so /usr/lib/libsigc-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.s=
o /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangoxft-1.0.so /usr/lib/li=
bpangox-1.0.so -lpng /usr/lib/libpopt.so -L/usr/X11R6/lib /usr/lib/libXft.s=
o /usr/lib/libXrender.so -lX11 -lfontconfig /usr/lib/libpangoft2-1.0.so /us=
r/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so=
 -ldl /usr/lib/libglib-2.0.so /usr/lib/libfreetype.so -lz /usr/lib/libgc.so
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [inkscape] Error 1
make[3]: Leaving directory `/build/buildd/inkscape-0.39+0.40pre4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/inkscape-0.39+0.40pre4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/inkscape-0.39+0.40pre4'
make: *** [build] Error 2
***************************************************************************=
***
Build finished at 20041125-2348
FAILED [dpkg-buildpackage died]

The full build-log can be viewed on
http://buildd.debian.org/fetch.php?&pkg=3Dinkscape&ver=3D0.39%2B0.40pre4-1&=
arch=3Dmips&stamp=3D1101444742&file=3Dlog&as=3Draw
At the moment I dont' have a clue why it fails and I guess I'll ask on
debian-mips about it.

With best regards,

Wolfi

--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBqvbnH0o2mefAfsQRAqFJAKCGK9jGL28oEnjpNDdU2XZ4u5DoKQCfb9sm
n3UpoGz510Ej4CNwDPN7pGE=
=3M6i
-----END PGP SIGNATURE-----

--ZGiS0Q5IWpPtfppv--

Revision history for this message
James Troup (elmo) wrote :

mips/mipsel not release architectures for ubuntu

Revision history for this message
In , Peter Moulder (peter-moulder) wrote : inkscape bug tracker for this item

This has been forwarded to
http://sourceforge.net/tracker/?group_id=93438&atid=604306&func=detail&aid=1068299

Can someone with access to a mips machine (or cross-compiler) read
through the responses there?

pjrm.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-id: <email address hidden>
Date: Wed, 01 Dec 2004 13:59:18 +1100
From: Peter Moulder <email address hidden>
To: <email address hidden>
Subject: inkscape bug tracker for this item

This has been forwarded to
http://sourceforge.net/tracker/?group_id=93438&atid=604306&func=detail&aid=1068299

Can someone with access to a mips machine (or cross-compiler) read
through the responses there?

pjrm.

Revision history for this message
In , Peter Moulder (peter-moulder) wrote : comments & suggested method of attack

As mentioned earlier, I'd start with touch src/ink{scape,view} && make
-k check and see what test programs do or don't link: different test
programs link against a different number of libraries.

The builder successfully built inkscape 0.39-7 on Oct 19, and failed to
build 0.40pre1 on Nov 5. First we should try to establish whether the
failure is due to a change in the build environment or to the change in
inkscape (e.g. due to the additional libraries inkscape 0.40pre1 links
against that 0.39-7 didn't).

I'm inclined to get the simplest thing out of the way first, so I'd
start with trying to build 0.39-7 again (which has previously compiled
successfully on mips{,el}). If it now fails, then this strongly
suggests that the bug is due to a change in the build environment.

However, my guess is that the problem is connected to one of the
dependencies added between 0.39 and 0.40. One way of finding which
would be a binary search through CVS versions, paying particular
attention to dates suggested by `cvs log configure.in'. (Most of the
new dependencies were added before configure.in was renamed to
configure.ac.) One thing to be careful of is that debian/control in CVS
may not have been kept in sync with the new dependencies, so assume the
Build-Depends of 0.40 if using a chroot environment.

pjrm.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-id: <email address hidden>
Date: Thu, 02 Dec 2004 13:30:21 +1100
From: Peter Moulder <email address hidden>
To: <email address hidden>
Subject: comments & suggested method of attack

As mentioned earlier, I'd start with touch src/ink{scape,view} && make
-k check and see what test programs do or don't link: different test
programs link against a different number of libraries.

The builder successfully built inkscape 0.39-7 on Oct 19, and failed to
build 0.40pre1 on Nov 5. First we should try to establish whether the
failure is due to a change in the build environment or to the change in
inkscape (e.g. due to the additional libraries inkscape 0.40pre1 links
against that 0.39-7 didn't).

I'm inclined to get the simplest thing out of the way first, so I'd
start with trying to build 0.39-7 again (which has previously compiled
successfully on mips{,el}). If it now fails, then this strongly
suggests that the bug is due to a change in the build environment.

However, my guess is that the problem is connected to one of the
dependencies added between 0.39 and 0.40. One way of finding which
would be a binary search through CVS versions, paying particular
attention to dates suggested by `cvs log configure.in'. (Most of the
new dependencies were added before configure.in was renamed to
configure.ac.) One thing to be careful of is that debian/control in CVS
may not have been kept in sync with the new dependencies, so assume the
Build-Depends of 0.40 if using a chroot environment.

pjrm.

Revision history for this message
In , Steve Langasek (vorlon) wrote :

tags 283476 patch
thanks

Hello,

This bug is because inkscape is hitting a limit on the size of symbol tables
on these archs, and current versions of the toolchain error out such
circumstances (previous toolchain versions would silently truncate the
symbol table).

The attached patch switches inkscape's build from multigot symbol tables
(the default on mips and mipsel) to the more extensible xgot format.

Thanks,
--
Steve Langasek
postmodern programmer

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 7 Dec 2004 20:24:31 -0800
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: Re: inkscape: FTBFS on mips(el)

--iRjOs3ViPWHdlw/I
Content-Type: multipart/mixed; boundary="IbA9xpzOQlG26JSn"
Content-Disposition: inline

--IbA9xpzOQlG26JSn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

tags 283476 patch
thanks

Hello,

This bug is because inkscape is hitting a limit on the size of symbol tables
on these archs, and current versions of the toolchain error out such
circumstances (previous toolchain versions would silently truncate the
symbol table).

The attached patch switches inkscape's build from multigot symbol tables
(the default on mips and mipsel) to the more extensible xgot format.

Thanks,
--=20
Steve Langasek
postmodern programmer

--IbA9xpzOQlG26JSn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="inkscape-283476.diff"
Content-Transfer-Encoding: quoted-printable

diff -u inkscape-0.40/debian/changelog inkscape-0.40/debian/changelog
--- inkscape-0.40/debian/changelog
+++ inkscape-0.40/debian/changelog
@@ -1,3 +1,12 @@
+inkscape (0.40-1.1) unstable; urgency=3Dhigh
+
+ * Non-maintainer upload.
+ * High-urgency upload for sarge targetted RC bugfix.
+ * Build inkscape with -Wa,-xgot on mips, mipsel so that the linker can
+ handle the symbol tables correctly. Closes: #283476.
+
+ -- Steve Langasek <email address hidden> Mon, 6 Dec 2004 19:33:41 -0800
+
 inkscape (0.40-1) unstable; urgency=3Dlow
=20
   * New upstream version. changes to v. 0.39 include:
diff -u inkscape-0.40/debian/rules inkscape-0.40/debian/rules
--- inkscape-0.40/debian/rules
+++ inkscape-0.40/debian/rules
@@ -10,7 +10,7 @@
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE ?=3D $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE ?=3D $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
+DEB_HOST_ARCH ?=3D $(shell dpkg-architecture -qDEB_HOST_ARCH)
=20
 CFLAGS =3D -Wall -g
 CXXFLAGS =3D -Wall -g
@@ -25,7 +25,10 @@
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
   INSTALL_PROGRAM +=3D -s
 endif
-
+ifneq (,$(findstring $(DEB_HOST_ARCH),mips mipsel))
+ MIPS_CXXFLAGS=3D-Wa,-xgot
+ MIPS_CFLAGS=3D-Wa,-xgot
+endif
=20
 config.status: configure
  dh_testdir
@@ -40,8 +43,8 @@
  dh_testdir
  =09
  # compile the package...
- $(MAKE)
-=09
+ $(MAKE) -C src extension/plugin/libgimpgrad.la
+ $(MAKE) CXXFLAGS=3D"$(CXXFLAGS) $(MIPS_CXXFLAGS)" CFLAGS=3D"$(CFLAGS) $(M=
IPS_CFLAGS)"
=20
 clean:
  dh_testdir

--IbA9xpzOQlG26JSn--

--iRjOs3ViPWHdlw/I
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBtoH8KN6ufymYLloRAlMYAKDFLPeQvo9wKCzaUb7irhWhxSKItwCfQbAN
bVS3/sIup31qqreZ3yfOJOY=
=i1JW
-----END PGP SIGNATURE-----

--iRjOs3ViPWHdlw/I--

Revision history for this message
In , Wolfram Quester (wolfi) wrote : Re: Bug#283476: inkscape: FTBFS on mips(el)

Hallo Steve,

On Tue, Dec 07, 2004 at 08:24:31PM -0800, Steve Langasek wrote:
> Hello,
>
> This bug is because inkscape is hitting a limit on the size of symbol tables
> on these archs, and current versions of the toolchain error out such
> circumstances (previous toolchain versions would silently truncate the
> symbol table).
>
> The attached patch switches inkscape's build from multigot symbol tables
> (the default on mips and mipsel) to the more extensible xgot format.
>
> Thanks,
> --
> Steve Langasek
> postmodern programmer

Thank you very much for this patch, I'll include it into the debian
package and forward it upstream ASAP.

Thank you very much,

Wolfi

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 8 Dec 2004 15:38:13 +0100
From: Wolfram Quester <email address hidden>
To: Steve Langasek <email address hidden>, <email address hidden>
Subject: Re: Bug#283476: inkscape: FTBFS on mips(el)

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hallo Steve,

On Tue, Dec 07, 2004 at 08:24:31PM -0800, Steve Langasek wrote:
> Hello,
>=20
> This bug is because inkscape is hitting a limit on the size of symbol tab=
les
> on these archs, and current versions of the toolchain error out such
> circumstances (previous toolchain versions would silently truncate the
> symbol table).
>=20
> The attached patch switches inkscape's build from multigot symbol tables
> (the default on mips and mipsel) to the more extensible xgot format.
>=20
> Thanks,
> --=20
> Steve Langasek
> postmodern programmer

Thank you very much for this patch, I'll include it into the debian
package and forward it upstream ASAP.

Thank you very much,

Wolfi

--/04w6evG8XlLl3ft
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBtxHUH0o2mefAfsQRAtmnAJ9+vZkxPD0Soz+uLCCKStR2heNNmQCfb6hU
9wDYRlKoYzPQFLSSMVSD6Cc=
=VW0W
-----END PGP SIGNATURE-----

--/04w6evG8XlLl3ft--

Revision history for this message
In , Steve Langasek (vorlon) wrote :

On Wed, Dec 08, 2004 at 03:38:13PM +0100, Wolfram Quester wrote:
> On Tue, Dec 07, 2004 at 08:24:31PM -0800, Steve Langasek wrote:
> > Hello,

> > This bug is because inkscape is hitting a limit on the size of symbol tables
> > on these archs, and current versions of the toolchain error out such
> > circumstances (previous toolchain versions would silently truncate the
> > symbol table).

> > The attached patch switches inkscape's build from multigot symbol tables
> > (the default on mips and mipsel) to the more extensible xgot format.

> Thank you very much for this patch, I'll include it into the debian
> package and forward it upstream ASAP.

I'm not sure that this patch is suitable for upstream; it is a workaround
for certain current issues in the Debian toolchain, I'm not sure what effect
it would have to implement the same flags on other mips systems.

--
Steve Langasek
postmodern programmer

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 8 Dec 2004 16:31:47 -0800
From: Steve Langasek <email address hidden>
To: Wolfram Quester <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#283476: inkscape: FTBFS on mips(el)

--mxv5cy4qt+RJ9ypb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 08, 2004 at 03:38:13PM +0100, Wolfram Quester wrote:
> On Tue, Dec 07, 2004 at 08:24:31PM -0800, Steve Langasek wrote:
> > Hello,

> > This bug is because inkscape is hitting a limit on the size of symbol t=
ables
> > on these archs, and current versions of the toolchain error out such
> > circumstances (previous toolchain versions would silently truncate the
> > symbol table).

> > The attached patch switches inkscape's build from multigot symbol tables
> > (the default on mips and mipsel) to the more extensible xgot format.

> Thank you very much for this patch, I'll include it into the debian
> package and forward it upstream ASAP.

I'm not sure that this patch is suitable for upstream; it is a workaround
for certain current issues in the Debian toolchain, I'm not sure what effect
it would have to implement the same flags on other mips systems.

--=20
Steve Langasek
postmodern programmer

--mxv5cy4qt+RJ9ypb
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBt5zwKN6ufymYLloRAm0pAKC3evFhuOoPU7NT1id8R6cgPtJZpwCcCmo4
34CNTui5SEUC4I9JL4aSZjk=
=8kRO
-----END PGP SIGNATURE-----

--mxv5cy4qt+RJ9ypb--

Revision history for this message
In , Wolfram Quester (wolfi) wrote : Bug#283476: fixed in inkscape 0.40-2

Source: inkscape
Source-Version: 0.40-2

We believe that the bug you reported is fixed in the latest version of
inkscape, which is due to be installed in the Debian FTP archive:

inkscape_0.40-2.diff.gz
  to pool/main/i/inkscape/inkscape_0.40-2.diff.gz
inkscape_0.40-2.dsc
  to pool/main/i/inkscape/inkscape_0.40-2.dsc
inkscape_0.40-2_powerpc.deb
  to pool/main/i/inkscape/inkscape_0.40-2_powerpc.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Wolfram Quester <email address hidden> (supplier of updated inkscape package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 8 Dec 2004 18:54:45 +0100
Source: inkscape
Binary: inkscape
Architecture: source powerpc
Version: 0.40-2
Distribution: unstable
Urgency: high
Maintainer: Wolfram Quester <email address hidden>
Changed-By: Wolfram Quester <email address hidden>
Description:
 inkscape - Vector based drawing program
Closes: 283476
Changes:
 inkscape (0.40-2) unstable; urgency=high
 .
   * High-urgency upload for sarge targetted RC bugfix.
   * Build inkscape with -Wa,-xgot on mips, mipsel so that the linker can
     handle the symbol tables correctly. Closes: #283476.
     This patch is from Steve Langasek. Many thanks to him.
   * upload sponsored by Guido Guenther <email address hidden>
   * GG: really set urgency to high
Files:
 c916e6cdfb03c7887648309a60af652c 841 graphics optional inkscape_0.40-2.dsc
 53b0f7bd7e94e8667097a713d1c4a4d5 6331 graphics optional inkscape_0.40-2.diff.gz
 194281b324140f6d84157164b9d0834e 4892706 graphics optional inkscape_0.40-2_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBuC5un88szT8+ZCYRAlasAJ9yd7H2XQCgJH2Nb4XdO2NOE6+TawCfYJTK
3dSIQDnj3RgLTeut7hmNya8=
=dium
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 09 Dec 2004 06:02:04 -0500
From: Wolfram Quester <email address hidden>
To: <email address hidden>
Subject: Bug#283476: fixed in inkscape 0.40-2

Source: inkscape
Source-Version: 0.40-2

We believe that the bug you reported is fixed in the latest version of
inkscape, which is due to be installed in the Debian FTP archive:

inkscape_0.40-2.diff.gz
  to pool/main/i/inkscape/inkscape_0.40-2.diff.gz
inkscape_0.40-2.dsc
  to pool/main/i/inkscape/inkscape_0.40-2.dsc
inkscape_0.40-2_powerpc.deb
  to pool/main/i/inkscape/inkscape_0.40-2_powerpc.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Wolfram Quester <email address hidden> (supplier of updated inkscape package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 8 Dec 2004 18:54:45 +0100
Source: inkscape
Binary: inkscape
Architecture: source powerpc
Version: 0.40-2
Distribution: unstable
Urgency: high
Maintainer: Wolfram Quester <email address hidden>
Changed-By: Wolfram Quester <email address hidden>
Description:
 inkscape - Vector based drawing program
Closes: 283476
Changes:
 inkscape (0.40-2) unstable; urgency=high
 .
   * High-urgency upload for sarge targetted RC bugfix.
   * Build inkscape with -Wa,-xgot on mips, mipsel so that the linker can
     handle the symbol tables correctly. Closes: #283476.
     This patch is from Steve Langasek. Many thanks to him.
   * upload sponsored by Guido Guenther <email address hidden>
   * GG: really set urgency to high
Files:
 c916e6cdfb03c7887648309a60af652c 841 graphics optional inkscape_0.40-2.dsc
 53b0f7bd7e94e8667097a713d1c4a4d5 6331 graphics optional inkscape_0.40-2.diff.gz
 194281b324140f6d84157164b9d0834e 4892706 graphics optional inkscape_0.40-2_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBuC5un88szT8+ZCYRAlasAJ9yd7H2XQCgJH2Nb4XdO2NOE6+TawCfYJTK
3dSIQDnj3RgLTeut7hmNya8=
=dium
-----END PGP SIGNATURE-----

Changed in inkscape:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.