NetBSD Problem Report #55048

From www@netbsd.org  Thu Mar  5 16:01:28 2020
Return-Path: <www@netbsd.org>
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 61A241A9217
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  5 Mar 2020 16:01:28 +0000 (UTC)
Message-Id: <20200305160119.10AC01A9243@mollari.NetBSD.org>
Date: Thu,  5 Mar 2020 16:01:19 +0000 (UTC)
From: ideafix@ideafix.name
Reply-To: ideafix@ideafix.name
To: gnats-bugs@NetBSD.org
Subject: lang/perl5 crosscompilation
X-Send-Pr-Version: www-1.0

>Number:         55048
>Category:       pkg
>Synopsis:       lang/perl5 crosscompilation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 05 16:05:00 +0000 2020
>Last-Modified:  Wed Jun 17 07:41:12 +0000 2020
>Originator:     Alex
>Release:        NETBSD 8.1 PKGSRC 2019Q3
>Organization:
>Environment:
NetBSD localhost 8.1 NetBSD 8.1 (GENERIC) #0: Fri May 31 08:43:59 UTC 2019  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Cannot make package of lang/perl5

I used the command:

        sparc--netbsdelf-gcc -o try -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/usr/pkg/include -pthread -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib try.c -lm -lcrypt -lpthread
         ./try

and I got the following output:

sh: Cannot execute ELF binary ./try
The program compiled OK, but exited with status 2.
You have a problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/perl5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/perl5
>How-To-Repeat:
just make configure in lang/perl5 with this mk.comf:

WRKOBJDIR=/usr/work
DISTDIR=/usr/distfiles
ACCEPTABLE_LICENSES+= foo pine-license generic-nonlicense gnu-lgpl-v2.1 unrar-license
ALLOW_VULNERABLE_PACKAGES=yes
USE_CROSS_COMPILE?=  yes
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
MACHINE_ARCH=        sparc
TOOLDIR=             /usr/obj/tooldir.NetBSD-8.1-amd64
CROSS_DESTDIR=       /usr/obj/destdir.sparc
PACKAGES=            ${PKGSRCDIR}/packages.${MACHINE_ARCH}
WRKDIR_BASENAME=     work.${MACHINE_ARCH}
USE_CWRAPPERS=       no
.endif



>Fix:
may be a good manual how to cross compile?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-sparc-maintainer->pkgsrc-maintainer
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Thu, 05 Mar 2020 16:45:03 +0000
Responsible-Changed-Why:
Not a sparc specific problem


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/55048 (lang/perl5 crosscompilation)
Date: Thu, 5 Mar 2020 17:45:55 +0100

 AFAIK perl can not be cross compiled (but I haven't followed it closely
 in the last years).

 Martin

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc/55048: lang/perl5 crosscompilation
Date: Thu, 5 Mar 2020 23:07:01 +0100

 On Thu, Mar 05, 2020 at 04:05:00PM +0000, ideafix@ideafix.name wrote:
 > >Synopsis:       lang/perl5 crosscompilation

 perl5 doesn't support cross-compilation. Fundamentally. Some Linux
 distributions run configure locally and then ship the result for the
 same hardware, but that's about it. This is pretty much a fundamental
 "wont-fix"

 Joerg

