From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: WIP pypy3.3 - tests still fail? Anyone see why? Date: Sat, 8 Oct 2016 10:09:11 +0200 Message-ID: <20161008100911.7b481a42@scratchpost.org> References: <20161007121231.5f00a462@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/LICCt60N++/+Sd0W07f.ui2" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsmh9-0003cW-KW for guix-devel@gnu.org; Sat, 08 Oct 2016 04:09:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsmh5-0005fB-Do for guix-devel@gnu.org; Sat, 08 Oct 2016 04:09:22 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:40007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsmh5-0005eh-6s for guix-devel@gnu.org; Sat, 08 Oct 2016 04:09:19 -0400 Received: from localhost (unknown [193.170.94.190]) by dd1012.kasserver.com (Postfix) with ESMTPSA id C6C6F1CA0561 for ; Sat, 8 Oct 2016 10:09:17 +0200 (CEST) In-Reply-To: <20161007121231.5f00a462@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --MP_/LICCt60N++/+Sd0W07f.ui2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline and the patch... --MP_/LICCt60N++/+Sd0W07f.ui2 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=pypy3.3-fix-compiler.patch --- /tmp/sysconfig_pypy.py 2016-09-14 00:38:36.325334296 +0200 +++ pypy3.3-v5.2.0-alpha1-src/lib-python/3/distutils/sysconfig_pypy.py 2016-09-14 00:37:55.068908258 +0200 @@ -123,6 +123,19 @@ optional C speedup components. """ if compiler.compiler_type == "unix": + varnames = ["CC", "CXX", "LDSHARED", "CPP", "LDFLAGS", "CFLAGS", "CPPFLAGS", "AR", "ARFLAGS", "OPT", "CFLAGS", "CCSHARED", "SHLIB_SUFFIX"] + cfg = get_config_vars() + g = {} + for varname in varnames: + g[varname] = os.environ.get(varname) or cfg.get(varname) + cc = g["CC"] or "cc" + cpp = g["CPP"] if "CPP" in os.environ else ("{} -E".format(g["CC"])) + cc_cmd = "{} {}".format(g["CC"], g["CFLAGS"] or "") + ccshared = g["CCSHARED"] or "" + cxx = g["CXX"] + ldshared = "{} -shared {} {} {}".format(g["LDSHARED"] or g["CC"], os.environ.get("LDFLAGS", ""), os.environ.get("CFLAGS", ""), os.environ.get("CPPFLAGS", "")) + archiver = "{} {}".format(g["AR"], g["ARFLAGS"]) + compiler.set_executables(preprocessor=cpp, compiler=cc_cmd, compiler_so=cc_cmd + " " + ccshared, compiler_cxx=cxx, linker_so=ldshared, linker_exe=cc, archiver=archiver) compiler.compiler_so.extend(['-O2', '-fPIC', '-Wimplicit']) compiler.shared_lib_extension = get_config_var('SO') if "CPPFLAGS" in os.environ: --MP_/LICCt60N++/+Sd0W07f.ui2--