From nobody Fri Jan 12 21:08:01 2024 X-Original-To: toolchain@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 4TBYz72ny7z56Mhq for ; Fri, 12 Jan 2024 21:08:03 +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) 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 4TBYz71lVCz4V9B for ; Fri, 12 Jan 2024 21:08:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705093683; 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: in-reply-to:in-reply-to:references:references; bh=Y+vwwBY9X3I2rtyd2l1Mk8rxBUVZ7P/Xe5sylCk29U8=; b=RMp7Arz2WPVVyYYmGBkVj56Z5gdt0IrzN5h9n19xPOeagBc0ex6gojvqAE6ayK1HvPrKmk sYKtt6K0YZQtf5rIwPdN2ytY7HpeIoszqylSnJeJUQ3GpVQ/vyoz+XdGCc6KDfF3CUCSOz CQW/lVD7424O19wDuFLr8TxmeR7WKvhNqnJkjAg9L60zTMKAv0fcYS/aU9DhE8kz+/DpJp HB3MKSuYu0/LvHEqsuZ1fiASXoec1253RmAGbCqJyyDzLnZUQDsWDfvR8OlGzXxaW6B7b5 KppdNKeFztYUXqYtMOgMulhUwLhTYmqsJkrcn+3F/kh+9Y6imc4JIw7J6BiSeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705093683; a=rsa-sha256; cv=none; b=bDj0tcpHegFsqiTiuaTxr0UGT2exhYScpobTR8glwCb0QIxdqER7kBzGQl7To+/Aehmzaq hJn+jtrMyg+Sw/80I3Jy52qwpSgJFAPsPmGISzdDhUx5xLI2fEyXJ0bmWvkIX5ibB6bZOe EJWNJiyJuPnPbCukWa56HevT9WFeSJz804mLCtjdQoEvFBvrCw9u4KBU4NG8OAQt96Pw2I M9GeqP9yWuvyyl9Tn9CHBj0SwtFJV/YevJBaTDHrEMhD0o6py6PfT625tP/KAINwh25XmA C199CC1EaTIMY92LXl+KKazwVxJ4czr2ihgnZxGTEW+lTXfMSjb/tNHkD0ruSQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4TBYz70qVXz1HN8 for ; Fri, 12 Jan 2024 21:08:03 +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 40CL838x068586 for ; Fri, 12 Jan 2024 21:08:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40CL822P068579 for toolchain@FreeBSD.org; Fri, 12 Jan 2024 21:08:02 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: toolchain@FreeBSD.org Subject: [Bug 276282] vectorized code fails on powerpc64le: typedef __vector uint8_t __m128i; in the port misc/randomx Date: Fri, 12 Jan 2024 21:08:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276282 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #1 from Mark Millard --- Hmm. https://en.wikipedia.org/wiki/AltiVec reports: QUOTE In C++, the standard way of accessing AltiVec support is mutually exclusive with the use of the Standard Template Library vector<> class template due to the treatment of "vector" as a reserved word when the compiler does not implement the context-sensitive keyword version of vector. However, it may = be possible to combine them using compiler-specific workarounds; for instance,= in GCC one may do #undef vector to remove the vector keyword, and then use the GCC-specific __vector keyword in its place. END QUOTE The next message after what you report gives a clue: /wrkdirs/usr/ports/misc/randomx/work/RandomX-1.2.1/src/intrin_portable.h:18= 9:25: error: expected ';' after top level declarator typedef __vector uint8_t __m128i; ^ ; In other words: __vector is not getting special handling but is being treated as a fuyll type name of itself, leading to the compiler expecting (not the codes intent): typedef __vector uint8_t; I do not know if clang has a mode supporting the __vector like GCC for powerpc64* variations or not. Seems like GCC would tolerate the non-C/C++-standard code. It might be interesting to check if GCC will build the code. --=20 You are receiving this mail because: You are the assignee for the bug.=