From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fx.arvanta.net (93-87-244-166.static.isp.telekom.rs [93.87.244.166]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AAFA32853E5 for ; Mon, 16 Jun 2025 16:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.87.244.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750092275; cv=none; b=UYSlzOANOnN6D6yExYTmxL3/Pzf9xuzUcYLHP7vMfcXGFeV0bfukNGvrUka0AU8LjfH7RWe2KbxrI0jGPUgI2mgasZtlGMQ2Wz4D1GA49//fo8GG9Gp3ha/AsFnQsXPhbWRQ2bl3zwVh7ml6mvD4HTbrUeLfYH3ziE6cigphJ9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750092275; c=relaxed/simple; bh=Nbo08adM22amw50MHM0cMWoI1TzYUlabtPRpiZE8gpg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oH6oouL9zqiV3SUPPe1RlGa25MgaSKYwUa6IGe2lSM74Ip9xQdS8jAYmbNxkPexxPlHmsjo9xsP6mzTMto6wRHaESAdIRiL1AB8gzECSA0v+wPAbX3xu46Kr8BUbcPimjgVrz9bW6PJLAcKUCNqLWug7BReoEIZbYa+yIgENSwE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=arvanta.net; spf=pass smtp.mailfrom=arvanta.net; arc=none smtp.client-ip=93.87.244.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=arvanta.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arvanta.net Received: from m1pro.arvanta.net (m1pro.arvanta.net [10.5.1.11]) by fx.arvanta.net (Postfix) with SMTP id 0DF7D10A7C; Mon, 16 Jun 2025 18:44:32 +0200 (CEST) Date: Mon, 16 Jun 2025 18:44:00 +0200 From: Milan =?utf-8?Q?P=2E_Stani=C4=87?= To: Jens Axboe Cc: io-uring@vger.kernel.org Subject: Re: Building liburing on musl libc gives error that errno.h not found Message-ID: <20250616164400.GA24503@m1pro.arvanta.net> References: <20250615195617.GA15397@m1pro.arvanta.net> <1198c63d-4fe8-4dda-ae9f-23a9f5dafd5c@kernel.dk> <20250616130612.GA21485@m1pro.arvanta.net> <39ae421b-a633-4b47-bf2b-6a55d818aa7c@kernel.dk> <20250616141823.GA27374@m1pro.arvanta.net> <290bfa14-b595-4fea-b1fe-a3f0881f4220@kernel.dk> <20250616163244.GA16126@m1pro.arvanta.net> Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, 2025-06-16 at 10:35, Jens Axboe wrote: > On 6/16/25 10:32 AM, Milan P. Stani? wrote: > > On Mon, 2025-06-16 at 09:35, Jens Axboe wrote: > >> On 6/16/25 9:13 AM, Jens Axboe wrote: > >>> On 6/16/25 8:18 AM, Milan P. Stani? wrote: > >>>> On Mon, 2025-06-16 at 07:59, Jens Axboe wrote: > >>>>> On 6/16/25 7:06 AM, Milan P. Stani? wrote: > >>>>>> On Mon, 2025-06-16 at 06:34, Jens Axboe wrote: > >>>>>>> On 6/15/25 1:56 PM, Milan P. Stani? wrote: > >>>>>>>> On Sun, 2025-06-15 at 12:57, Jens Axboe wrote: > >>>>>>>>> On 6/15/25 11:16 AM, Milan P. Stani? wrote: > >>>>>>>>>> Hi, > >>>>>>>>>> > >>>>>>>>>> Trying to build liburing 2.10 on Alpine Linux with musl libc got error > >>>>>>>>>> that errno.h is not found when building examples/zcrx.c > >>>>>>>>>> > >>>>>>>>>> Temporary I disabled build zcrx.c, merge request with patch for Alpine > >>>>>>>>>> is here: > >>>>>>>>>> https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84981 > >>>>>>>>>> I commented in merge request that error.h is glibc specific. > >>>>>>>>> > >>>>>>>>> I killed it, it's not needed and should've been caught during review. > >>>>>>>>> We should probably have alpine/musl as part of the CI... > >>>>>>>> > >>>>>>>> Fine. > >>>>>>>> > >>>>>>>>>> Side note: running `make runtests` gives 'Tests failed (32)'. Not sure > >>>>>>>>>> should I post full log here. > >>>>>>>>> > >>>>>>>>> Either that or file an issue on GH. Sounds like something is very wrong > >>>>>>>>> on the setup if you get failing tests, test suite should generally > >>>>>>>>> pass on the current kernel, or any -stable kernel. > >>>>>>>>> > >>>>>>>> I'm attaching log here to this mail. Actually it is one bug but repeated > >>>>>>>> in different tests, segfaults > >>>>>>> > >>>>>>> Your kernel is ancient, and that will surely account from some of the > >>>>>>> failures you see. A 6.6 stable series from January 2024 is not current > >>>>>>> by any stretch, should definitely upgrade that. But I don't think this > >>>>>>> accounts for all the failures seen, it's more likely there's some musl > >>>>>>> related issue as well which is affecting some of the tests. > >>>>>> > >>>>>> This happens also on 6.14.8-1 asahi kernel on apple m1pro machine. > >>>>>> I forgot to mention this in previous mail, sorry. > >>>>> > >>>>> Also on musl, correct? > >>>> > >>>> Yes, correct. > >>>> > >>>>> Guessing it must be some musl oddity. I'll try and setup a vm with > >>>>> alpine and see how that goes. > >>>> > >>>> It could be. I can ask on #musl IRC channel on libera.chat > >>> > >>> Probably easier if I just take a look at it, as long as I can get > >>> an alpine vm image going. > >> > >> Pure guesswork, but you are most likely running into default ulimit > >> limits being tiny. Probably something ala: > >> > >> rc_ulimit="-n 524288 -l 262144" > >> > >> in /etc/rc.conf would help. > > > > Tried, but didn't help. > > > > I will left it for now and return to test it when new liburing is > > released. It must pass our builders and CI, so I disabled test earlier. > > > > Thank you for help. > > That's fine, I don't recommend distros attempt to verify it by using > the test suite anyway, that's not really its intended purpose. Though it > can be useful in terms of verifying all relevant fixes are backported, > particular if the distro is one of those oddballs that don't base on or > pull in -stable. Fine for me also. So I will keep tests disabled for Alpine in future. > I'll be releasing 2.11 shortly, but it likely won't change anything on > your end, outside of having the examples/zcrx compilation fixed. ok. > FWIW, I'm on Alpine Linux 3.22 and it passes here. We do developing new release in 'edge' (something like rolling release) and only backport for security fixes and some bugs to stable releases. So, I always run all things on 'edge' (except servers, ofc) -- Kind regards