From owner-freebsd-emulation@freebsd.org Sun Jan 22 14:42:04 2017 Return-Path: Delivered-To: freebsd-emulation@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 51EE1CBCF9E for ; Sun, 22 Jan 2017 14:42:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 34D24A03 for ; Sun, 22 Jan 2017 14:42:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3426ACBCF9D; Sun, 22 Jan 2017 14:42:04 +0000 (UTC) Delivered-To: emulation@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 33C7BCBCF9C for ; Sun, 22 Jan 2017 14:42:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 22952A02 for ; Sun, 22 Jan 2017 14:42:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0MEg3AK093673 for ; Sun, 22 Jan 2017 14:42:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 216346] emulators/linux_base-c6: Mathematica 10.x doesn't work with recent linux_base-c6 or -c7 Date: Sun, 22 Jan 2017 14:42:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: omatsuda000@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 22 Jan 2017 14:42:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216346 --- Comment #2 from Osamu Matsuda --- Below is the required information for the case of using mathematica 10.0. > What is inside /usr/local/bin/mathematica? /usr/local/bin/mathematica is linked to /usr/local/Wolfram/Mathematica/10.0/Executables/mathematica. In the directory /usr/local/Wolfram/Mathematica/10.0/Executables/, there are 7 shell scripts, namely MathKernel, Mathematica, WolframKernel, math mathematica, mcc, and wolfram. Each of them needs to be patched according to the FreeBSD handbook. Below I put the diff of them. -------- begin ----------------------- *** MathKernel.orig Tue Oct 21 23:40:32 2014 --- MathKernel Wed Oct 22 00:13:27 2014 *************** *** 5,10 **** --- 5,11 ---- # Make certain that ${PATH} includes /usr/bin and /bin PATH=3D"/usr/bin:/bin:${PATH}" + SystemIDList=3DLinux # Is systemid being passed on the command-line? case "$1" in *************** *** 50,56 **** # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `exec test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" --- 51,57 ---- # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" *************** *** 132,138 **** if [ "${SystemID}" =3D "Linux" -o "${SystemID}" =3D "Linux-x86-64" ];= then if [ -z "${OMP_NUM_THREADS}" ]; then ! OMP_NUM_THREADS=3D`cat /proc/cpuinfo | grep '^processor.: [0-= 9]*$' | wc -l | tr -d ' '`; export OMP_NUM_THREADS; fi fi --- 133,139 ---- if [ "${SystemID}" =3D "Linux" -o "${SystemID}" =3D "Linux-x86-64" ];= then if [ -z "${OMP_NUM_THREADS}" ]; then ! OMP_NUM_THREADS=3D`cat /compat/linux/proc/cpuinfo | grep '^processor.: [0-9]*$' | wc -l | tr -d ' '`; export OMP_NUM_THREADS; fi fi *** Mathematica.orig Tue Oct 21 23:40:44 2014 --- Mathematica Wed Oct 22 00:15:20 2014 *************** *** 5,11 **** # Make certain that ${PATH} includes /usr/bin and /bin PATH=3D"/usr/bin:/bin:${PATH}" !=20 --- 5,11 ---- # Make certain that ${PATH} includes /usr/bin and /bin PATH=3D"/usr/bin:/bin:${PATH}" ! SystemIDList=3DLinux *************** *** 46,52 **** # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `exec test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" --- 46,52 ---- # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" *** math.orig Tue Oct 21 23:40:32 2014 --- math Wed Oct 22 00:16:33 2014 *************** *** 5,10 **** --- 5,11 ---- # Make certain that ${PATH} includes /usr/bin and /bin PATH=3D"/usr/bin:/bin:${PATH}" + SystemIDList=3DLinux # Is systemid being passed on the command-line? case "$1" in *************** *** 50,56 **** # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `exec test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" --- 51,57 ---- # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" *************** *** 132,138 **** if [ "${SystemID}" =3D "Linux" -o "${SystemID}" =3D "Linux-x86-64" ];= then if [ -z "${OMP_NUM_THREADS}" ]; then ! OMP_NUM_THREADS=3D`cat /proc/cpuinfo | grep '^processor.: [0-= 9]*$' | wc -l | tr -d ' '`; export OMP_NUM_THREADS; fi fi --- 133,139 ---- if [ "${SystemID}" =3D "Linux" -o "${SystemID}" =3D "Linux-x86-64" ];= then if [ -z "${OMP_NUM_THREADS}" ]; then ! OMP_NUM_THREADS=3D`cat /compat/linux/proc/cpuinfo | grep '^processor.: [0-9]*$' | wc -l | tr -d ' '`; export OMP_NUM_THREADS; fi fi *** mathematica.orig Tue Oct 21 23:40:44 2014 --- mathematica Wed Oct 22 00:18:33 2014 *************** *** 5,11 **** # Make certain that ${PATH} includes /usr/bin and /bin PATH=3D"/usr/bin:/bin:${PATH}" !=20 --- 5,11 ---- # Make certain that ${PATH} includes /usr/bin and /bin PATH=3D"/usr/bin:/bin:${PATH}" ! SystemIDList=3DLinux *************** *** 46,52 **** # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `exec test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" --- 46,52 ---- # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" *** mcc.orig Tue Oct 21 23:41:07 2014 --- mcc Wed Oct 22 00:19:08 2014 *************** *** 5,10 **** --- 5,11 ---- # Make certain that ${PATH} includes /usr/bin and /bin PATH=3D"/usr/bin:/bin:${PATH}" + SystemIDList=3DLinux # Determine the SystemID by examining the output of `uname -s` and=20 # `uname -m`. Failsafe to SystemIDList=3DUnknown. *************** *** 57,63 **** # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `exec test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" --- 58,64 ---- # the output of ls -l on the symlink to find the link target. Reset # ${Script}. LinkDirectory=3D`pwd` ! while `test -L "${Script}"`; do ScriptDirectory=3D`dirname "${Script}"` Script=3D`ls -l "${Script}" | sed -e 's/.*-> //g'` cd "${ScriptDirectory}" -------- end ------------------- It might also be necessary to ensure that /usr/local/bin/MathematicaScript = is linked to /usr/local/Wolfram/Mathematica/10.0/SystemFiles/Kernel/Binaries/Linux/Mathe= maticaScript > What is the output of "find /compat/linux/dev"? ~ 1007 % find /compat/linux/dev /compat/linux/dev /compat/linux/dev/shm /compat/linux/dev/.shm.bJOs6e5BTk10 > Is linux_base the only dependency or do you have other linux packages ins= talled? I also installed emulators/linux-c6 or emulators/linux-c7 metaport which also has installed a bunch of linux related ports. > Do you have linprocfs mounted on /compat/linux/proc? > Do you have tmpfs mounted on /compat/linux/dev/shm? Yes for both. ~ 1003 % mount /dev/mirror/root on / (ufs, NFS exported, local, journaled soft-updates) devfs on /dev (devfs, local, multilabel) procfs on /proc (procfs, local) fdescfs on /dev/fd (fdescfs) linprocfs on /compat/linux/proc (linprocfs, local) tmpfs on /compat/linux/dev/shm (tmpfs, local) > What is the output of "sysctl compat"? ~ 1005 % sysctl compat compat.linux32.maxvmem: 0 compat.linux32.maxssiz: 67108864 compat.linux32.maxdsiz: 536870912 compat.linux.oss_version: 198144 compat.linux.osrelease: 2.6.18 compat.linux.osname: Linux compat.ia32.maxvmem: 0 compat.ia32.maxssiz: 67108864 compat.ia32.maxdsiz: 536870912 > What is the output of "ls -l /usr/local/Wolfram/Mathematica/10.0/Executab= les/math"? ~ 1006 % ls -l /usr/local/Wolfram/Mathematica/10.0/Executables/math -rwxr-xr-x 1 root wheel 5311 Aug 30 02:53 /usr/local/Wolfram/Mathematica/10.0/Executables/math* As mentioned above, this is the patched version. --=20 You are receiving this mail because: You are the assignee for the bug.=