From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O1PDe-0004xu-N6 for garchives@archives.gentoo.org; Mon, 12 Apr 2010 19:22:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5F03E0A53; Mon, 12 Apr 2010 19:22:33 +0000 (UTC) Received: from mxi2.callplus.net.nz (mxi2.callplus.net.nz [202.180.66.204]) by pigeon.gentoo.org (Postfix) with ESMTP id 6EA23E0A53 for ; Mon, 12 Apr 2010 19:22:33 +0000 (UTC) Received: from 119-224-48-139.callplus.net.nz (HELO vrooom.localnet) ([119.224.48.139]) by ismtp02.callplus.net.nz with ESMTP; 13 Apr 2010 07:22:31 +1200 From: =?iso-8859-1?q?Fran=E7ois_Bissey?= To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] sage-singular Date: Tue, 13 Apr 2010 07:22:30 +1200 User-Agent: KMail/1.13.2 (Linux/2.6.32-gentoo-r1; KDE/4.4.2; i686; ; ) References: <1271087445.7325.2@ledaig> In-Reply-To: <1271087445.7325.2@ledaig> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201004130722.30717.f.r.bissey@massey.ac.nz> X-Archives-Salt: c80d58bf-57e9-4b06-a6c7-093264745f68 X-Archives-Hash: 21b71980fb9dbac6d4ed3f2a469e09c0 > Fran=E7ois, >=20 > Singular -- good. I do get -fPIC compile issues here on my amd64: >=20 > g++ -shared -o libsingular.so \ > libsingular-tesths.o iparith.o mpsr_Tok.o claptmpl.o \ > grammar.o scanner.o attrib.o eigenval_ip.o extra.o fehelp.o > feOpt.o ipassign.o ipconv.o ipid.o iplib.o ipprint.o ipshell.o lists.o > sdb.o fglm.o interpolation.o silink.o subexpr.o janet.o wrapper.o > libparse.o sing_win.o gms.o pcv.o maps_ip.o walk.o walk_ip.o cntrlc.o > misc.o calcSVD.o slInit_Dynamic.o -lkernel -L../kernel -L../factory > -L../libfac > -L/var/tmp/portage/sci-mathematics/sage-singular-3.1.0.4.20100214/work/si= ng > ular-3-1-0-4-20100214/src/build/opt/sage/local/lib64 -lsingfac -lsingcf > -lntl -lreadline -lgmp -lomalloc > /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bi= n/ > ld: libsingular-tesths.o: relocation R_X86_64_32 against `a local symbol' > can not be used when making a shared object; recompile with -fPIC >=20 > I've tinkered with this in the past and the following allowed building > to proceed. >=20 > sed -e "s:@CFLAGS@:@CFLAGS@ -fPIC:" -e > "s:@CXXFLAGS@:@CXXFLAGS@ -fPIC:" \ > -i */Makefile.in || die "failed to fix CFLAGS in > Makefile.in files" > sed -e "s:@CFLAGS@:@CFLAGS@ -fPIC:" -e > "s:@CXXFLAGS@:@CXXFLAGS@ -fPIC:" \ > -i factory/GNUmakefile.in || die "failed to fix CFLAGS > in GNUmakefile.in" > sed -e "s:{libdir} \${LIBSINGULAR_LIBS}:{libdir} -Wl,-soname > \${LIBSINGULAR_LIBS}:" \ > -i Singular/Makefile.in || die "failed to fix LDFLAGS > in Makefile.in" >=20 > but this may not be the best way to fix things. I did notice that Sage > builds Singular with -fPIC for all architectures. >=20 Hi Steve, indeed you would! -fPIC is mandatory on amd64 I think. I was concerned that we shouldn't build the binaries or the static libraries with -fPIC. That being said it looks like all those static libraries are=20 useless. =46rancois