From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 2 15:50:41 2015 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 5FA8CBA9 for ; Fri, 2 Jan 2015 15:50:41 +0000 (UTC) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EA4A6648B for ; Fri, 2 Jan 2015 15:50:40 +0000 (UTC) Received: by mail-ig0-f176.google.com with SMTP id l13so16493577iga.9 for ; Fri, 02 Jan 2015 07:50:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=WJvyDzNhsY32UqM8jQVYTlzswmvpAF3j7vutM/402XU=; b=FliMf9rxO4NPmtBOjGTe/KV5icjFQTzAQWWkUjH+FWjoTThorQjCa1gIJq6wxVvGDz Le3KF6M5T83SSEAhe0xi/F/2aEXHPMp0ZmPTZ35jo5gC0FksY3M3AufgJqitoJEi3Hhe rclLOcc3HSha3mAHV2LUNttCTHuZXcn5tmxHtlQ5wtlwh7calk6eFujEtsbSCixPxcD/ xX+fghGn/iJMGUkry+qC0AyriUlgNkiWsg8qU8CJBp9JANvw6a4lwbia3AhNSy7JmuOp jEXB0anFrSEJ274MAS1exS0N/QLSnXDrsyKHDuxzUzk8dRftjVyc7TMVnbwC15P0mYDQ qUiA== X-Gm-Message-State: ALoCoQl5zO7CZnv6/vN7fe0KdxlmPJ+toWGblI2QbeMy0zqmnYJwOY58X0zyvNp965WPi3NbakJz X-Received: by 10.50.112.42 with SMTP id in10mr48551172igb.18.1420213833850; Fri, 02 Jan 2015 07:50:33 -0800 (PST) Received: from manta.acadix.biz (h69-131-102-7.nwblwi.broadband.dynamic.tds.net. [69.131.102.7]) by mx.google.com with ESMTPSA id k75sm19937777ioe.41.2015.01.02.07.50.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jan 2015 07:50:33 -0800 (PST) Message-ID: <54A6BE47.4020904@tds.net> Date: Fri, 02 Jan 2015 09:50:31 -0600 From: Jason Bacon User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: 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> <54A479A4.7050807@tds.net> <20141231233131.GA5987@dchagin.static.corbina.net> In-Reply-To: <20141231233131.GA5987@dchagin.static.corbina.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 02 Jan 2015 15:50:41 -0000 On 12/31/14 17:31, Chagin Dmitry wrote: > 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. Another interesting twist... The installer won't run when tmpfs is mounted. It just silently quits before doing anything. I have to disable tmpfs in order to reinstall and enable it again after installation. Below is a diff between truss outputs with (<) and without (>) tmpfs present. It contains the last few system calls before the installer quits when tmpfs is present. Haven't quite figured out what to make of it yet, but the sole non-zero exit status for a call on stderr stands out. FreeBSD manatee.acadix bacon ~ 404: diff truss.out truss-no-tmpfs.out | grep fcntl < linux_fcntl64(0x3,0x2,0x1,0xc84cb0,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x3,0x2,0x1,0xc84c48,0x20de6ff4,0x6) = 0 (0x0) < linux_fcntl64(0x4,0x2,0x1,0xffff94a0,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x4,0x2,0x1,0xffff94d0,0x20de6ff4,0x6) = 0 (0x0) < linux_fcntl64(0x4,0x2,0x1,0xc9dbe8,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x4,0x2,0x1,0xc9fc30,0x20de6ff4,0x6) = 0 (0x0) < linux_fcntl64(0x7,0x2,0x1,0xffffa3ec,0x20de6ff4,0x6) = 0 (0x0) < linux_fcntl64(0x8,0x2,0x1,0xffffa3ec,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x7,0x2,0x1,0xffffa41c,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x8,0x2,0x1,0xffffa41c,0x20de6ff4,0x6) = 0 (0x0) < linux_fcntl64(0x4,0x2,0x1,0xffff84d0,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x4,0x2,0x1,0xffff8500,0x20de6ff4,0x6) = 0 (0x0) < linux_fcntl64(0x4,0x2,0x1,0xcd1758,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x4,0x2,0x1,0xcd0df0,0x20de6ff4,0x6) = 0 (0x0) < linux_fcntl64(0x2,0x3,0xffffa3f8,0x2,0x20de6ff4,0x6) = 1 (0x1) > linux_fcntl64(0x4,0x2,0x1,0xffff77b0,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x4,0x2,0x1,0xccfcb8,0x20de6ff4,0x6) = 0 (0x0) > linux_fcntl64(0x4,0x2,0x1,0x0,0x20de6ff4,0x6) = 0 (0x0) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jason W. Bacon jwbacon@tds.net Circumstances don't make a man: They reveal him. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~