Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272086 - Failed to emerge dev-libs/boost-{1.37.0-r1, 1.39.0} on sparc: #error "long double support is not supported by Boost.Math on this Plaform: the long double version of the TR1 library will not be built."
Summary: Failed to emerge dev-libs/boost-{1.37.0-r1, 1.39.0} on sparc: #error "long do...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 282264
  Show dependency tree
 
Reported: 2009-06-01 13:38 UTC by Sergey
Modified: 2009-12-10 14:36 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
boost-1.39.0.ebuild (boost-1.39.0.ebuild,12.76 KB, text/plain)
2009-08-16 15:21 UTC, Stuart Longland (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 2009-06-01 13:38:51 UTC
gcc.compile.c++ bin.v2/libs/math/build/has_long_double_support.test/gcc-4.1/gentoorelease/has_long_double_support.o
libs/math/build/has_long_double_support.cpp:9:2: error: #error "long double support is not supported by Boost.Math on this Plaform: the long double version of the TR1 library will not be built."

    "sparc-unknown-linux-gnu-g++"  -ftemplate-depth-128 -O2 -mcpu=ultrasparc -pipe -finline-functions -Wno-inline -Wall -fPIC  -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/math/build/has_long_double_support.test/gcc-4.1/gentoorelease/has_long_double_support.o" "libs/math/build/has_long_double_support.cpp"

...failed gcc.compile.c++ bin.v2/libs/math/build/has_long_double_support.test/gcc-4.1/gentoorelease/has_long_double_support.o...
...failed updating 1 target...
...updated 9 targets...
 *
 * ERROR: dev-libs/boost-1.37.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3174:  Called die
 * The specific snippet of code:
 *       ${BJAM} ${NUMJOBS} -q gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared,static || die "building boost failed";



Portage 2.1.6.13 (default/linux/sparc/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo sparc64)
=================================================================
System uname: Linux-2.6.29-gentoo-sparc64-sun4u-with-gentoo-2.0.1
Timestamp of tree: Mon, 01 Jun 2009 06:00:01 +0000
app-shells/bash:     4.0_p24
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="sparc ~sparc"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/opt/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb bzip2 cli cracklib crypt cups dri fortran gcc64 gdbm gpm hal iconv ipv6 isdnlog kde midi mozilla mudflap ncurses nls nptl nptlonly openmp pam pcre perl pop pppd python qt3 readline reflection samba session sparc spl ssl sysfs tcpd unicode xorg xurlrunner zlib" ALSA_CARDS="all" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Henrique Rodrigues 2009-06-12 23:38:03 UTC
I get the same error on ARM.
Comment 2 Marietta 2009-06-16 18:37:12 UTC
Same error on PowerPc.
Comment 3 Stuart Longland (RETIRED) gentoo-dev 2009-08-09 07:01:46 UTC
and MIPS... tested with 1.37.0-r1 and 1.39.0

I notice Debian seem to work around this issue by disabling the offending component of Boost...

http://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg164223.html
Comment 4 Stuart Longland (RETIRED) gentoo-dev 2009-08-16 15:19:30 UTC
I managed to get Boost to build... it seems in later versions of the library, you can opt out of building the components that require long doubles.  The following changes to the ebuild allow a working boost library to be built...

stuartl@zhouman ~ $ diff -u /usr/portage/dev-libs/boost/boost-1.39.0.ebuild /var/db/pkg/dev-libs/boost-1.39.0/boost-1.39.0.ebuild
--- /usr/portage/dev-libs/boost/boost-1.39.0.ebuild     2009-08-07 16:05:35.000000000 +1000
+++ /var/db/pkg/dev-libs/boost-1.39.0/boost-1.39.0.ebuild       2009-08-15 22:28:43.000000000 +1000
@@ -148,6 +148,7 @@
        use expat && OPTIONS="${OPTIONS} -sEXPAT_INCLUDE=/usr/include -sEXPAT_LIBPATH=/usr/$(get_libdir)"
        use mpi || OPTIONS="${OPTIONS} --without-mpi"
        use python || OPTIONS="${OPTIONS} --without-python"
+       use mips && OPTIONS="${OPTIONS} --disable-long-double"

        OPTIONS="${OPTIONS} --user-config=\"${S}/user-config.jam\" --boost-build=/usr/share/boost-build-${MAJOR_PV} --prefix=\"${D}/usr\" --layout=versioned"


I shall upload a copy of the modified ebuild... with some suitable changes, this can cover SPARC, PowerPC and ARM too.
Comment 5 Stuart Longland (RETIRED) gentoo-dev 2009-08-16 15:21:06 UTC
Created attachment 201427 [details]
boost-1.39.0.ebuild

This is the ebuild with the aforementioned patch applied. Tweak to local requirements.
Comment 6 Dmitri Bogomolov 2009-11-24 13:15:41 UTC
I have same problem on g/fbsd-7.2 x86 :)
Comment 7 Sebastian Luther (few) 2009-11-25 07:59:41 UTC
Could some please test the following two ebuilds from my overlay [1]?

=dev-libs/boost-1.39.0-r1 has long-double disabled for mips, hppa, sparc, arm and x86-fbsd
=dev-libs/boost-1.41.0 doesn't disable long-double at all


[1] git://github.com/few/few-s-gentoo-overlay.git
Comment 8 Dmitri Bogomolov 2009-11-25 11:59:21 UTC
(In reply to comment #7)
> Could some please test the following two ebuilds from my overlay [1]?
> 
> =dev-libs/boost-1.39.0-r1 has long-double disabled for mips, hppa, sparc, arm
> and x86-fbsd

this builds on my g/fbsd-7.2
Comment 9 Sebastian Luther (few) 2009-11-25 13:28:15 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Could some please test the following two ebuilds from my overlay [1]?
> > 
> > =dev-libs/boost-1.39.0-r1 has long-double disabled for mips, hppa, sparc, arm
> > and x86-fbsd
> 
> this builds on my g/fbsd-7.2
> 
Does this mean that 1.41 doesn't build or didn't you test? If it doesn't build, does it complain about --long-double stuff or something else?
Comment 10 Dmitri Bogomolov 2009-11-25 16:08:27 UTC
(In reply to comment #9)

> Does this mean that 1.41 doesn't build or didn't you test?

I didn't test. Maybe tomorrow i will try.

Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-04 17:48:01 UTC
1.41.0 is OK for HPPA, and dependent packages all build against it.
Comment 12 Henrique Rodrigues 2009-12-07 13:21:13 UTC
1.41 works fine on PPC too. Very nice! :-)
Comment 13 Dmitri Bogomolov 2009-12-10 12:05:36 UTC
(In reply to comment #9)

=dev-libs/boost built successfully built on g/fbsd-7.2
Comment 14 Dmitri Bogomolov 2009-12-10 12:06:31 UTC
(In reply to comment #13)
> (In reply to comment #9)
> 
> =dev-libs/boost built successfully built on g/fbsd-7.2
> 

sorry, I mean 1.41.0
Comment 15 Sergey 2009-12-10 14:36:28 UTC
1.41 works fine on sparc too.