From nobody Tue Feb 22 08:41:38 2022 X-Original-To: dev-commits-ports-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 806BC19D591F; Tue, 22 Feb 2022 08:41:38 +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 4K2t1t383Hz3nl9; Tue, 22 Feb 2022 08:41:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645519298; 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=mKEOdbR0awSh5Wke83g3nMB9nFEswqJ8UVszmfjSuIU=; b=XDUIMUAKfWjss8s7pWzvINLmbm30tFQ3jHMwhukXpT+nKGcM6v72t3JpcdHz6t5yZyglE9 BYDLw5LDvXAiBSKhY/Ztxgx2BglPXKOvWzTG140JYIp0Vq8Ng4WMzHNK8sSDNcyXsgV/MU Xsxfmm0+Iw9Tcy1P8OsX5aLAJJnDd1x0mGgQhNxETtuZ7ZLgyfTiDrodpBvkz5pVoXVLCu pxyGUb2wH74Jqu3sP1uihEI3iMnxnNowCOsydcqhM9jvf2DColiLRPiGAef2aqIns9DLOk LmxDBWPkpfspIRcM2eA1aLlDRFstO2ssuSpdxpKSdTyAXVbZKAFSPrZsXgnH5A== 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 4D1D320F95; Tue, 22 Feb 2022 08:41:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21M8fccX023552; Tue, 22 Feb 2022 08:41:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21M8fc6t023551; Tue, 22 Feb 2022 08:41:38 GMT (envelope-from git) Date: Tue, 22 Feb 2022 08:41:38 GMT Message-Id: <202202220841.21M8fc6t023551@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: a8e4b7a7e4cd - main - graphics/libglvnd: fix build on powerpc64 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a8e4b7a7e4cdc67a920e8ce202aad724775af914 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645519298; 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=mKEOdbR0awSh5Wke83g3nMB9nFEswqJ8UVszmfjSuIU=; b=GuEqRaIwU8jtjft+iq97jL4K4fZCWJf8AQDo5z2Y8pP2KGDt0PP88bjw+wO4aDwgS9l/pH kWtwGcakbeGM0lfRsie1jULzJzB+YW/HOfgAD7J0zzIUEcD7hfOxGIw3Gy5jLjUKGZCcnk X+DE2l+y5qyQqjk9ssymoKFsUJjb66+5tFHp7lx1XviL7uC5RkRq5jHi22+/dKHUL3VS2p a37gH4Mg18yFKM9ZxIA/AquI3Jbl+p6W4prC1tTGBqO58FHRBr3i/JoPXacBfFruHAOhUt c4UEPjZFVqaQ2zZ1ixIBCKUBrTgO9HaH6yqpFJGlAtFfWW22wxVS1WsfSwHrHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645519298; a=rsa-sha256; cv=none; b=qZxnu3QyVxfFN0/gVmia6Lxl19V3cHyevQhMT+zSTZpDZhFc17ecjqAvfr31UW7wBQ661r hB+Y5P3XsHsvViOfBOtle9cOu4oaCVBOniDviMXDabTwCaMUYsTJaU+Sb3uzCjwLw9A4zD ahW2bysUI2d5ri7QnOzk6c6j4o0+lFKVaZ6wCyKY/VnoAKzgkvpOTeYupAmg4jKkYrWCDi r3zG2vkCGoHWdacgJ7frbC47FXZLqXjkq/N8PaNlbRqaq0vyZRJHkUdBmExuj0+IPCO3MN 5kWCc8LslnAuz0F/UdkfKlag++MfqwXoxN76XE/ul9jkIYEOwacO6IXc6NvW3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=a8e4b7a7e4cdc67a920e8ce202aad724775af914 commit a8e4b7a7e4cdc67a920e8ce202aad724775af914 Author: Piotr Kubaj AuthorDate: 2022-02-22 08:33:42 +0000 Commit: Piotr Kubaj CommitDate: 2022-02-22 08:33:42 +0000 graphics/libglvnd: fix build on powerpc64 While the previous fix works on powerpc64le, it looks like on powerpc64 clang is misoptimizing the code, needing -O0: cc -Isrc/util/libcJSON.a.p -Isrc/util -I../src/util -fvisibility=hidden -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O3 -DUSE_PPC64_ASM -DENABLE_EGL_X11 -DHAVE_TYPEOF -DGLDISPATCH_USE_TLS -DUSE_DISPATCH_ASM -DUSE_ATTRIBUTE_CONSTRUCTOR -DHAVE_PTHREAD_RWLOCK -DHAVE_SYNC_INTRINSICS -DHAVE_MINCORE -DHAVE_RTLD_NOLOAD -DHAVE_DIRENT_DTYPE -DGLDISPATCH_ENABLE_PATCHING -DEGL_NO_X11 -O2 -pipe -no-integrated-as -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ src/util/libcJSON.a.p/cJSON.c.o -MF src/util/libcJSON.a.p/cJSON.c.o.d -o src/util/libcJSON.a.p/cJSON.c.o -c ../src/util/cJSON.c /tmp/cJSON-528d5f.s: Assembler messages: /tmp/cJSON-528d5f.s:327: Error: unrecognized opcode: `vxor' /tmp/cJSON-528d5f.s:337: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:339: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:340: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:1507: Error: unrecognized opcode: `vxor' /tmp/cJSON-528d5f.s:1515: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:1517: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:1519: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:1520: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:1937: Error: unrecognized opcode: `lvx' /tmp/cJSON-528d5f.s:1940: Error: unrecognized opcode: `lvx' /tmp/cJSON-528d5f.s:1942: Error: unrecognized opcode: `vspltb' /tmp/cJSON-528d5f.s:1948: Error: unrecognized opcode: `lvx' /tmp/cJSON-528d5f.s:1950: Error: unrecognized opcode: `lvx' /tmp/cJSON-528d5f.s:1951: Error: unrecognized opcode: `lvsl' /tmp/cJSON-528d5f.s:1952: Error: unrecognized opcode: `vperm' /tmp/cJSON-528d5f.s:1953: Error: unrecognized opcode: `vcmpequb' /tmp/cJSON-528d5f.s:1954: Error: unrecognized opcode: `vsel' /tmp/cJSON-528d5f.s:1955: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:2314: Error: unrecognized opcode: `vxor' /tmp/cJSON-528d5f.s:2321: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:2323: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:2325: Error: unrecognized opcode: `stvx' /tmp/cJSON-528d5f.s:2327: Error: unrecognized opcode: `stvx' cc: error: assembler command failed with exit code 1 (use -v to see invocation) --- graphics/libglvnd/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graphics/libglvnd/Makefile b/graphics/libglvnd/Makefile index f54418205347..5315970b50a8 100644 --- a/graphics/libglvnd/Makefile +++ b/graphics/libglvnd/Makefile @@ -27,9 +27,12 @@ X11_MESON_ENABLED= x11 glx .include -.if ${ARCH:Mpowerpc64*} +.if ${ARCH} == powerpc64le BUILD_DEPENDS= as:devel/binutils CFLAGS+= -no-integrated-as +.elif ${ARCH} == powerpc64 +BUILD_DEPENDS= as:devel/binutils +CFLAGS+= -no-integrated-as -O0 .endif # Lots of software expects gl.pc even when it can build with EGL only