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 1O1QBR-0002gP-Id for garchives@archives.gentoo.org; Mon, 12 Apr 2010 20:24:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77AD9E09A6; Mon, 12 Apr 2010 20:24:16 +0000 (UTC) Received: from mx1.d.umn.edu (mx1.d.umn.edu [131.212.109.15]) by pigeon.gentoo.org (Postfix) with ESMTP id 5A27FE09A6 for ; Mon, 12 Apr 2010 20:24:16 +0000 (UTC) Received: from mxr1.d.umn.edu (mxr1.d.umn.edu [131.212.109.92]) by mx1.d.umn.edu (8.13.8/8.13.8) with ESMTP id o3CKNTOA003400 for ; Mon, 12 Apr 2010 15:23:29 -0500 (CDT) Received: from mxv2.d.umn.edu (mxv2.d.umn.edu [131.212.109.136]) by mxr1.d.umn.edu (8.13.8/8.13.8) with ESMTP id o3CKNTYe026211 for ; Mon, 12 Apr 2010 15:23:29 -0500 (CDT) Received: from smtp.d.umn.edu (mx3.d.umn.edu [131.212.109.40]) by mxv2.d.umn.edu (8.13.8/8.13.8) with ESMTP id o3CKNLqv001966 for ; Mon, 12 Apr 2010 15:23:28 -0500 (CDT) Received: from ledaig (ledaig.d.umn.edu [131.212.64.12]) (authenticated bits=0) by smtp.d.umn.edu (8.13.8/8.13.8) with ESMTP id o3CKMncG008651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Apr 2010 15:22:50 -0500 (CDT) Date: Mon, 12 Apr 2010 15:22:49 -0500 From: Steven Trogdon Subject: Re: [gentoo-science] sage-singular To: gentoo-science@lists.gentoo.org In-Reply-To: <201004130722.30717.f.r.bissey@massey.ac.nz> (from f.r.bissey@massey.ac.nz on Mon Apr 12 14:22:30 2010) X-Mailer: Balsa 2.4.1 Message-Id: <1271103769.7325.3@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: multipart/signed; protocol="application/pgp-signature"; micalg=PGP-SHA1; boundary="=-kCVm8K3WJzs8WxZylws3" X-Virus-Scanned: clamav-milter 0.95.3 at mxv2.d.umn.edu X-Virus-Status: Clean X-Archives-Salt: 88a92aa2-c7a1-4ee1-949b-d637695ddc79 X-Archives-Hash: 5c75fecfea981b9c52adefd467dc8428 --=-kCVm8K3WJzs8WxZylws3 Content-Type: text/plain; charset=ISO-8859-1; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 04/12/10 - 14:22:30, Fran=E7ois Bissey wrote: > > Fran=E7ois, > > > > Singular -- good. I do get -fPIC compile issues here on my amd64: > > > > 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 =20 > 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 =20 > cntrlc.o > > misc.o calcSVD.o slInit_Dynamic.o -lkernel -L../kernel -L../factory > > -L../libfac > > =20 > -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 =20 > -lsingcf > > -lntl -lreadline -lgmp -lomalloc > > =20 > /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 =20 > symbol' > > can not be used when making a shared object; recompile with -fPIC > > > > I've tinkered with this in the past and the following allowed =20 > building > > to proceed. > > > > 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 =20 > CFLAGS > > in GNUmakefile.in" > > sed -e "s:{libdir} \${LIBSINGULAR_LIBS}:{libdir} =20 > -Wl,-soname > > \${LIBSINGULAR_LIBS}:" \ > > -i Singular/Makefile.in || die "failed to fix =20 > LDFLAGS > > in Makefile.in" > > > > but this may not be the best way to fix things. I did notice that =20 > Sage > > builds Singular with -fPIC for all architectures. > > > Hi Steve, >=20 > indeed you would! -fPIC is mandatory on amd64 I think. > I was concerned that we shouldn't build the binaries or the static =20 > libraries > with -fPIC. That being said it looks like all those static libraries =20 > are > useless. >=20 > Francois >=20 Fran=E7ois, Just for reference, adding the -fPIC does allow building of =20 sage-singular here. But sage will not install -- it can't find =20 libsingular.so. I've gotten a similar error in attempts to remove =20 Singular entirely. Sage appears to be very possessive of Singular. Steve --=-kCVm8K3WJzs8WxZylws3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEABECAAYFAkvDgRkACgkQSh5h5U6haiERGACdEDhZ8Sdntpino1FJoFOkDLBy fVkAoIlifJErMFzn/dzjQC7xm0DoOOkN =DrZp -----END PGP SIGNATURE----- --=-kCVm8K3WJzs8WxZylws3--