From nobody Fri May 17 20:51:11 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VgzdX10HNz5K4gS; Fri, 17 May 2024 20:51:12 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VgzdW6FB2z4HrX; Fri, 17 May 2024 20:51:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715979071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OlLjqVE2sBIuICQ0iRKXoVs/mr0NYhOlTXHVQSSMWFI=; b=LhrbbLfZEu71ocmsf3OpMo3oJprXztSN8Pswq2FTycPpoEqwh0m8Zzqo99YvzJaOitetkm DNF1Tt47lIUBou2Ftkwf6+wbqfrdDP92zcUfeudZbMLfuhIawcxPbSTS8UFZuKJjHodyy6 n2zoXyy3q7O6aZ+miES+j2WtPDJSWPk9J+yA8Wx85gi0tuPNyxKzertbu+TvMCY0Ym/ARH kPFDJh/ZhRzJqk5pNuWgV+8iE2cMnA5Kfobe6rJtpRBIhkfy1w9++AspuR+1hfz14DslNV b22xy3kd5F188YaRLGlfpszXYVffmf6gCzhRa63esnnJW1hYRWEyIIRFFf6NlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715979071; a=rsa-sha256; cv=none; b=w8BFKcqAbV9rgs4hbyMxwxOxc6xskPRRvq9gmm263LDBv1EXnH+zwoMaBe9/Zc96NJ4PuT cBA8qbQjV3x4i8y6E0921rO43p80wqMOvHkFN+Gn4hBG9Fp/kAL+rbW27VNrXSqaxjt8Jh R/glAof6ER0xJA65O5OaT6vY/AMW4bHyaCBRXY3odSHQV0iH5/0qP2lacNaiDo8xsKa/qJ k0I66COijpkg4Ejhs1OdNdAeZRKqZtljeN2dQ3YvsjxCNIwsqxTtcSDfa8dIVQ4id2Jad/ qi7BmTO2iGMEIBJpIjsfDNSkSZvqAkMrP0EHw386QXlsDUCLKPFkTlRHFhUf6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715979071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OlLjqVE2sBIuICQ0iRKXoVs/mr0NYhOlTXHVQSSMWFI=; b=jaUvEccYlU6sxwhEiXZ0jOrS0w8zIj92eCMJ+QRIbPo/aFUD9DZ6nj+VLC3HSGyIRjGYNK pX6R/eow8zAvIGtQysuD33QO7aSHD9ddDAeCCU7yoCoFfddlhm/N7/7Rpcb5SL6ZSkdM9y Nu1bW7f9wC6ZhZTjV/ZqYpsjS8ZQ9h6wjY+DAm3oP+1+I4oPzc8zxcAVoPvEvM4Svkzaxk SFWNhJPCw1yXyHmlNr1qnwHCagMD6qkW9Sj5Kx3NsL46x/m3UQ1AL+igyE16t8N6ZatPOZ Q46j6HOUctkJ0E3HdSXPdD5UhU3jZUVMNP9sYO4GALN52le55yb/qhD0ywZOzA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VgzdW5s4Lzy3C; Fri, 17 May 2024 20:51:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44HKpBmx037677; Fri, 17 May 2024 20:51:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44HKpBKe037674; Fri, 17 May 2024 20:51:11 GMT (envelope-from git) Date: Fri, 17 May 2024 20:51:11 GMT Message-Id: <202405172051.44HKpBKe037674@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 61ad1ddc5a81 - main - Improve broken-on-gcc checks List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 61ad1ddc5a81b8f709509d34962e7f26ac163372 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=61ad1ddc5a81b8f709509d34962e7f26ac163372 commit 61ad1ddc5a81b8f709509d34962e7f26ac163372 Author: Brooks Davis AuthorDate: 2024-05-17 20:34:37 +0000 Commit: Brooks Davis CommitDate: 2024-05-17 20:50:57 +0000 Improve broken-on-gcc checks Mark powerpc* and riscv broken. Refactor and add a TRY_GCC_BROKEN option to build anyway. This simplifies things for people trying to get gcc builds working while letting other developers know that they aren't expected to work. Reviewed by: jhb, emaste Improves: 4c0dfd5959bd4 arm: fail early on gcc builds Differential Revision: https://reviews.freebsd.org/D45230 --- Makefile.inc1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 1bf4212b1d5e..90439adcbc09 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -175,7 +175,24 @@ LIBCOMPAT_INCLUDE_DIRS+= arm .if ((defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == "gcc") || \ (!defined(X_COMPILER_TYPE) && ${COMPILER_TYPE} == "gcc")) .if ${TARGET} == "arm" -.error "armv6/armv7 build are broken with gcc. See https://reviews.freebsd.org/D36754" +_GCC_BROKEN="https://reviews.freebsd.org/D36754" +.endif +.if ${TARGET_ARCH} == "powerpc" +_GCC_BROKEN=Missing atomic builtins in libc++. +.endif +.if ${TARGET_ARCH:Mpowerpc64*} +_GCC_BROKEN=libsys.so.7.full has a LOAD segment with RWX permissions. +.endif +.if ${TARGET} == "riscv" +_GCC_BROKEN=boot code linker script issues. +.endif +.if defined(_GCC_BROKEN) +.warning Target ${TARGET} is broken with GCC: ${_GCC_BROKEN} +.if defined(TRY_GCC_BROKEN) +.warning Trying build anyway. +.else +.error Avoiding broken build. Define TRY_GCC_BROKEN to try anyway. +.endif .endif .endif