From owner-freebsd-ppc@freebsd.org Thu Jan 9 09:10:52 2020 Return-Path: Delivered-To: freebsd-ppc@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 4BEBF22E775 for ; Thu, 9 Jan 2020 09:10:52 +0000 (UTC) (envelope-from bugzilla-noreply@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 47tgMJ1Mt3z3L6F for ; Thu, 9 Jan 2020 09:10:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 280A281A1; Thu, 9 Jan 2020 09:10:52 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 2528B81A0 for ; Thu, 9 Jan 2020 09:10:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47tgMH6ZjKz3L65 for ; Thu, 9 Jan 2020 09:10:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DCFE32668D for ; Thu, 9 Jan 2020 09:10:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0099ApAX062316 for ; Thu, 9 Jan 2020 09:10:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0099Apuh062295 for powerpc@FreeBSD.org; Thu, 9 Jan 2020 09:10:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 243180] security/afl: fix build on powerpc64 elfv2 Date: Thu, 09 Jan 2020 09:10:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tobik@freebsd.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2020 09:10:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243180 --- Comment #2 from Piotr Kubaj --- (In reply to Tobias Kortkamp from comment #1) I don't have aarch64 to test on, so I'll leave it up to you :) afl needs -mabi=3Delfv2 because it uses LLVM 8. LLVM 9 has patches that for= elfv2 that are autoapplied when building on elfv2, so that it doesn't use elfv1. This is done with: OPTIONS_DEFAULT_powerpc64=3D ${PPC_ABI:tu:MELFV2} OPENMP ELFV2_EXTRA_PATCHES=3D ${PATCHDIR}/ppc64-elfv2 at https://svnweb.freebsd.org/ports/head/devel/llvm90/Makefile?view=3Dmarkup The extra patches are simply https://svnweb.freebsd.org/ports/head/devel/llvm90/files/ppc64-elfv2/patch-= lib_Target_PowerPC_PPCTargetMachine.cpp?view=3Dmarkup and https://svnweb.freebsd.org/ports/head/devel/llvm90/files/ppc64-elfv2/patch-= tools_clang_lib_Basic_Targets_PPC.h?view=3Dmarkup They just set up clang to build for elfv2. It can be done without those pat= ches by passing -mabi=3Delfv2. LLVM 8 doesn't have those patches but can still build for elfv2 after passi= ng -mabi=3Delfv2. If afl++ is the superior alternative to this port (with only pros and no co= ns), then I guess it's fine not to fix it, but then why keep this port in the tr= ee? :) --=20 You are receiving this mail because: You are on the CC list for the bug.=