From: Idea Fix <ideafix@ideafix.name>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc/55048: lang/perl5 crosscompilation
Date: Fri, 6 Mar 2020 09:22:27 +0500

 --000000000000f425e305a0280052
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 Please, help me to find a way to make a local pkg base for my sparc32. May
 be, I can build perl and python on my sparc machine, but how can I build
 other soft on x86? How can I solve dependences? For example, openssl 1.0.2
 wants perl.



 Also, people ftom openwrt can crosscompile perl... or not?

 =D0=BF=D1=82, 6 =D0=BC=D0=B0=D1=80. 2020 =D0=B3. =D0=B2 03:10, Joerg Sonnen=
 berger <joerg@bec.de>:

 > The following reply was made to PR pkg/55048; it has been noted by GNATS.
 >
 > From: Joerg Sonnenberger <joerg@bec.de>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: port-sparc/55048: lang/perl5 crosscompilation
 > Date: Thu, 5 Mar 2020 23:07:01 +0100
 >
 >  On Thu, Mar 05, 2020 at 04:05:00PM +0000, ideafix@ideafix.name wrote:
 >  > >Synopsis:       lang/perl5 crosscompilation
 >
 >  perl5 doesn't support cross-compilation. Fundamentally. Some Linux
 >  distributions run configure locally and then ship the result for the
 >  same hardware, but that's about it. This is pretty much a fundamental
 >  "wont-fix"
 >
 >  Joerg
 >
 >

 --000000000000f425e305a0280052
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div dir=3D"ltr">



















 <p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:=
 11pt;font-family:&quot;Calibri&quot;,sans-serif">Please, help me to find a =
 way to make a local pkg base
 for my sparc32. May be, I can build perl and python on my sparc machine, bu=
 t
 how can I build other soft on x86? How can I solve dependences? For example=
 ,
 openssl 1.0.2 wants perl.<span></span></p>

 <p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:=
 11pt;font-family:&quot;Calibri&quot;,sans-serif"><span>=C2=A0</span></p>

 <p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:=
 11pt;font-family:&quot;Calibri&quot;,sans-serif">Also, people ftom openwrt =
 can crosscompile perl... or
 not?<span></span></p>





 </div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
 =D0=BF=D1=82, 6 =D0=BC=D0=B0=D1=80. 2020 =D0=B3. =D0=B2 03:10, Joerg Sonnen=
 berger &lt;<a href=3D"mailto:joerg@bec.de">joerg@bec.de</a>&gt;:<br></div><=
 blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
 eft:1px solid rgb(204,204,204);padding-left:1ex">The following reply was ma=
 de to PR pkg/55048; it has been noted by GNATS.<br>
 <br>
 From: Joerg Sonnenberger &lt;<a href=3D"mailto:joerg@bec.de" target=3D"_bla=
 nk">joerg@bec.de</a>&gt;<br>
 To: <a href=3D"mailto:gnats-bugs@netbsd.org" target=3D"_blank">gnats-bugs@n=
 etbsd.org</a><br>
 Cc: <br>
 Subject: Re: port-sparc/55048: lang/perl5 crosscompilation<br>
 Date: Thu, 5 Mar 2020 23:07:01 +0100<br>
 <br>
 =C2=A0On Thu, Mar 05, 2020 at 04:05:00PM +0000, <a href=3D"mailto:ideafix@i=
 deafix.name" target=3D"_blank">ideafix@ideafix.name</a> wrote:<br>
 =C2=A0&gt; &gt;Synopsis:=C2=A0 =C2=A0 =C2=A0 =C2=A0lang/perl5 crosscompilat=
 ion<br>
 <br>
 =C2=A0perl5 doesn&#39;t support cross-compilation. Fundamentally. Some Linu=
 x<br>
 =C2=A0distributions run configure locally and then ship the result for the<=
 br>
 =C2=A0same hardware, but that&#39;s about it. This is pretty much a fundame=
 ntal<br>
 =C2=A0&quot;wont-fix&quot;<br>
 <br>
 =C2=A0Joerg<br>
 <br>
 </blockquote></div>

 --000000000000f425e305a0280052--

