NetBSD Problem Report #54758

From john@hlin.zia.io  Thu Dec 12 19:23:06 2019
Return-Path: <john@hlin.zia.io>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4194C7A14F
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 12 Dec 2019 19:23:06 +0000 (UTC)
Message-Id: <201912121922.xBCJMxM0013866@hlin.zia.io>
Date: Thu, 12 Dec 2019 19:22:59 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: lang/python38 fails on many architectures
X-Send-Pr-Version: 3.95

>Number:         54758
>Category:       pkg
>Synopsis:       lang/python38 fails on many architectures
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 12 19:25:00 +0000 2019
>Closed-Date:    Thu May 21 17:27:30 +0000 2020
>Last-Modified:  Thu May 21 17:30:02 +0000 2020
>Originator:     John Klos
>Release:        NetBSD 8.1_STABLE
>Organization:

>Environment:


System: NetBSD hlin.zia.io 8.1_STABLE NetBSD 8.1_STABLE (HLIN) #0: Sun Oct 20 23:41:10 UTC 2019 john@hlin.zia.io:/usr/obj-evbarm/sys/arch/evbarm/compile/HLIN evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:

lang/python38 fails on NetBSD 8 and NetBSD 9 on sparc64, powerpc, alpha, 
aarch64, mips64eb and possibly others with:

