NetBSD-Bugs archive

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

port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails

>Number:         55028
>Category:       port-sparc
>Synopsis:       openssl1-1.1.1dnb2 crosscompilation fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 28 06:50:00 +0000 2020
>Originator:     Alex
>Release:        netbsd 8.1 pkgsrc current
NetBSD localhost 8.1 NetBSD 8.1 (GENERIC) #0: Fri May 31 08:43:59 UTC 2019 amd64

It is impossible to make openssl package for sparc system on my x86-64 system. I can make a libressl package and i think, my build system is configured propertly, but i get this:

crypto/aes/aesni-mb-x86_64.s: Assembler messages:
crypto/aes/aesni-mb-x86_64.s:10: Error: Unknown opcode: `cmpl'
crypto/aes/aesni-mb-x86_64.s:11: Error: Unknown opcode: `jb'
crypto/aes/aesni-mb-x86_64.s:12: Error: Illegal operands
crypto/aes/aesni-mb-x86_64.s:13: Error: Unknown opcode: `testl'
crypto/aes/aesni-mb-x86_64.s:14: Error: Unknown opcode: `jnz'
crypto/aes/aesni-mb-x86_64.s:18: Error: Unknown opcode: `movq'
crypto/aes/aesni-mb-x86_64.s:19: Error: bad register expression
crypto/aes/aesni-mb-x86_64.s:20: Error: Unknown opcode: `pushq'
crypto/aes/aesni-mb-x86_64.s:21: Error: bad register expression
crypto/aes/aesni-mb-x86_64.s:22: Error: Unknown opcode: `pushq'
crypto/aes/aesni-mb-x86_64.s:23: Error: bad register expression
crypto/aes/aesni-mb-x86_64.s:24: Error: Unknown opcode: `pushq'
crypto/aes/aesni-mb-x86_64.s:1498: Error: Unknown opcode: `movq'
crypto/aes/aesni-mb-x86_64.s:1499: Error: bad register expression
crypto/aes/aesni-mb-x86_64.s:1500: Error: Unknown opcode: `movq'
crypto/aes/aesni-mb-x86_64.s:1501: Error: bad register expression
crypto/aes/aesni-mb-x86_64.s:1502: Error: Unknown opcode: `leaq'
crypto/aes/aesni-mb-x86_64.s:1503: Error: bad register expression
gmake[1]: *** [Makefile:831: crypto/aes/aesni-mb-x86_64.o] Error 1
gmake[1]: Leaving directory '/usr/work/security/openssl/work.sparc/openssl-1.1.1d'
gmake: *** [Makefile:175: all] Error 2
*** Error code 2

When trying to build openss.

My /etc/mk.conf

localhost# cat /etc/mk.conf
ACCEPTABLE_LICENSES+= foo pine-license generic-nonlicense gnu-lgpl-v2.1 unrar-license
.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}

May be it is possible to switch dependenced to libressl?

Home | Main Index | Thread Index | Old Index