[libc-commits] [libc] [libc] pipe(2) linux syscall wrapper and unittest (PR #85514)

via libc-commits libc-commits at lists.llvm.org
Mon Mar 18 15:14:18 PDT 2024


================
@@ -264,6 +266,20 @@ def Linux : StandardSpec<"Linux"> {
       ]
   >;
 
+  HeaderSpec UniStd = HeaderSpec<
+    "unistd.h",
+    [], // Macros
+    [Pipe2fdArrayT], // Types
+    [], // Enumerations
+    [
+        FunctionSpec<
+          "pipe2",
+          RetValSpec<IntType>,
+          [ArgSpec<Pipe2fdArrayT>, ArgSpec<IntType>]
----------------
muffpy wrote:

> > I'm on an aarch64 Debian Linux box.
> > /usr/bin/ld: /usr/bin/../lib/gcc/aarch64-linux-gnu/12/libgcc.a(lse-init.o): in function `init_have_lse_atomics':
> 
> Ah! Yeah, the issue is you've added the entrypoint to libc/config/linux/x86_64/entrypoints.txt, but you're on an aarch64 host. Try adding the entrypoint to libc/config/linux/aarch64/entrypoints.txt.

Bingo! Thanks for that. This will speed up my progress considerably.

https://github.com/llvm/llvm-project/pull/85514


More information about the libc-commits mailing list