From owner-freebsd-jail@freebsd.org Tue Sep 6 13:19:21 2016 Return-Path: <owner-freebsd-jail@freebsd.org> Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78131BC418E for <freebsd-jail@mailman.ysv.freebsd.org>; Tue, 6 Sep 2016 13:19:21 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D96E61C for <freebsd-jail@freebsd.org>; Tue, 6 Sep 2016 13:19:20 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (ip-109-84-3-81.web.vodafone.de [109.84.3.81]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u86DJIoU055994 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for <freebsd-jail@freebsd.org>; Tue, 6 Sep 2016 13:19:19 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host ip-109-84-3-81.web.vodafone.de [109.84.3.81] claimed to be ultrabook.yoonka.com Subject: Re: timerfd in FreeBSD jail? To: freebsd-jail@freebsd.org References: <dfdcac92-c5d0-51d5-b307-5c1484c6278d@gjunka.com> <20160906143524.221f4994@mona.office.misuthova.sk> From: Grzegorz Junka <list1@gjunka.com> Message-ID: <3fd19a50-fef3-6504-5113-66a2bab0aa81@gjunka.com> Date: Tue, 6 Sep 2016 13:19:13 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160906143524.221f4994@mona.office.misuthova.sk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" <freebsd-jail.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-jail>, <mailto:freebsd-jail-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-jail/> List-Post: <mailto:freebsd-jail@freebsd.org> List-Help: <mailto:freebsd-jail-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-jail>, <mailto:freebsd-jail-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 06 Sep 2016 13:19:21 -0000 On 06/09/2016 12:35, Martin "eto" Misuth wrote: > On Tue, 6 Sep 2016 11:38:23 +0000 > Grzegorz Junka <list1@gjunka.com> wrote: > >> I am trying to compile dart-sdk in Centos 6 that's running in a FreeBSD >> jail. I am getting the following error: >> >> runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd >> file descriptor: 38 > You probably already understand, that this is caused by Linux kernel > specific techology called timerfd (file descriptor acting as timer/clock). > As far as I know FreeBSD doesn't support many such specifically Linux only > features natively. > > Although there is Linux API emulator provided as kernel module, this is not 100% > compatible (it lags a bit behind the times given pace at which Linux rolls). > Usually older software works, but you might have problem with never one. > > Second complication is jail, you need to recreate Linux emulation setup > in-jail, if you plan to use "Linux jails". > > As you wrote "Centos 6 jail", I guess your jail, is an real Linux jail (you have > Linux emulation enabled on host and expose Linux emulated interfaces in > jail and all other necessery things, and Linux binaries work). > > In that case you are out of luck, until FreeBSD Linux emu layer gains timerfd > support (what I guess won't happen anytime soon). > > However things you can still do, is to check whether this dart-sdk codebase > doesn't provides compile time option to use alternative mechanisms for timing, > as config option. > > As timerfd is relatively new (circa 2007), codebase might have provisions > for some other mechanism. > >> Is this a limitation of the jail or I need to enable something to have >> it available? >> >> Grzegorz > This is limitation of Linux emulation. > > eto > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" OK, I was hoping that this is similar to creating ping sockets in jail, that it needs to be enabled on the host for jail to actually be able to execute ping. How would I know that this is not implemented in the linux emulation layer rather than disabled on the host? And yes, I have the linux environment enabled and set up in the jail and it mostly works fine. But I didn't put it under any stress yet. I will see if the dart-sdk package can be somehow compiled without the timer_fd options. Thanks Grzegorz