From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 31 23:31:43 2014 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 91DB242C for ; Wed, 31 Dec 2014 23:31:43 +0000 (UTC) Received: from dchagin.static.corbina.net (dchagin.static.corbina.ru [78.107.232.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dchagin.static.corbina.net", Issuer "dchagin.static.corbina.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F37BA2C0D for ; Wed, 31 Dec 2014 23:31:42 +0000 (UTC) Received: from dchagin.static.corbina.net (localhost [127.0.0.1]) by dchagin.static.corbina.net (8.14.9/8.14.9) with ESMTP id sBVNVWtl006003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 1 Jan 2015 02:31:32 +0300 (MSK) (envelope-from dchagin@dchagin.static.corbina.net) Received: (from dchagin@localhost) by dchagin.static.corbina.net (8.14.9/8.14.9/Submit) id sBVNVWiC006002; Thu, 1 Jan 2015 02:31:32 +0300 (MSK) (envelope-from dchagin) Date: Thu, 1 Jan 2015 02:31:31 +0300 From: Chagin Dmitry To: Jason Bacon Subject: Re: Linux /dev/shm Message-ID: <20141231233131.GA5987@dchagin.static.corbina.net> References: <54A212A4.1070006@uwm.edu> <20141230064640.GA3354@dchagin.static.corbina.net> <38006823-C20B-4C37-A885-D53192F83EEE@gmail.com> <54A479A4.7050807@tds.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54A479A4.7050807@tds.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: emulation@freebsd.org, Jason Bacon X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 23:31:43 -0000 On Wed, Dec 31, 2014 at 04:33:08PM -0600, Jason Bacon wrote: > On 12/30/14 12:54, Miguel Clara wrote: > > > > On 30 December 2014 06:46:40 WET, Chagin Dmitry wrote: > >> On Mon, Dec 29, 2014 at 08:49:08PM -0600, Jason Bacon wrote: > >>> Not sure where else to ask this: > >>> > >>> I'm trying to run Atomistix (http://www.quantumwise.com/) on FreeBSD > >> 10.1. > >>> The installer runs without a hitch, but I've run into issues with one > >> of > >>> the main binaries, vnl_exec. > >>> > >>> First problem was a missing libgomp. linux-c6-devtools installs a > >>> dangling link in: > >>> > >>> /compat/linux/usr/lib/gcc/i686-redhat-linux/4.4.4/libgomp.so > >>> > >>> I fixed this by patching the port to include > >> libgomp-4.4.7-11.el6.i686.rpm. > >>> That got vnl_exec past all the link errors, but now I'm running into > >> this: > >>> Traceback (most recent call last): > >>> File "", line 1, in > >>> File "./zipdir/NL/__init__.py", line 17, in > >>> File "./zipdir/NL/ComputerScienceUtilities/Singleton.py", line > >> 120, > >>> in > >>> File "./build/lib/python2.7/multiprocessing/__init__.py", line > >> 183, > >>> in RLock > >>> File "./build/lib/python2.7/multiprocessing/synchronize.py", line > >>> 172, in __init__ > >>> File "./build/lib/python2.7/multiprocessing/synchronize.py", line > >> 75, > >>> in __init__ > >>> OSError: [Errno 38] Function not implemented > >>> > >>> From what I've found on the Linux forums, this is indicating that > >> the > >>> app requires a tmpfs mounted on /dev/shm as an IPC interface. Is > >> there > >>> any way to emulate this on FreeBSD? > >>> > >> yes, see r218497 commit description. it seems to me that you should > >> mount tmpfs somewhere > > > > You can use devfs.conf for this, add: > > link /tmp shm > > > > Hope that helps, > > Miguel > > > > > Got it working. There was a minor configuration issue preventing shm > from working. I also had to create a linux-c6-libudev port, which I'll > submit along with an atomistix-installer port (like > math/matlab-installer) once I've done more thorough testing. > nice, however, can u try without defvs magic? glibc look through /proc/mounts to find tmpfs mount point if cant find /dev/shm. -- Have fun! chd