NetBSD Problem Report #35555
From dauphin@enst.fr Tue Feb 6 16:09:14 2007
Return-Path: <dauphin@enst.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 3720863BAF4
for <gnats-bugs@gnats.netbsd.org>; Tue, 6 Feb 2007 16:09:14 +0000 (UTC)
Message-Id: <1170778153.23903@bi.enst.fr>
Date: Tue, 6 Feb 2007 17:09:13 +0100
From: "Gilles Dauphin" <dauphin@enst.fr>
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Subject: lang/python24 Sunpro amd64 Solaris 10
X-Send-Pr-Version: gtk-send-pr 0.4.5
X-GNATS-Notify:
>Number: 35555
>Category: pkg
>Synopsis: lang/python24 Sunpro amd64 Solaris 10
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 06 16:10:00 +0000 2007
>Closed-Date: Tue Feb 06 20:35:02 +0000 2007
>Last-Modified: Wed Feb 07 18:30:01 +0000 2007
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic_118855-19 i86pc
>Description:
ranlib libpython2.4.a
if test libpython2.4.so.1.0 != libpython2.4.so; then cc64 -G -Wl,-hlibpython2.4.so.1.0 -o libpython2.4.so.1.0 -R/usr/pkg/lib -L/usr
/pkg/lib -Wl,-R/usr/pkg/lib Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/pa
rser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadl
ine.o Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/cellobject.o Objects/classobjec
t.o Objects/cobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/genobject.o Objects/fileobjec
t.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobje
ct.o Objects/longobject.o Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc
.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobj
ect.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o Python/bltinmodule.o Python/e
xceptions.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future
.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getmtime.o Python/getplatform.o Python/getversion.o Pyt
hon/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o
Python/pyfpe.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback
.o Python/getopt.o Python/pystrtod.o Python/dynload_shlib.o Python/thread.o Modules/config.o Modules/getpath.o Modules/main
.o Modules/gcmodule.o Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdm
odule.o Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o -lresolv -lsock
et -lnsl -ldl -lrt -R/usr/pkg/lib -L/usr/pkg/lib -ldb4 -lm; /usr/bin/ln -f libpython2.4.so.1.0 libpython2.4.so; else cc64 -G -o l
ibpython2.4.so -R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/
listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/gra
mmar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Obje
cts/cellobject.o Objects/classobject.o Objects/cobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Ob
jects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Ob
jects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o
Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o O
bjects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodecty
pe.o Python/bltinmodule.o Python/exceptions.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o
Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getmtime.o Python/get
platform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Pytho
n/mystrtoul.o Python/mysnprintf.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o
Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrtod.o Python/dynload_shlib.o Python/thread.o Modules/confi
g.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o
Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o
Modules/xxsubtype.o -lresolv -lsocket -lnsl -ldl -lrt -R/usr/pkg/lib -L/usr/pkg/lib -ldb4 -lm; fi
ERROR: [transform-sunpro-cc] cmd = /pkg/obj/lang/python24/work/.wrapper/bin/cc64
ln: cannot access libpython2.4.so.1.0
*** Error code 2
Stop.
bmake: stopped in /pkg/obj/lang/python24/work/Python-2.4.3
*** Error code 1
>How-To-Repeat:
bmake
>Fix:
it works with PKGSRC_COMPILER=gcc
Does not help but...
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Tue, 06 Feb 2007 19:20:47 +0000
Responsible-Changed-Why:
I broke it.
State-Changed-From-To: open->analyzed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Tue, 06 Feb 2007 19:20:47 +0000
State-Changed-Why:
I know what's going wrong and how to fix it.
From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/35555: lang/python24 Sunpro amd64 Solaris 10
Date: Tue, 06 Feb 2007 20:20:04 +0100
Gilles Dauphin wrote:
> ERROR: [transform-sunpro-cc] cmd = /pkg/obj/lang/python24/work/.wrapper/bin/cc64
That's my fault. As you can see in the mk/wrapper/transform-sunpro-cc
file, it can only handle compilers whose names are either cc, gcc, CC,
g++ or c++.
I know that this conflicts with the Solaris 64 bit tricks I suggested in
the pkgsrc guide.
I think I will fix it the right way by passing the compiler wrappers an
identifier, so they know whether they are a wrapper for:
* a C compiler
* a C++ compiler
* a Fortran compiler
* libtool
* the linker
* something else I forgot to list here
* something completely different
Then the obviously short-sighted test for the basename of the compiler
will go away.
To get your problem solved quickly, you can replace "cc | gcc" with "cc
| cc64 | gcc", and similar in the next line.
Roland
State-Changed-From-To: analyzed->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Tue, 06 Feb 2007 20:35:02 +0000
State-Changed-Why:
I've fixed it.
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35555 CVS commit: pkgsrc/mk/wrapper
Date: Tue, 6 Feb 2007 20:33:51 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Tue Feb 6 20:33:51 UTC 2007
Modified Files:
pkgsrc/mk/wrapper: bsd.wrapper.mk transform-sunpro-cc wrapper.sh
Log Message:
Added a new variable wrapper_type to the wrappers, so that the
transformations can decide whether they happen in a C or a C++ compiler.
Now the wrappers don't depend on the basename of the executed compiler
wrapper anymore.
Fixes PR 35555.
To generate a diff of this commit:
cvs rdiff -r1.62 -r1.63 pkgsrc/mk/wrapper/bsd.wrapper.mk
cvs rdiff -r1.23 -r1.24 pkgsrc/mk/wrapper/transform-sunpro-cc
cvs rdiff -r1.13 -r1.14 pkgsrc/mk/wrapper/wrapper.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: rillig@NetBSD.org, gnats-admin@NetBSD.org, gnats-bugs@NetBSD.org
Cc:
Subject: Re: PR/35555 CVS commit: pkgsrc/mk/wrapper
Date: Wed, 7 Feb 2007 12:30:10 +0100 (CET)
> From: Roland Illig <rillig@netbsd.org>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: PR/35555 CVS commit: pkgsrc/mk/wrapper
> Date: Tue, 6 Feb 2007 20:33:51 +0000 (UTC)
>
> Module Name: pkgsrc
> Committed By: rillig
> Date: Tue Feb 6 20:33:51 UTC 2007
>
> Modified Files:
> pkgsrc/mk/wrapper: bsd.wrapper.mk transform-sunpro-cc wrapper.sh
>
> Log Message:
> Added a new variable wrapper_type to the wrappers, so that the
> transformations can decide whether they happen in a C or a C++ compiler.
> Now the wrappers don't depend on the basename of the executed compiler
> wrapper anymore.
>
Roland , thanks for this fast patch.
but it does not solve fully python24 on amd64.
here is a wished patch for sunpro wrapper, because of Sun compiler bug:
--- mk/wrapper/transform-sunpro-cc.orig Wed Feb 7 10:04:16 2007
+++ mk/wrapper/transform-sunpro-cc Wed Feb 7 12:24:03 2007
@@ -89,7 +89,10 @@
--export-dynamic |\
-shared ) transform_to "-G" ;;
--fPIC |\
+# This day 7 feb 2007 , SUNpro amd64 don't know -xcode option
+# Sun bug, and Sun don't schedule to correct it. See Sunsolve :(
+-xcode=pic* ) transform_to "-KPIC" ;;
+-fPIC ) transform_to "-KPIC" ;;
-fpic ) transform_to "-Kpic" ;;
-KPIC ) transform_pass ;;
Cheers,
Gilles
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: rillig@NetBSD.org, gnats-admin@NetBSD.org, gnats-bugs@NetBSD.org
Cc:
Subject: Re: PR/35555 CVS commit: pkgsrc/mk/wrapper
Date: Wed, 7 Feb 2007 15:27:59 +0100 (CET)
I forgot: Studio11 still support -KPIC for sparc and is equivalent to
-xcode=pic32.
Gilles
>
> Roland , thanks for this fast patch.
> but it does not solve fully python24 on amd64.
> here is a wished patch for sunpro wrapper, because of Sun compiler bug:
>
> --- mk/wrapper/transform-sunpro-cc.orig Wed Feb 7 10:04:16 2007
> +++ mk/wrapper/transform-sunpro-cc Wed Feb 7 12:24:03 2007
> @@ -89,7 +89,10 @@
> --export-dynamic |\
> -shared ) transform_to "-G" ;;
>
> --fPIC |\
> +# This day 7 feb 2007 , SUNpro amd64 don't know -xcode option
> +# Sun bug, and Sun don't schedule to correct it. See Sunsolve :(
> +-xcode=pic* ) transform_to "-KPIC" ;;
> +-fPIC ) transform_to "-KPIC" ;;
> -fpic ) transform_to "-Kpic" ;;
> -KPIC ) transform_pass ;;
>
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35555 CVS commit: pkgsrc/mk/wrapper
Date: Wed, 7 Feb 2007 18:25:29 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Wed Feb 7 18:25:29 UTC 2007
Modified Files:
pkgsrc/mk/wrapper: transform-sunpro-cc
Log Message:
Added option handlers for all of -fPIC, -fpic, -KPIC, -kPIC,
-xcode=pic13 and -xcode=pic32, as suggested in PR 35555.
This also fixes and old bug where -fPIC (32 bit) had been translated to
-kpic (13 bit), but apparently that doesn't make a big difference in
practice.
To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 pkgsrc/mk/wrapper/transform-sunpro-cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.