Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264838 - dev-libs/tomsfastmath-0.12-r1 stable request
Summary: dev-libs/tomsfastmath-0.12-r1 stable request
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 276063
Blocks:
  Show dependency tree
 
Reported: 2009-04-04 07:10 UTC by Thilo Bangert (RETIRED) (RETIRED)
Modified: 2012-04-23 18:06 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-04 07:10:22 UTC
current KEYWORDS="~amd64 ~arm ~ppc ~x86"

target KEYWORDS="amd64 arm ppc x86"

ask for stable in the beginning of may 2009.
Comment 1 SpanKY gentoo-dev 2009-04-21 04:17:14 UTC
it has broken multilib handling that should be fixed first.  the header also has broken perms (it's +x).
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-07-12 16:08:22 UTC
spanky: do you have a link at hand explaining some background or the time to explain, what exactly is wrong?

thanks.

AFAICT the earlier versions where also broken wrt multilib, so that should not hold us back.

kind regards
Thilo
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-11-20 13:06:34 UTC
boo - apparently tomsfastmath fails for recent gcc's 

libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers   -c -o src/mont/fp_montgomery_reduce.o src/mont/fp_montgomery_reduce.c   
libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers   -c -o src/mont/fp_montgomery_setup.o src/mont/fp_montgomery_setup.c     
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers -c src/mont/fp_montgomery_reduce.c  -fPIC -DPIC -o src/mont/.libs/fp_montgomery_reduce.o                                                                                                                                                                                     
libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers   -c -o src/mul/fp_mul.o src/mul/fp_mul.c                                 
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers -c src/mul/fp_mul.c  -fPIC -DPIC -o src/mul/.libs/fp_mul.o                             
src/mont/fp_montgomery_reduce.c: In function ‘fp_montgomery_reduce’:                                                                                                                  
src/mont/fp_montgomery_reduce.c:521: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’                                                                       
src/mont/fp_montgomery_reduce.c:521: error: ‘asm’ operand has impossible constraints                                                                                                  
src/mont/fp_montgomery_reduce.c:526: error: ‘asm’ operand has impossible constraints                                                                                                  
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers -c src/mont/fp_montgomery_setup.c  -fPIC -DPIC -o src/mont/.libs/fp_montgomery_setup.o 
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers -c src/mul/fp_mul.c -o src/mul/fp_mul.o >/dev/null 2>&1                                
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wshadow -Isrc/headers -c src/mont/fp_montgomery_setup.c -o src/mont/fp_montgomery_setup.o >/dev/null 2>&1    
make: *** [src/mont/fp_montgomery_reduce.o] Error 1                                                                                                                                   
make: *** Waiting for unfinished jobs.... 

Portage 2.2_rc50 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31.6 i686)
=================================================================                                  
System uname: Linux-2.6.31.6-i686-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.1     
Timestamp of tree: Unknown                                                                         
app-shells/bash:     4.0_p28                                                                       
dev-java/java-config: 2.1.9-r1                                                                     
dev-lang/python:     2.6.2-r1                                                                      
dev-util/cmake:      2.6.4-r3                                                                      
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.5.2-r2                                                                      
sys-apps/sandbox:    2.2                                                                           
sys-devel/autoconf:  2.13, 2.63-r1                                                                 
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2                                                    
sys-devel/binutils:  2.18-r3                                                                       
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6a                                                                        
virtual/os-headers:  2.6.27-r2                                                                     
ACCEPT_KEYWORDS="x86"                                                                              
ACCEPT_LICENSE="* -@EULA"                                                                          
CBUILD="i686-pc-linux-gnu"                                                                         
CFLAGS="-O2 -march=i686 -pipe"                                                                     
CHOST="i686-pc-linux-gnu"                                                                          
CONFIG_PROTECT="/etc /usr/share/config"                                                            
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                                                        
CXXFLAGS="-O2 -march=i686 -pipe"                                                                                                                                                      
DISTDIR="/usr/portage/distfiles"                                                                                                                                                      
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch"                    
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ "                                                                                                                         
LANG="en_GB.UTF-8"                                                                                                                                                                    
LDFLAGS="-Wl,--as-needed"                                                                                                                                                             
LINGUAS="de da en_GB en_US en"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/bangert/gentoo/overlay/ebuilds"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amr amrnb amrwb audiofile avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo cddb cdio cdr cli consolekit cracklib crypt css cups curl dbus dirac dri drm dts dv dvb dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gif glib gpm gsm gtk hal iconv id3tag ipv6 java jpeg jpeg2k kde lame lcms libnotify libsamplerate lzma mad mikmod mmx mmxext mng modules mp2 mp3 mp4 mpeg mudflap musicbrainz ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pcre pdf perl plasma png ppds pppd python qt3support qt4 quicktime readline reflection rle ruby sasl scanner sdl session sndfile speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd theora threads thunar tiff truetype unicode usb utempter vidix vim-syntax vorbis win32codecs x264 x86 xattr xcb xcomposite xml xmp xorg xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de da en_GB en_US en" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-11-20 13:12:12 UTC
vapier: is this the multilib support you were looking for?

thanks


--- tomsfastmath-0.12-r1.ebuild 3 Apr 2009 19:09:53 -0000       1.1
+++ tomsfastmath-0.12-r1.ebuild 20 Nov 2009 13:11:01 -0000
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-libs/tomsfastmath/tomsfastmath-0.12-r1.ebuild,v 1.1 2009/04/03 19:09:53 tommy Exp $

-inherit eutils toolchain-funcs
+inherit eutils toolchain-funcs multilib

 DESCRIPTION="portable fixed precision math library geared towards doing one thing very fast"
 HOMEPAGE="http://libtom.org/"
@@ -21,7 +21,7 @@
 }

 src_install() {
-       emake -f makefile.shared DESTDIR="${D}" install || die
+       emake -f makefile.shared DESTDIR="${D}" LIBDIR=/usr/$(get_libdir) install || die
        dodoc changes.txt doc/*.pdf || die
        docinto demo ; dodoc demo/*.c || die
 }
Comment 5 SpanKY gentoo-dev 2009-11-22 18:15:21 UTC
the package doesnt use "LIBDIR".  guess you meant "LIBPATH".

i just went ahead and fixed the problems myself in the ebuild.

http://sources.gentoo.org/dev-libs/tomsfastmath/tomsfastmath-0.12-r1.ebuild?r1=1.1&r2=1.2
Comment 6 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-11-25 09:02:03 UTC
thanks vapier!

now we only need somebody who knows assembler to fixup the x86/PIC mess...
Comment 7 SpanKY gentoo-dev 2009-11-25 18:01:48 UTC
if current version has same problem, it shouldnt hold up stabling.

http://hardened.gentoo.org/pic-fix-guide.xml
Comment 8 Pacho Ramos gentoo-dev 2012-04-23 18:06:41 UTC
dropped