From owner-freebsd-python@freebsd.org Thu Jan 7 07:11:03 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4163A65790 for ; Thu, 7 Jan 2016 07:11:03 +0000 (UTC) (envelope-from netch@segfault.kiev.ua) Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 384952000 for ; Thu, 7 Jan 2016 07:11:02 +0000 (UTC) (envelope-from netch@segfault.kiev.ua) Received: from segfault.kiev.ua (localhost.segfault.kiev.ua [127.0.0.1]) by segfault.kiev.ua (8.15.2/8.15.2/8.Who.Cares) with ESMTP id u177Anpm013603; Thu, 7 Jan 2016 09:10:49 +0200 (EET) (envelope-from netch@segfault.kiev.ua) Received: (from netch@localhost) by segfault.kiev.ua (8.15.2/8.15.2/Submit) id u177Ah3J013600; Thu, 7 Jan 2016 09:10:43 +0200 (EET) (envelope-from netch) Date: Thu, 7 Jan 2016 09:10:42 +0200 From: Valentin Nechayev To: freebsd-python@freebsd.org Subject: weird build fails (2.7.11: io; 3.5.1: datetime) Message-ID: <20160107071042.GM6753@netch.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-42: On X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 07:11:03 -0000 Hi, the same system (10.2-RELEASE/amd64), clang as default compiler (but python ports call for gcc 4.8). For the newest 2.7.11 port, build shows the following messages: [...] ===> Generating temporary packing list [...] *** WARNING: renaming "_io" since importing it failed: build/lib.freebsd-10.2-RELEASE-p5-amd64-2.7/_io.so: Undefined symbol "_PyCodecInfo_GetIncrementalEncoder" [...] Failed to build these modules: _io then, it doesn't stop, but "successfully" installs to the stage directory. Later on, an old port is removed, the new one fails during installation, and system becomes without python27 port at all (so I have to restore it from portmaster backup). I can't found any deeper details in the log why the called symbol is missing. Very similar error, with the only difference in symbol name, occurs with python 3.5.1: *** WARNING: renaming "_datetime" since importing it failed: build/lib.freebsd-10.2-RELEASE-p5-amd64-3.5/_datetime.so: Undefined symbol "_PyTime_AsTimevalTime_t" [...] Following modules built successfully but were removed because they could not be imported: _datetime and, again, stage tree installer doesn't see any problem, and upgrade fails during package replacing. These errors are stable for the current ports tree and this system. What to dig? -netch-