From: Jens Rehsack <sno@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: pkgsrc-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 ideafix@ideafix.name
Subject: Re: port-sparc/55048: lang/perl5 crosscompilation
Date: Tue, 10 Mar 2020 08:49:56 +0100

 --Apple-Mail=_AC65A9BB-2D5B-4129-86B1-538B667C8EAD
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii



 > Am 05.03.2020 um 23:10 schrieb Joerg Sonnenberger <joerg@bec.de>:
 > 
 > The following reply was made to PR pkg/55048; it has been noted by GNATS.
 > 
 > From: Joerg Sonnenberger <joerg@bec.de>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: port-sparc/55048: lang/perl5 crosscompilation
 > Date: Thu, 5 Mar 2020 23:07:01 +0100
 > 
 > On Thu, Mar 05, 2020 at 04:05:00PM +0000, ideafix@ideafix.name wrote:
 >>> Synopsis:       lang/perl5 crosscompilation
 > 
 > perl5 doesn't support cross-compilation. Fundamentally. Some Linux
 > distributions run configure locally and then ship the result for the
 > same hardware, but that's about it. This is pretty much a fundamental
 > "wont-fix"

 Meanwhile there is a Cross/ folde where cross compiling is supported.
 I didn't dig into that, but I've seen that Yocto makes use of it since Zeus.

 Cheers
 --
 Jens Rehsack - sno@NetBSD.org
 pkgsrc,perl5


 --Apple-Mail=_AC65A9BB-2D5B-4129-86B1-538B667C8EAD
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP

 -----BEGIN PGP SIGNATURE-----

 iQIzBAEBCgAdFiEEGutaqWUYV+tvC/mCRJmWrtzlCp0FAl5nRqQACgkQRJmWrtzl
 Cp3/uA/+P4DMfOFWZT8Kyx4DZ6MS3H52WGOmzd/Fo+36FesIsHp1ZWOqh50T9xUK
 T8y75hwTcH4sOdPLVJshcNOcz0catbXRogp5yMGuq7OX3qXOcmAozRCNpiWmvO1f
 9462ij/2oNZ7GOVh4qWlF/otDZwV0SNqCG/YUWa+UbtP6u4M9Tr3qOXhRPDJMCd5
 EZlW0ROFFM1+hA3evjRw+gDTqWiaAT6R4v6SsLZTK/mKlVB2zkdvYD75aVYk3UdS
 GQt21nk3Pv/Xn8dDWKvXFxrXMN6uwGiFlMulaD4gpxIW146BlfrHaTxhCR0FmF9Z
 bWXXlFWe3UZ1hpMgFwPxqFTR9PZef02XileyccIkftINV2b0FXSXOmHINFGFkUy/
 GgMTJsZmLUMyZN/lUQvJ2gi9NeLkvSseyXN5/Fk1nVPPTRc29HppqRhmTqFYf036
 ncZeVRRGVv3v9UjDZ6PXTCESKnYAgyPkAwyUBsZh5kGW/sYAu0XMfiJh2AtfbGez
 tE/7alCKYnIRIcaXQjLDuRUQcgxtHqwI582gKD1oJwzmvaKngtM+mXgMGLP9v0pu
 B+ExhUI3umHa7h94Iap40wNe+moFxid/rSKzSDzAe95iYsQZbRZJaKkLupFiHhKJ
 jSEmiIlGiY9OFSQZMmBUgxLKqPzxdw5FCgWhVqTlIWfKQU/ENyc=
 =Tm9F
 -----END PGP SIGNATURE-----

 --Apple-Mail=_AC65A9BB-2D5B-4129-86B1-538B667C8EAD--

