NetBSD Problem Report #55028
From www@netbsd.org Fri Feb 28 06:47:34 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 57E811A9213
for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Feb 2020 06:47:34 +0000 (UTC)
Message-Id: <20200228064733.1B06C1A9217@mollari.NetBSD.org>
Date: Fri, 28 Feb 2020 06:47:33 +0000 (UTC)
From: ideafix@ideafix.name
Reply-To: ideafix@ideafix.name
To: gnats-bugs@NetBSD.org
Subject: openssl1-1.1.1dnb2 crosscompilation fails
X-Send-Pr-Version: www-1.0
>Number: 55028
>Category: pkg
>Synopsis: openssl1-1.1.1dnb2 crosscompilation fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Fri Feb 28 06:50:00 +0000 2020
>Last-Modified: Fri Feb 28 09:10:01 +0000 2020
>Originator: Alex
>Release: netbsd 8.1 pkgsrc current
>Organization:
Yefimov
>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:
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.
>How-To-Repeat:
My /etc/mk.conf
localhost# cat /etc/mk.conf
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
.endiflocalhost#
>Fix:
May be it is possible to switch dependenced to libressl?
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
Date: Fri, 28 Feb 2020 07:54:13 +0100
On Fri, Feb 28, 2020 at 06:50:01AM +0000, ideafix@ideafix.name wrote:
> 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'
As you can clearly see from the file name, this is amd64 assembler code,
not sparc code. The package should not even try to compile it, something
went wrong in the configure phase (maybe it did not even notice it is
being cross compiled, or the pkg build system is broken, ...)
Martin
From: <ideafix@ideafix.name>
To: <gnats-bugs@netbsd.org>
Cc:
Subject: RE: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
Date: Fri, 28 Feb 2020 13:03:44 +0500
Hi.
Please, help me to localize the problem. Is this package now sparc
uncompatible because of x86 asm code? Or may be I should to tune my config
files or other build options?
Actually, uncompatible olenssl means death of sparc port.
Alex Y.
-----Original Message-----
From: Martin Husemann <martin@duskware.de>
Sent: Friday, February 28, 2020 11:55 AM
To: port-sparc-maintainer@netbsd.org; gnats-admin@netbsd.org;
netbsd-bugs@netbsd.org; ideafix@ideafix.name
Subject: Re: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
The following reply was made to PR port-sparc/55028; it has been noted by
GNATS.
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
Date: Fri, 28 Feb 2020 07:54:13 +0100
On Fri, Feb 28, 2020 at 06:50:01AM +0000, ideafix@ideafix.name wrote:
> 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'
As you can clearly see from the file name, this is amd64 assembler code,
not sparc code. The package should not even try to compile it, something
went wrong in the configure phase (maybe it did not even notice it is being
cross compiled, or the pkg build system is broken, ...)
Martin
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
Date: Fri, 28 Feb 2020 09:18:30 +0100
Why are you using the pkgsrc openssl instead of the version in base?
Martin
Responsible-Changed-From-To: port-sparc-maintainer->pkg-manager
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Fri, 28 Feb 2020 08:24:09 +0000
Responsible-Changed-Why:
This is a pkgsrc cross-compile issue, not a sparc issue.
Not sure how far support here goes, but at least the people who know
more about this should see it now.
From: <ideafix@ideafix.name>
To: <gnats-bugs@netbsd.org>
Cc:
Subject: RE: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
Date: Fri, 28 Feb 2020 14:09:31 +0500
I am trying to build other packages, and openssl is in dependences. For
example, I want to build mc, htop and other common programs to use and
compare my sparc, alpha, hppa and other unusual systems in one OS. NetBSD is
very good tool to compare and explore old architectures and I want to build
my own local packages repository for all my old hardware).
-----Original Message-----
From: Martin Husemann <martin@duskware.de>
Sent: Friday, February 28, 2020 1:20 PM
To: port-sparc-maintainer@netbsd.org; gnats-admin@netbsd.org;
netbsd-bugs@netbsd.org; ideafix@ideafix.name
Subject: Re: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
The following reply was made to PR port-sparc/55028; it has been noted by
GNATS.
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-sparc/55028: openssl1-1.1.1dnb2 crosscompilation fails
Date: Fri, 28 Feb 2020 09:18:30 +0100
Why are you using the pkgsrc openssl instead of the version in base?
Martin
>Unformatted:
(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.