NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-sparc/55048: lang/perl5 crosscompilation



>Number:         55048
>Category:       port-sparc
>Synopsis:       lang/perl5 crosscompilation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 05 16:05:00 +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@localhost:/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?



Home | Main Index | Thread Index | Old Index