From owner-freebsd-ports@freebsd.org Sun Oct 27 23:55:09 2019 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A338915C121 for ; Sun, 27 Oct 2019 23:55:09 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 471ZTn3rKlz4JKJ; Sun, 27 Oct 2019 23:55:09 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 7C99D19572; Sun, 27 Oct 2019 23:55:09 +0000 (UTC) From: Jan Beich To: Mark Millard Cc: ports-list freebsd Subject: Re: security/nss (from head -r515742): build failure for poudriere-devel based amd64->armv7 (cortex-a7) cross build, it tried to build aes-armv8.c and failed References: Date: Mon, 28 Oct 2019 00:55:08 +0100 In-Reply-To: (Mark Millard's message of "Sun, 27 Oct 2019 16:24:16 -0700") Message-ID: <36fd-oiar-wny@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2019 23:55:09 -0000 Mark Millard writes: > For some reason security/nss tried to build "-march=armv8-a -mfpu=crypto-neon-fp-armv8 aes-armv8.c" > material when targeting armv7 (cortex-a7). This did not go well . . . ARMv8 isn't limited to 64-bit mode. NSS 3.47 builds fine on 12.0 armv7, see http://www.ipv6proxy.net/go.php?u=http://beefy13.nyi.freebsd.org/data/120armv7-quarterly/515271/logs/nss-3.47.log $ clang -target armv7-unknown-freebsd13.0-gnueabihf \ -march=armv8-a -mfpu=crypto-neon-fp-armv8 \ -dM -E - /nxb-bin/usr/bin/cc ... -O2 -pipe -mcpu=cortex-a7 ... > aes-armv8.c:13:2: error: "Compiler option is invalid" > #error "Compiler option is invalid" > ^ > aes-armv8.c:65:17: error: implicit declaration of function 'vaeseq_u8' is invalid in C99 [-Werror,-Wimplicit-function-declaration] > state = vaeseq_u8(state, key1); > ^ -mcpu=cortex-a7 is not part of vendor CFLAGS. Did you define CPUTYPE or similar in make.conf(5) ?