public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/30909] New: aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools
@ 2023-09-27 11:30 simon.chopin at canonical dot com
  2023-09-27 14:28 ` [Bug math/30909] " simon.chopin at canonical dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: simon.chopin at canonical dot com @ 2023-09-27 11:30 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30909

            Bug ID: 30909
           Summary: aarch64: using intrinsic vector types in math-vector.h
                    breaks C-parsing tools
           Product: glibc
           Version: 2.38
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: simon.chopin at canonical dot com
  Target Milestone: ---

The use of vector types such as __Float32x4_t in the aarch64 math-vector.h
header breaks quite a few programs that are essentially parsing C code but
using GCC as their preprocessor. GCC expands to the paths using its own
intrinsic types, which aren't implemented by the consuming programs.

I'm not sure if this qualifies as a bug in glibc, as it seems reasonable to
rely on those types, but we've seen this happen in quite a few instances in
Ubuntu:

https://bugs.launchpad.net/ubuntu/+source/mumax3/+bug/2032624

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/30909] aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools
  2023-09-27 11:30 [Bug math/30909] New: aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools simon.chopin at canonical dot com
@ 2023-09-27 14:28 ` simon.chopin at canonical dot com
  2023-11-02 13:41 ` connor.baker at tweag dot io
  2024-05-06 20:23 ` aurelien at aurel32 dot net
  2 siblings, 0 replies; 4+ messages in thread
From: simon.chopin at canonical dot com @ 2023-09-27 14:28 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30909

--- Comment #1 from Simon Chopin <simon.chopin at canonical dot com> ---
I posted a tentative patch adding a way to work around those types at
https://sourceware.org/pipermail/libc-alpha/2023-September/151770.html

I'll ship it in my next Ubuntu upload for Mantic as a way to unblock us due to
our fairly tight schedule, but I'm hoping we can come up with a better
long-term solution.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/30909] aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools
  2023-09-27 11:30 [Bug math/30909] New: aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools simon.chopin at canonical dot com
  2023-09-27 14:28 ` [Bug math/30909] " simon.chopin at canonical dot com
@ 2023-11-02 13:41 ` connor.baker at tweag dot io
  2024-05-06 20:23 ` aurelien at aurel32 dot net
  2 siblings, 0 replies; 4+ messages in thread
From: connor.baker at tweag dot io @ 2023-11-02 13:41 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30909

Connor Baker <connor.baker at tweag dot io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |connor.baker at tweag dot io

--- Comment #2 from Connor Baker <connor.baker at tweag dot io> ---
Adding some additional context:

We're running into this issue in Nixpkgs:
https://github.com/NixOS/nixpkgs/pull/264599#pullrequestreview-1707381631.

The GLIBC 2.38 update introduces intrinsics for `aarch64-linux` in `math.h`.

NVCC (NVIDIA's CUDA Compiler) declares itself to be the same compiler as its
host compiler. This causes inclusion of unsupported `aarch64-linux` intrinsics.
NVCC is now unable to compile any CUDA file for `aarch64-linux` because it does
not support these intrinsics:
https://forums.developer.nvidia.com/t/nvcc-fails-to-build-with-arm-neon-instructions-cpp-vs-cu/248355/2.

I'll be submitting the same patch I've made for Nixpkgs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/30909] aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools
  2023-09-27 11:30 [Bug math/30909] New: aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools simon.chopin at canonical dot com
  2023-09-27 14:28 ` [Bug math/30909] " simon.chopin at canonical dot com
  2023-11-02 13:41 ` connor.baker at tweag dot io
@ 2024-05-06 20:23 ` aurelien at aurel32 dot net
  2 siblings, 0 replies; 4+ messages in thread
From: aurelien at aurel32 dot net @ 2024-05-06 20:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30909

Aurelien Jarno <aurelien at aurel32 dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aurelien at aurel32 dot net

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-06 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27 11:30 [Bug math/30909] New: aarch64: using intrinsic vector types in math-vector.h breaks C-parsing tools simon.chopin at canonical dot com
2023-09-27 14:28 ` [Bug math/30909] " simon.chopin at canonical dot com
2023-11-02 13:41 ` connor.baker at tweag dot io
2024-05-06 20:23 ` aurelien at aurel32 dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).