Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70779 - Can't compile cln
Summary: Can't compile cln
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 04:48 UTC by gunix
Modified: 2004-12-01 23:00 UTC (History)
0 users

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 gunix 2004-11-11 04:48:42 UTC
Here is the result when I try to emerge dev-libs/cln


/bin/sh ../libtool --mode=link g++ -O2 -march=athlon-xp -pipe -fomit-frame-pointer -finline-functions -mmmx -m3dnow -msse  exam.o exam_I.o exam_RA.o exam_SF.o exam_FF.o exam_DF.o exam_LF.o exam_I_gcd.o exam_I_sqrtp.o  ../src/libcln.la -lm -o exam
mkdir .libs
g++ -O2 -march=athlon-xp -pipe -fomit-frame-pointer -finline-functions -mmmx -m3dnow -msse exam.o exam_I.o exam_RA.o exam_SF.o exam_FF.o exam_DF.o exam_LF.o exam_I_gcd.o exam_I_sqrtp.o -o .libs/exam  ../src/.libs/libcln.so /usr/lib/libgmp.so -lm
exam.o(.text+0x50): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `global constructors keyed to cl_module__cl_prin_globals__firstglobalfun'
exam.o(.text+0x5a): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `global constructors keyed to cl_module__cl_random_def__firstglobalfun'
exam.o(.text+0x64): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `global constructors keyed to cl_module__cl_FF_globals__firstglobalfun'
exam.o(.text+0x6e): In function `__static_initialization_and_destruction_0(int, int)':
------ and a lot more errors----

I use gentoo on a x86 machine.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2004-11-11 06:20:02 UTC
Could you please tell us which version of cln you tried to emerge and which version of gmp you have?
Comment 2 gunix 2004-11-11 06:52:18 UTC
Sorry... I forgot this.
I was trying to emerge version  1.1.16 of cln  

gmp version 4.1.3
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2004-11-16 00:09:59 UTC
I think you mean 1.1.6 :-)
Works fine for me. Your "emerge info" output would be nice, maybe also your binutils version.
Comment 4 gunix 2004-11-16 13:59:36 UTC
emerge -s binutils tells me:
2.14.90.0.8-r1

emerge info

 emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1 i686)
=================================================================
System uname: 2.6.8.1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -finline-functions -mmmx -m3dnow -msse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -finline-functions -mmmx -m3dnow -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib acl acpi adns alsa apache2 apm arts atlas avi berkdb bindist bitmap-fonts bonobo cdparanoia cdr crypt cscope cups curl dga doc dvd encode esd ethereal evo f77 fam fastcgi fb firebird flac foomaticdb fortran gcj gd gdbm ggi gif ginac gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick imap imlib innodb jabber jack java jpeg junit kde lcms ldap lesstif libg++ libgda libwww mad maildir mbox mcal mikmod mmx motif mozilla mpeg mpi msn mysql nas ncurses nls odbc oggvorbis opengl oscar oss pam pdflib perl plotutils png postgres ppds python qt quicktime readline ruby samba sasl scanner sdl slang speex spell sqlite sse ssl svg svga tcltk tcpd tetex theora tiff truetype v4l v4l2 videos vmf wxwindows x86 xml xml2 xmms xv zlib"
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2004-11-23 00:30:10 UTC
Looks like it has something to do with your CFLAGS... investigation will take some time.
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2004-11-23 08:59:15 UTC
Ok, filtering "-finline-functions" for gcc 3.3.4 from now on for this package. Thanks for reporting.
Comment 7 gunix 2004-12-01 09:31:14 UTC
In the ebuild it now says:

# Trouble: see bug #70779
        if ["$( gcc-fullversion )" == "3.3.4" ]; then
                filter-flags -finline-functions
        fi

So if I understand this correctly, the ebuild has been updated
But I still can't compile it.
I get:

g++ -O2 -march=athlon-xp -pipe -fomit-frame-pointer -finline-functions -mmmx -m3dnow -msse exam.o exam_I.o exam_RA.o exam_SF.o exam_FF.o exam_DF.o exam_LF.o exam_I_gcd.o exam_I_sqrtp.o -o .libs/exam  ../src/.libs/libcln.so /usr/lib/libgmp.so -lm
exam.o(.text+0x50): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `global constructors keyed to cl_module__cl_prin_globals__firstglobalfun'

This looks like the previous problem.
Comment 8 Patrick Kursawe (RETIRED) gentoo-dev 2004-12-01 23:00:19 UTC
Oh, sorry. A missing blank. Please replace "[$(" by "[ $(" in the line you quoted.