meson==0.60.0, f.underscorify(f) causes a build error
hi:
builed with latest meson(0.60.0), which has a error.
` buid log: #meson build The Meson build system Version: 0.60.0 Source dir: /home/zhuyf/igt-gpu-tools Build dir: /home/zhuyf/igt-gpu-tools/build Build type: native build Project name: igt-gpu-tools Project version: 1.26 C compiler for the host machine: cc (gcc 11.2.0 "cc (Debian 11.2.0-9) 11.2.0") C linker for the host machine: cc ld.bfd 2.37 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C supports arguments -Wbad-function-cast: YES Compiler for C supports arguments -Wdeclaration-after-statement: YES Compiler for C supports arguments -Wformat=2: YES Compiler for C supports arguments -Wimplicit-fallthrough=0: YES Compiler for C supports arguments -Wlogical-op: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wmissing-format-attribute: YES Compiler for C supports arguments -Wmissing-noreturn: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Wnested-externs: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Wredundant-decls: YES Compiler for C supports arguments -Wshadow: YES Compiler for C supports arguments -Wstrict-prototypes: YES Compiler for C supports arguments -Wuninitialized: YES Compiler for C supports arguments -Wunused: YES Compiler for C supports arguments -Wno-clobbered: YES Compiler for C supports arguments -Wno-maybe-uninitialized: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-pointer-arith: YES Compiler for C supports arguments -Wno-address-of-packed-member: YES Compiler for C supports arguments -Wno-sign-compare: YES Compiler for C supports arguments -Wno-type-limits: YES Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -Wno-unused-result: YES Compiler for C supports arguments -Werror=address: YES Compiler for C supports arguments -Werror=array-bounds: YES Compiler for C supports arguments -Werror=implicit: YES Compiler for C supports arguments -Werror=init-self: YES Compiler for C supports arguments -Werror=int-to-pointer-cast: YES Compiler for C supports arguments -Werror=main: YES Compiler for C supports arguments -Werror=missing-braces: YES Compiler for C supports arguments -Werror=nonnull: YES Compiler for C supports arguments -Werror=pointer-to-int-cast: YES Compiler for C supports arguments -Werror=return-type: YES Compiler for C supports arguments -Werror=sequence-point: YES Compiler for C supports arguments -Werror=trigraphs: YES Compiler for C supports arguments -Werror=write-strings: YES Compiler for C supports arguments -fno-builtin-malloc: YES Compiler for C supports arguments -fno-builtin-calloc: YES Compiler for C supports arguments -fcommon: YES Found pkg-config: /usr/bin/pkg-config (0.29.2) Run-time dependency libdrm found: YES 2.4.107 Run-time dependency libdrm_intel found: YES 2.4.107 Run-time dependency libdrm_nouveau found: YES 2.4.107 Run-time dependency libdrm_amdgpu found: YES 2.4.107 Run-time dependency pciaccess found: YES 0.16 Run-time dependency libkmod found: YES 29 Run-time dependency libprocps found: YES 3.3.17 Did not find CMake 'cmake' Found CMake: NO Run-time dependency libunwind found: NO (tried pkgconfig and cmake) Run-time dependency libdw found: YES 0.185 Run-time dependency pixman-1 found: YES 0.40.0 Run-time dependency valgrind found: NO (tried pkgconfig) Run-time dependency cairo found: YES 1.16.0 Run-time dependency libudev found: YES 249 Run-time dependency glib-2.0 found: YES 2.70.0 Run-time dependency xmlrpc found: NO (tried pkgconfig and cmake) Run-time dependency xmlrpc_util found: NO (tried pkgconfig and cmake) Run-time dependency xmlrpc_client found: NO (tried pkgconfig and cmake) Program xmlrpc-c-config found: NO Run-time dependency gsl found: NO (tried pkgconfig and cmake) Run-time dependency alsa found: NO (tried pkgconfig and cmake) Run-time dependency libcurl found: NO (tried pkgconfig and cmake) Run-time dependency threads found: YES Library m found: YES Library rt found: YES Library dl found: YES Library z found: YES Checking if "built-in atomics" : links: YES Has header "linux/kd.h" : YES Has header "sys/kd.h" : YES Has header "libgen.h" : YES Has header "sys/io.h" : YES Checking if "cpuid.h" : links: YES Header <unistd.h> has symbol "gettid" : YES Checking whether type "struct sysinfo" has member "totalram" : YES Checking for function "memfd_create" : YES Configuring config.h using configuration Program python3 found: YES (/usr/bin/python3) Program /home/zhuyf/.local/bin/meson found: YES (/home/zhuyf/.local/bin/meson)
lib/meson.build:158:4: ERROR: Function does not take positional arguments.
A full log can be found at /home/zhuyf/igt-gpu-tools/build/meson-logs/meson-log.txt
meson-log.txt:
Code: #include <sys/mman.h> #include <limits.h>
#if defined __stub_memfd_create || defined __stub___memfd_create
fail fail fail this function is not going to work
#endif
int main(void) { void a = (void) &memfd_create; long long b = (long long) a; return (int) b; } Compiler stdout:
Compiler stderr:
Checking for function "memfd_create" : YES Configuring config.h using configuration Program python3 found: YES (/usr/bin/python3) Program /home/zhuyf/.local/bin/meson found: YES (/home/zhuyf/.local/bin/meson)
lib/meson.build:158:4: ERROR: Function does not take positional arguments. `