build/temp.netbsd-8.1_STABLE-sparc64-3.8/usr/pkgsrc/lang/python38/work/Python-3.8.0/Modules/_ctypes/callproc.o: 
In function `_ctypes_callproc':
callproc.c:(.text+0x1a80): warning: Warning: reference to the libc supplied alloca(3); 
this most likely will not work. Please use the compiler provided version of alloca(3), 
by supplying the appropriate compiler flags (e.g. not -std=c89).
callproc.c:(.text+0x1a80): warning: Warning: reference to the libc supplied alloca(3); 
this most likely will not work. Please use the compiler provided version of alloca(3), 
by supplying the appropriate compiler flags (e.g. not -std=c89).
*** WARNING: renaming "_ctypes" since importing it failed: 
build/lib.netbsd-8.1_STABLE-sparc64-3.8/_ctypes.so: Undefined PLT symbol "alloca" 
(symnum = 54)

>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Mon, 18 May 2020 17:01:06 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 18 May 2020 17:01:06 +0000
State-Changed-Why:
Is this still the case?

I think this should be fixed since python38-3.8.1nb1 via:

cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/python38/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/python38/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/python38/patches/patch-configure

(and also pkgsrc-2020Q1 has that.)


From: John Klos <john@ziaspace.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/54758 (lang/python38 fails on many architectures)
Date: Mon, 18 May 2020 18:17:40 +0000 (UTC)

 > I think this should be fixed since python38-3.8.1nb1 via:
 >
 > cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/python38/Makefile
 > cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/python38/distinfo
 > cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/python38/patches/patch-configure

 Now it fails everywhere - on NetBSD 7, 8, 9, all architectures:

 ===> configure-message [python38-3.8.3] ===> Configuring for python38-3.8.3
 => Handle X11BASE paths in dlopen(3) calls of _ctypes.so
 => Fixing find_library().
 WARNING: [subst.mk:findlib] Nothing changed in "Lib/ctypes/macholib/dyld.py".
 WARNING: [subst.mk:findlib] Nothing changed in "Lib/distutils/unixccompiler.py".
 ERROR: [subst.mk:findlib] The filename patterns "Lib/ctypes/macholib/dyld.py Lib/distutils/unixccompiler.py" have no effect.
 *** Error code 1

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/54758 (lang/python38 fails on many architectures)
Date: Mon, 18 May 2020 21:29:05 +0200

 Hello John,

 John Klos writes:
 > > I think this should be fixed since python38-3.8.1nb1 via:
 > >
 > > cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/python38/Makefile
 > > cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/python38/distinfo
 > > cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/python38/patches/patch-configure
 >
 > Now it fails everywhere - on NetBSD 7, 8, 9, all architectures:
 >
 > ===> configure-message [python38-3.8.3] ===> Configuring for python38-3.8.3
 > => Handle X11BASE paths in dlopen(3) calls of _ctypes.so
 > => Fixing find_library().
 > WARNING: [subst.mk:findlib] Nothing changed in "Lib/ctypes/macholib/dyld.py".
 > WARNING: [subst.mk:findlib] Nothing changed in "Lib/distutils/unixccompiler.py".
 > ERROR: [subst.mk:findlib] The filename patterns "Lib/ctypes/macholib/dyld.py Lib/distutils/unixccompiler.py" have no effect.
 > *** Error code 1

 Thanks for the quick feedback! (I think that's actually unrelated to
 the reported PR)

 If you are using `/usr/local' as PREFIX, can you please try to add:

  SUBST_NOOP_OK.findlib=  no

 in lang/python38/Makefile:158 (after `SUBST_SED.findlib+= ..')
 and let us know if that fixes this and the original issue?
 (if that's the case feel also free to commit it!)

From: John Klos <john@ziaspace.com>
To: gnats-bugs@netbsd.org
Cc: leot@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/54758 (lang/python38 fails on many architectures)
Date: Mon, 18 May 2020 19:50:46 +0000 (UTC)

 > If you are using `/usr/local' as PREFIX, can you please try to add:
 >
 >  SUBST_NOOP_OK.findlib=  no
 >
 > in lang/python38/Makefile:158 (after `SUBST_SED.findlib+= ..')
 > and let us know if that fixes this and the original issue?
 > (if that's the case feel also free to commit it!)

 Unfortunately, it doesn't fix it for /usr/local, but you're right that it 
 works if LOCALBASE is unset.

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54758 (lang/python38 fails on many architectures)
Date: Mon, 18 May 2020 22:01:00 +0200

 John Klos writes:
 > > If you are using `/usr/local' as PREFIX, can you please try to add:
 > >
 > >  SUBST_NOOP_OK.findlib=  no
 > >
 > > in lang/python38/Makefile:158 (after `SUBST_SED.findlib+= ..')
 > > and let us know if that fixes this and the original issue?
 > > (if that's the case feel also free to commit it!)
 >
 > Unfortunately, it doesn't fix it for /usr/local, but you're right that it 
 > works if LOCALBASE is unset.

 How that fails if LOCALBASE is set?

 (I think `SUBST_NOOP_OK.findlib= no' is needed in order to have a
 possible noop for the `findlib' subst class (that's completely legit if
 `/usr/local' is LOCALBASE/PREFIX) and it would be nice to possibly
 figure out and fix all problems present :))

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54758 (lang/python38 fails on many architectures)
Date: Thu, 21 May 2020 15:10:48 +0200

 Leonardo Taccari writes:
 > [...]  
 > If you are using `/usr/local' as PREFIX, can you please try to add:
 >
 >  SUBST_NOOP_OK.findlib=  no
 > 
 > in lang/python38/Makefile:158 (after `SUBST_SED.findlib+= ..')
 > and let us know if that fixes this and the original issue?
 > (if that's the case feel also free to commit it!)
 > [...]  

 Sorry, I meant:

  SUBST_NOOP_OK.findlib=  yes

From: John Klos <john@ziaspace.com>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/54758 (lang/python38 fails on many architectures)
Date: Thu, 21 May 2020 17:09:18 +0000 (UTC)

 > Sorry, I meant:
 >
 >  SUBST_NOOP_OK.findlib=  yes

 With this, python38 compiles with PREFIX set to /usr/local/

 Thanks!

State-Changed-From-To: feedback->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Thu, 21 May 2020 17:27:30 +0000
State-Changed-Why:
Confirmed fixed, thanks John for the PR and the feedbacks.

The SUBST-related problem reported in the last days should be now
fixed as well on all lang/python* packages.


From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54758 CVS commit: pkgsrc/lang
Date: Thu, 21 May 2020 17:25:13 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Thu May 21 17:25:13 UTC 2020

 Modified Files:
 	pkgsrc/lang/python27: Makefile
 	pkgsrc/lang/python36: Makefile
 	pkgsrc/lang/python37: Makefile
 	pkgsrc/lang/python38: Makefile

 Log Message:
 python*: findlib subst class can be a noop

 It is licit to be a noop for findlib subst class when PREFIX is
 `/usr/local'.

 Thanks to <jklos>! (via PR pkg/54758)


 To generate a diff of this commit:
 cvs rdiff -u -r1.84 -r1.85 pkgsrc/lang/python27/Makefile
 cvs rdiff -u -r1.23 -r1.24 pkgsrc/lang/python36/Makefile
 cvs rdiff -u -r1.16 -r1.17 pkgsrc/lang/python37/Makefile
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/lang/python38/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.