From owner-freebsd-jail@freebsd.org Tue Sep 6 13:07:18 2016 Return-Path: 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 CC710B96CD3 for ; Tue, 6 Sep 2016 13:07:18 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from smtpout6.dnsserver.eu (smtpout6.dnsserver.eu [92.240.253.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 919ADCB2 for ; Tue, 6 Sep 2016 13:07:18 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from [92.240.253.67] (helo=smtp3s109.dnsserver.eu) by smtpout6.dnsserver.eu with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bhFia-0007Yl-14 for freebsd-jail@freebsd.org; Tue, 06 Sep 2016 14:43:12 +0200 Received: from [80.242.44.220] (helo=mona.office.misuthova.sk) by smtp3s109.dnsserver.eu with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.83 (FreeBSD)) (envelope-from ) id 1bhFib-0003kb-Ct for freebsd-jail@freebsd.org; Tue, 06 Sep 2016 14:43:13 +0200 Date: Tue, 6 Sep 2016 14:35:24 +0200 From: "Martin \"eto\" Misuth" To: freebsd-jail@freebsd.org Subject: Re: timerfd in FreeBSD jail? Message-ID: <20160906143524.221f4994@mona.office.misuthova.sk> In-Reply-To: References: Organization: ethome.sk MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 80.242.44.220 X-SA-Exim-Mail-From: eto.freebsd@ethome.sk X-SA-Exim-Scanned: No (on smtp3s109.dnsserver.eu); SAEximRunCond expanded to false X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:07:18 -0000 On Tue, 6 Sep 2016 11:38:23 +0000 Grzegorz Junka 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