[pkg-boost-devel] Bug#334959: boost: FTBFS on hppa
Aurelien Jarno
aurelien at aurel32.net
Sat Oct 29 09:56:36 UTC 2005
Hi,
Please find attached a patch to fix the FTBFS on hppa. The only solution
I found is to build boost with g++-3.4. Using -ffunction-sections, as
suggested by ld in the error message does not work.
Note that building with g++-3.4 is only necessary to build the debug
part (the one built with -O0). The release part (built with -O3) is
optimized, so it is possible to reach all functions without problem.
Bye,
Aurelien
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian GNU/Linux developer | Electrical Engineer
`. `' aurel32 at debian.org | aurelien at aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
-------------- next part --------------
diff -Nru /tmp/FnfdmCwFAJ/boost-1.33.0/debian/changelog /tmp/XFCfMzHcCk/boost-1.33.0/debian/changelog
--- /tmp/FnfdmCwFAJ/boost-1.33.0/debian/changelog 2005-10-28 14:29:29.000000000 +0000
+++ /tmp/XFCfMzHcCk/boost-1.33.0/debian/changelog 2005-10-28 14:29:36.000000000 +0000
@@ -1,3 +1,9 @@
+boost (1.33.0-2.1) unstable; urgency=low
+
+ * Build with gcc-3.4 on hppa.
+
+ -- Aurelien Jarno <aurel32 at debian.org> Fri, 28 Oct 2005 02:26:34 +0200
+
boost (1.33.0-2) unstable; urgency=low
* The Debian Boost Team now maintains the package.
diff -Nru /tmp/FnfdmCwFAJ/boost-1.33.0/debian/control /tmp/XFCfMzHcCk/boost-1.33.0/debian/control
--- /tmp/FnfdmCwFAJ/boost-1.33.0/debian/control 2005-10-28 14:29:29.000000000 +0000
+++ /tmp/XFCfMzHcCk/boost-1.33.0/debian/control 2005-10-28 14:29:36.000000000 +0000
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Boost Team <pkg-boost-devel at lists.alioth.debian.org>
Uploaders: Steve M. Robbins <smr at debian.org>, Domenico Andreoli <cavok at debian.org>
-Build-Depends: debhelper (>= 4), bison, flex, docbook-to-man, xsltproc, doxygen, python2.3-dev, zlib1g-dev, libbz2-dev, libicu34-dev
+Build-Depends: debhelper (>= 4), bison, flex, docbook-to-man, xsltproc, doxygen, python2.3-dev, zlib1g-dev, libbz2-dev, libicu34-dev, gcc-3.4 [hppa], g++-3.4 [hppa]
Standards-Version: 3.6.2
Package: bcp
diff -Nru /tmp/FnfdmCwFAJ/boost-1.33.0/debian/rules /tmp/XFCfMzHcCk/boost-1.33.0/debian/rules
--- /tmp/FnfdmCwFAJ/boost-1.33.0/debian/rules 2005-10-28 14:29:29.000000000 +0000
+++ /tmp/XFCfMzHcCk/boost-1.33.0/debian/rules 2005-10-28 14:29:36.000000000 +0000
@@ -6,6 +6,11 @@
# This has to be exported to make some magic below work.
export DH_OPTIONS
+DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
+ifeq ($(DEB_HOST_GNU_CPU), hppa)
+ GCC_VERSION = -3.4
+endif
+
# Boost Version
# This is the "short label" for the Boost library version, consisting of the
# major and minor version numbers joined by an underscore. This label
@@ -31,8 +36,8 @@
JAM = $(bjam) -d2 \
-sTOOLS=gcc \
- -sGCC=gcc \
- -sGXX=g++ \
+ -sGCC="gcc$(GCC_VERSION)" \
+ -sGXX="g++$(GCC_VERSION)"\
-sHAVE_ICU=1 \
-sPYTHON_VERSION=2.3 \
-sPYTHON_ROOT=/usr
More information about the pkg-boost-devel
mailing list