From nobody Thu Jan 25 12:13:37 2024 X-Original-To: freebsd-ports@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 4TLKTs4Y8xz58PFx for ; Thu, 25 Jan 2024 12:13:05 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TLKTr6p54z4YMr; Thu, 25 Jan 2024 12:13:04 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=U82+sCHN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sergey.dyatko@gmail.com designates 2a00:1450:4864:20::12d as permitted sender) smtp.mailfrom=sergey.dyatko@gmail.com Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5101cd91017so570308e87.2; Thu, 25 Jan 2024 04:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706184781; x=1706789581; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=4du9ROpjVQOIrFRzlg+6mMKcNK84z5vXUeWKVFb0b+c=; b=U82+sCHNu3Kywe0mHGDK+LMUJIlTecw9+ASwo3tXBosphNsjy9S5bsMM3YhqoIlOvK bmxcuDSDqT+Ek0+HQibnuOj3vj7K6UhEteMUhSYVk4QSm+J1HtspPbG3tYUJ6jnC6HR0 KSvxt0wII1Sa0f/PlOXfTDhjegB7WMAQQtsQhJFpltOO5uxoS9PaDX/i19QFupWS3R6g pv69k+hnV9112vn0Unatw/z+2FrajIP7VoAPk43Qgb//k4vflox4QnV/5o9wSnt7wy5w rylFLtdg7F2gQdlS9Vc3BL1LKL62TN7GCyTte/4ED/u4nw9OAE/nDAL/6CLy6Gxfk+Xe BvIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706184781; x=1706789581; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4du9ROpjVQOIrFRzlg+6mMKcNK84z5vXUeWKVFb0b+c=; b=lwC7Zif/B4OSc8ovFiJ4v00hVm5iUCA1pmhPyEQz3l4u8HbsqU7IHQmGICOvzL16Rh ok4kpuLmny9qKNuIKGlyRIhLdkge60kYPxTHIuvPeQi3aNSKVd+Xxz8IrjADNWHSDrh6 9PSXRU0M88q2Wq4MqJBJ3ole6Wcx6rDG+l4eHGdgRM2jjLh5hS56jTMWvbQF+R/sPbdX +Gp1txM0Jm7uiLZdHvzZ331jZo1JQkJrLLXgemGu57ztC0voT4sH9Kf+JjVRNPIwgtH5 hXAa1teMP/lOcOMNo3rtysVuHazAjinS5MSez1aQQh8rZj9vf2zo7aRQYQxsBjPk7NqE e3FA== X-Gm-Message-State: AOJu0YzXuqQ+KHIIm4gd6Rv249nlvQ/hvGJ69EatIzWKPy4yjQG7ZiZA Ej884l8oszgvRokOWfFiI37ANsF6ZOeIwxPs5u4HmKXHiDeb6+ftY8il22CMhZHxog== X-Google-Smtp-Source: AGHT+IGWfE2x2j084XHMbirLugYIDxolOKd+DWPyEP8Ugu1lYexjbP2NGOv8Q3GxZa5/GYHCu3NPXQ== X-Received: by 2002:a19:5f53:0:b0:510:1879:c86d with SMTP id a19-20020a195f53000000b005101879c86dmr294756lfj.16.1706184780961; Thu, 25 Jan 2024 04:13:00 -0800 (PST) Received: from localhost (static.145.207.46.78.clients.your-server.de. [78.46.207.145]) by smtp.gmail.com with ESMTPSA id e9-20020a056402104900b0055c15c5919csm5207097edu.86.2024.01.25.04.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:13:00 -0800 (PST) Date: Thu, 25 Jan 2024 15:13:37 +0300 From: "Sergey V. Dyatko" To: Emmanuel Vadot Cc: , manu@freebsd.org Subject: Re: graphics/mesa-libs build broken Message-ID: <20240125151337.0721e858@gmail.com> In-Reply-To: <20240125130511.6940e2a26f510a450ce9e704@bidouilliste.com> References: <20240125145933.7c74c7b4@gmail.com> <20240125130511.6940e2a26f510a450ce9e704@bidouilliste.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12d:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4TLKTr6p54z4YMr On Thu, 25 Jan 2024 13:05:11 +0100 Emmanuel Vadot wrote: > Hi, > > On Thu, 25 Jan 2024 14:59:33 +0300 > "Sergey V. Dyatko" wrote: > > > Hi, > > > > After 2080c2eddaca4fa188668ae9fe8d76e0461378c3 I'm unable to build > > graphics/mesa-libs because host I'm using doesn't support kcmp(2), it is > > FreeBSD 15.0-CURRENT #24 main-n265517-37236ab7e4e8-dirty > > It seems that _supported_ X.Y-RELEASE doens't have it too and we > > should have if in Makefile.common. Isn't it? > > Can you share the log ? > It should build fine as in mesa kcmp usage is gated by #ifdef SYS_kcmp. > I'll start a build on my side too on 14.0 to see the result. > Here is small portion, I'll send full log in a minute to you: FAILED: src/util/libmesa_util.a.p/os_file.c.o cc -Isrc/util/libmesa_util.a.p -Isrc/util -I../src/util -Iinclude -I../include -Isrc -I../src -Isrc/util/format -I../src/util/format -I/usr/local/include -fvisibility=hidden -fdiagnostics-color=never -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="23.3.4"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=1 -DHAVE_OPENGL_ES_2=1 -DHAVE_R300 -DVIDEO_CODEC_VC1DEC=0 -DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0 -DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DETIME=ETIMEDOUT -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41 -DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_SYS_SYSCTL_H -DHAVE_XLOCALE_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_PTHREAD_NP_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_MEMFD_CREATE -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_QSORT_S -DHAVE_POSIX_FALLOCATE -DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="15.0.7"' -DLLVM_IS_SHARED=1 -DDRAW_LLVM_AVAILABLE -DUSE_LIBELF -DUSE_LIBGLVND=1 -DWL_HIDE_DEPRECATED -DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_DRISW_KMS -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wmisleading-indentation -Wno-missing-field-initializers -fno-math-errno -fno-trapping-math -Qunused-arguments -fno-common -Wno-microsoft-enum-value -Wno-unused-function -Werror=format -Wformat-security -ffunction-sections -fdata-sections -Wno-unused-variable -Wno-unused-but-set-variable -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -pthread -Werror=pointer-arith -Werror=vla -Werror=gnu-empty-initializer -MD -MQ src/util/libmesa_util.a.p/os_file.c.o -MF src/util/libmesa_util.a.p/os_file.c.o.d -o src/util/libmesa_util.a.p/os_file.c.o -c ../src/util/os_file.c ../src/util/os_file.c:216:19: error: use of undeclared identifier 'SYS_kcmp' return syscall(SYS_kcmp, pid, pid, KCMP_FILE, fd1, fd2); ^ ../src/util/os_file.c:216:39: error: use of undeclared identifier 'KCMP_FILE' return syscall(SYS_kcmp, pid, pid, KCMP_FILE, fd1, fd2); ^ 2 errors generated. -- wbr, Sergey