From owner-freebsd-ports@FreeBSD.ORG Thu Jan 30 17:02:23 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CDE11E53 for ; Thu, 30 Jan 2014 17:02:23 +0000 (UTC) Received: from iport-acv2-out.ucsd.edu (iport-acv2-out.ucsd.edu [132.239.0.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 98C831FDA for ; Thu, 30 Jan 2014 17:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ucsd.edu; i=@ucsd.edu; q=dns/txt; s=041709-iport; t=1391101344; x=1422637344; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TPeYirBNXgvlrwcBjGJLFCH7bRopUSogk1a+TFvk8sg=; b=d+ypaHihTqYZzs/z1t81JwFO7vcl5FhfGUgIw9DD/t3Yg8K0nREXN4PL cNeGu3dWPwbpATIZSkPznFQTov74Jm7FxAJ9guS7H/a80FMPjuqCe6943 a5gpCz3y0xlFkR2O2mTOukEI75QEgP3ufyQliZXsTN1FV26U+y7Qpk2Pi A=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqoNAAeF6lKE7/kU/2dsb2JhbABZgww4qBmQEYVSgQwWdIIlAQEBAQM6DTIQCw0LCSUPBSghiBgNr02UB4ghF4JbigGBRBEBUAeDJIEUBIlJjl6BM4R/i26DToFQ X-IPAS-Result: AqoNAAeF6lKE7/kU/2dsb2JhbABZgww4qBmQEYVSgQwWdIIlAQEBAQM6DTIQCw0LCSUPBSghiBgNr02UB4ghF4JbigGBRBEBUAeDJIEUBIlJjl6BM4R/i26DToFQ X-IronPort-AV: E=Sophos;i="4.95,751,1384329600"; d="scan'208";a="25659007" X-Spam-Status: No X-Spam-Level: Received: from smtp-tpcs.ucsd.edu ([132.239.249.20]) by iport-acv2-out.ucsd.edu with ESMTP; 30 Jan 2014 09:02:17 -0800 Received: from Cruxis (unknown [169.228.189.234]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-tpcs.ucsd.edu (Postfix) with ESMTPSA id 2AB797FCC5; Thu, 30 Jan 2014 09:02:16 -0800 (PST) Date: Thu, 30 Jan 2014 09:03:19 -0800 From: Daniel Smith To: Ajtim Subject: Re: Sage update Message-ID: <20140130170318.GB455@Cruxis> References: <52E9A43A.7010006@missouri.edu> <52E9AA34.9060909@missouri.edu> <52E9E3A4.2030204@missouri.edu> <4471471.Cm1jn2sjEU@lumiwa.farms.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4471471.Cm1jn2sjEU@lumiwa.farms.net> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: Jouko Lumij?rvi , Greg Rivers , "Montgomery-Smith, Stephen" , FreeBSD Ports , "GeorgSWeber@googlemail.com" , Kostas Oikonomou X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jan 2014 17:02:23 -0000 I also tried rebuilding it and got the same error that Mitja saw. I think the issue may be that the patches (for dealing with the freebsd1* vs freebsd1.*) aren't getting properly applied. I set SAGE_KEEP_BUILT_SPKS=yes before trying to build, and when I looked at the build dir for the mpir-spkg, it looks like the configure.patch file had the patches reversed. That is, in the file sage-6.0/build/pkgs/mpir/patches/configure.patch There are lines that read -freebsd1.*) +freebsd1*) The result, I think, is that patch believes the freebsd1.* lines, which are the ones we want, are the "old" values, hence the mpir configure script continues to act as if it were building on FreeBSD-1.x I'm not entirely sure how math/sage/files/patch-build_pkgs_mpir_patches_configure.patch was generated, but it looks to me like a couple of the diffs in there had newer files as their first argument, e.g., +diff -ur src/aclocal.m4 b/aclocal.m4 +--- src/aclocal.m4 2014-01-29 21:06:09.000000000 +0000 ++++ b/aclocal.m4 2012-10-03 20:07:32.000000000 +0000 +@@ -2421,7 +2421,7 @@ + shlibpath_var=LD_LIBRARY_PATH + ;; + +-freebsd1.*) ++freebsd1*) ... So I think the situation could be fixed by just changing the command around (the above was generated by diff -ur src/aclocal.m4 b/aclocal.m4 so instead just take the output of diff -ur b/aclocal.m4 src/aclocal.m4 and put the patch-build_pkgs_mpir_patches_configure.patch back together with that output, instead of what the first command generated). At least, that's what I'm guessing is going on. I hope my explanation was clear enough. Thanks! -- Daniel On Thu, Jan 30, 2014 at 06:37:29AM -0500, Ajtim wrote: > On Thursday 30 January 2014 05:31:19 Montgomery-Smith, Stephen wrote: > > On 01/29/2014 07:26 PM, Montgomery-Smith, Stephen wrote: > > So I tried it on my slow i386 computer. It dies on the subpackage > > r-3.0.2.p0. I would be interested if other people are seeing the same > > problem. > > > > I think it is because in the build, it creates libR.so using a command > > like this: > > > > I did try to build again and I check 387 (Use 387 instead of SSE FPU) and I got: > > mpn_bases' can not be used when making a shared object; recompile with -fPIC > /usr/ports/math/sage/work/sage-6.0/local/lib/libgmp.a: error adding symbols: Bad value > collect2: ld returned 1 exit status > make[8]: *** [libmpfr.la] Error 1 > make[8]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0/src/src' > make[7]: *** [all] Error 2 > make[7]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0/src/src' > make[6]: *** [all-recursive] Error 1 > make[6]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0/src' > Error building MPFR. > > real 0m17.525s > user 0m53.171s > sys 0m12.151s > ************************************************************************ > Error installing package mpfr-3.1.2.p0 > ************************************************************************ > Please email sage-devel (http://groups.google.com/group/sage-devel) > explaining the problem and including the relevant part of the log file > /usr/ports/math/sage/work/sage-6.0/logs/pkgs/mpfr-3.1.2.p0.log > Describe your computer, operating system, etc. > If you want to try to fix the problem yourself, *don't* just cd to > /usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0 and type 'make' or whatever is appropriate. > Instead, the following commands setup all environment variables > correctly and load a subshell for you to debug the error: > (cd '/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0' && '/usr/ports/math/sage/work/sage-6.0/sage' --sh) > When you are done debugging, you can type "exit" to leave the subshell. > ************************************************************************ > make[5]: *** [/usr/ports/math/sage/work/sage-6.0/local/var/lib/sage/installed/mpfr-3.1.2.p0] Error 1 > make[5]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/build' > make[4]: *** [toolchain-deps] Error 2 > make[4]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/build' > make[3]: *** [all] Error 2 > make[3]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/build' > > real 1m32.542s > user 2m35.877s > sys 0m43.556s > *************************************************************** > Error building Sage. > > The following package(s) may have failed to build: > > package: mpfr-3.1.2.p0 > log file: /usr/ports/math/sage/work/sage-6.0/logs/pkgs/mpfr-3.1.2.p0.log > build directory: /usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0 > > The build directory may contain configuration files and other potentially > helpful information. WARNING: if you now run 'make' again, the build > directory will, by default, be deleted. Set the environment variable > SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this. > > gmake[2]: *** [build] Error 1 > gmake[2]: Leaving directory `/usr/ports/math/sage/work/sage-6.0' > ===> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > the maintainer. > *** Error code 1 > > Stop. > make[1]: stopped in /usr/ports/math/sage > *** Error code 1 > > Thank you. > > -- > Mitja > ------- > http://www.redbubble.com/people/lumiwa >