Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc problems -- missing flags and libraries[invalid]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 250
Location: Arkansas

PostPosted: Sun Aug 16, 2009 2:12 pm    Post subject: gcc problems -- missing flags and libraries[invalid] Reply with quote

I've been trying to use -msoft-float and regardless what gcc version or what linking I try to perform, I get a message similar to this.
Quote:
/tmp/cc21ZEhg.o:(.text+0x208): undefined reference to `__floatsidf'
/tmp/cc21ZEhg.o:(.text+0x218): undefined reference to `__floatsidf'
/tmp/cc21ZEhg.o:(.text+0x22c): undefined reference to `__divdf3'
/tmp/cc21ZEhg.o:(.text+0x2dc): undefined reference to `__muldf3'

Naturally, Google has been no help. It seems like, when most people get this error it's because they are trying to cross-compile for an embedded system and are trying to use uclibc instead of glibc. From what I've read on the web, the Power3 processer runs floating point divide faster when using software float. I'm trying to squeeze out as much power as I can for Boinc apps.

I've tried this with and without distcc.

Another problem I've had is that -mswdiv has disappeared from gcc-4.3.4 since gcc-4.2.4. It's still in the info page though my man page is mysteriously empty.

It seems there are some features of the Power3 processor I'm just not going to be able to use in Linux. I'm stuck at roughly 350 floating point opps per second when I should be able to get double that.

emerge --info
Quote:
Portage 2.1.6.13 (default/linux/powerpc/ppc64/2008.0/64bit-userland, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r4 ppc64)
=================================================================
System uname: Linux-2.6.29-gentoo-r4-ppc64-POWER3_-630+-with-glibc2.3
Timestamp of tree: Fri, 14 Aug 2009 14:00:01 +0000
distcc 3.1 powerpc64-unknown-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python: 2.5.4-r3
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.6.3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=power3 -mtune=power3 -malign-power -mmultiple -mno-altivec -fomit-frame-pointer"
CHOST="powerpc64-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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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="-O3 -pipe -mcpu=power3 -mtune=power3 -malign-power -mmultiple -mno-altivec -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirror.usu.edu/gentoo "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j6"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups dri extensions fortran gdbm gpm hal ibm iconv ipv6 isdnlog java midi mudflap ncurses nls nptl nptlonly openmp oss pam pcre perl ppc64 pppd python readline reflection session spl ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="cs4236" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Greg


Last edited by trigggl on Sat Jan 15, 2011 7:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 250
Location: Arkansas

PostPosted: Sat Jan 15, 2011 7:21 pm    Post subject: Reply with quote

Never mind. The power3 should be hardware float, not software float. That's the whole point of the power3. It has two floating-point fused multiply-add units on the processor. I needed to quit messing around with cflags that are automatic with the march=power3 flag.
_________________
Greg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum