From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 31 01:46:02 2014 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 49C0B11B; Wed, 31 Dec 2014 01:46:02 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0114.outbound.protection.outlook.com [157.56.111.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8B4411F0; Wed, 31 Dec 2014 01:46:00 +0000 (UTC) Received: from [192.168.1.68] (69.217.161.203) by DM2PR0401MB1104.namprd04.prod.outlook.com (25.160.99.13) with Microsoft SMTP Server (TLS) id 15.1.49.12; Wed, 31 Dec 2014 01:12:54 +0000 Message-ID: <54A34D8D.1020000@uwm.edu> Date: Tue, 30 Dec 2014 19:12:45 -0600 From: Jason Bacon User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Miguel Clara , Chagin Dmitry Subject: Re: Linux /dev/shm References: <54A212A4.1070006@uwm.edu> <20141230064640.GA3354@dchagin.static.corbina.net> <38006823-C20B-4C37-A885-D53192F83EEE@gmail.com> In-Reply-To: <38006823-C20B-4C37-A885-D53192F83EEE@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [69.217.161.203] X-ClientProxiedBy: BL2PR05CA0037.namprd05.prod.outlook.com (10.255.226.37) To DM2PR0401MB1104.namprd04.prod.outlook.com (25.160.99.13) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bacon@uwm.edu; X-DmarcAction: None X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:DM2PR0401MB1104; X-Forefront-PRVS: 0442E569BC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(6049001)(51704005)(24454002)(164054003)(377454003)(189002)(479174004)(199003)(19580395003)(21056001)(62966003)(40100003)(19580405001)(105586002)(65956001)(65806001)(65816999)(36756003)(50986999)(122386002)(99396003)(106356001)(76176999)(54356999)(4396001)(120916001)(83506001)(20776003)(64706001)(31966008)(117156001)(23676002)(47776003)(50466002)(77156002)(87976001)(89122001)(64126003)(97736003)(46102003)(80316001)(2950100001)(15975445007)(33656002)(86362001)(92566001)(68736005)(90282001)(88552001)(101416001)(42186005)(77096005)(107046002)(59896002)(75432002)(66066001)(575784001)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0401MB1104; H:[192.168.1.68]; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: uwm.edu does not designate permitted sender hosts) X-OriginatorOrg: uwm.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Dec 2014 01:12:54.2724 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0401MB1104 Cc: emulation@freebsd.org 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 01:46:02 -0000 On 12/30/14 12:54 PM, 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 > > Thanks, this did create a /dev/shm dir linked to /tmp, but I'm still getting the same error. FreeBSD manatee.acadix bacon ~ 414: df Filesystem Size Used Avail Capacity Mounted on /dev/ada0p3 447G 17G 394G 4% / devfs 1.0K 1.0K 0B 100% /dev procfs 4.0K 4.0K 0B 100% /proc linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc tmpfs 5.6G 8.0K 5.6G 0% /tmp FreeBSD manatee.acadix bacon ~ 415: fgrep tmp /etc/fstab /etc/devfs.conf /etc/fstab:tmpfs /tmp tmpfs rw 0 /etc/devfs.conf:link /tmp shm FreeBSD manatee.acadix bacon ~ 416: ls -al /dev/shm/ total 16 drwxrwxrwt 6 root wheel 320 Dec 30 19:05 ./ drwxr-xr-x 24 root wheel 1024 Dec 30 18:58 ../ drwxrwxrwt 2 root wheel 0 Dec 30 18:58 .ICE-unix/ -r--r--r-- 1 root wheel 11 Dec 30 18:58 .X0-lock drwxrwxrwt 2 root wheel 64 Dec 30 19:05 .X11-unix/ drwxrwxrwt 2 root wheel 0 Dec 30 18:58 .XIM-unix/ drwxrwxrwt 2 root wheel 0 Dec 30 18:58 .font-unix/ FreeBSD manatee.acadix bacon ~ 417: QuantumWise/VNL-ATK-2014.1/bin/vnl 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 I'll keep tinkering... -- ------------------------------------- Jason W. Bacon Systems Programmer Research Computing Support University of Wisconsin Milwaukee bacon@uwm.edu -------------------------------------