From: <ideafix@ideafix.name>
To: <gnats-bugs@netbsd.org>
Cc: 
Subject: RE: port-sparc/55048: lang/perl5 crosscompilation
Date: Tue, 10 Mar 2020 13:26:51 +0500

 Now I am trying to use qemu-system-sparc (ss20, -smp 4 512 ram) but it is
 VERY slow... I found no exact how to tune cross compilation for sparc32.
 Openssl 1.1.1 in 2019Q4 does not work, perl and python in 2019Q3 does not
 work via cross compilation. Native compilation is very slow, qemu - just
 slow.

 -----Original Message-----
 From: Jens Rehsack <sno@netbsd.org> 
 Sent: Tuesday, March 10, 2020 12:55 PM
 To: pkgsrc-maintainer@netbsd.org; gnats-admin@netbsd.org;
 pkgsrc-bugs@netbsd.org; ideafix@ideafix.name
 Subject: Re: port-sparc/55048: lang/perl5 crosscompilation

 The following reply was made to PR pkg/55048; it has been noted by GNATS.

 From: Jens Rehsack <sno@netbsd.org>
 To: gnats-bugs@netbsd.org
 Cc: pkgsrc-maintainer@netbsd.org,
  gnats-admin@netbsd.org,
  pkgsrc-bugs@netbsd.org,
  ideafix@ideafix.name
 Subject: Re: port-sparc/55048: lang/perl5 crosscompilation
 Date: Tue, 10 Mar 2020 08:49:56 +0100

  --Apple-Mail=_AC65A9BB-2D5B-4129-86B1-538B667C8EAD
  Content-Transfer-Encoding: 7bit
  Content-Type: text/plain;
  	charset=us-ascii



  > Am 05.03.2020 um 23:10 schrieb Joerg Sonnenberger <joerg@bec.de>:
  >
  > The following reply was made to PR pkg/55048; it has been noted by GNATS.
  >
  > From: Joerg Sonnenberger <joerg@bec.de>  > To: gnats-bugs@netbsd.org  >
 Cc:
  > Subject: Re: port-sparc/55048: lang/perl5 crosscompilation  > Date: Thu,
 5 Mar 2020 23:07:01 +0100  >  > On Thu, Mar 05, 2020 at 04:05:00PM +0000,
 ideafix@ideafix.name wrote:
  >>> Synopsis:       lang/perl5 crosscompilation
  >
  > perl5 doesn't support cross-compilation. Fundamentally. Some Linux  >
 distributions run configure locally and then ship the result for the  > same
 hardware, but that's about it. This is pretty much a fundamental  >
 "wont-fix"

  Meanwhile there is a Cross/ folde where cross compiling is supported.
  I didn't dig into that, but I've seen that Yocto makes use of it since
 Zeus.

  Cheers
  --
  Jens Rehsack - sno@NetBSD.org
  pkgsrc,perl5


  --Apple-Mail=_AC65A9BB-2D5B-4129-86B1-538B667C8EAD
  Content-Transfer-Encoding: 7bit
  Content-Disposition: attachment;
  	filename=signature.asc
  Content-Type: application/pgp-signature;
  	name=signature.asc
  Content-Description: Message signed with OpenPGP

  -----BEGIN PGP SIGNATURE-----

  iQIzBAEBCgAdFiEEGutaqWUYV+tvC/mCRJmWrtzlCp0FAl5nRqQACgkQRJmWrtzl
  Cp3/uA/+P4DMfOFWZT8Kyx4DZ6MS3H52WGOmzd/Fo+36FesIsHp1ZWOqh50T9xUK
  T8y75hwTcH4sOdPLVJshcNOcz0catbXRogp5yMGuq7OX3qXOcmAozRCNpiWmvO1f
  9462ij/2oNZ7GOVh4qWlF/otDZwV0SNqCG/YUWa+UbtP6u4M9Tr3qOXhRPDJMCd5
  EZlW0ROFFM1+hA3evjRw+gDTqWiaAT6R4v6SsLZTK/mKlVB2zkdvYD75aVYk3UdS
  GQt21nk3Pv/Xn8dDWKvXFxrXMN6uwGiFlMulaD4gpxIW146BlfrHaTxhCR0FmF9Z
  bWXXlFWe3UZ1hpMgFwPxqFTR9PZef02XileyccIkftINV2b0FXSXOmHINFGFkUy/
  GgMTJsZmLUMyZN/lUQvJ2gi9NeLkvSseyXN5/Fk1nVPPTRc29HppqRhmTqFYf036
  ncZeVRRGVv3v9UjDZ6PXTCESKnYAgyPkAwyUBsZh5kGW/sYAu0XMfiJh2AtfbGez
  tE/7alCKYnIRIcaXQjLDuRUQcgxtHqwI582gKD1oJwzmvaKngtM+mXgMGLP9v0pu
  B+ExhUI3umHa7h94Iap40wNe+moFxid/rSKzSDzAe95iYsQZbRZJaKkLupFiHhKJ
  jSEmiIlGiY9OFSQZMmBUgxLKqPzxdw5FCgWhVqTlIWfKQU/ENyc=
  =Tm9F
  -----END PGP SIGNATURE-----

  --Apple-Mail=_AC65A9BB-2D5B-4129-86B1-538B667C8EAD--


Responsible-Changed-From-To: pkgsrc-maintainer->pkg-manager
Responsible-Changed-By: spz@NetBSD.org
Responsible-Changed-When: Wed, 17 Jun 2020 07:41:12 +0000
Responsible-Changed-Why:
pkgsrc-maintainer doesn't exist


>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.