Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Re: DU Mathematica on Linux alpha ?
  1999-10-22  4:00 DU Mathematica on Linux alpha ? Andrei Malyshev
@ 1999-10-22  4:00 ` Serguei Patchkovskii
  1999-10-25  4:00   ` DU BINARIES (Mathematica) " Stuart Midgley
  1999-10-25  4:00   ` DU Mathematica " Andrei Malyshev
  0 siblings, 2 replies; 6+ messages in thread
From: Serguei Patchkovskii @ 1999-10-22  4:00 UTC (permalink / raw)


Andrei Malyshev (andrei@merkul.ioffe.rssi.ru) wrote:
: The kernel (math) seems to run quite happily under Linux with DU ver 4.x
: libs/loader but the FrontEnd dumps core while trying to initialize default
: notebook (or template). 

Given that the Mathematica Unix frontend regularly dumps core for no
apparent reason even on systems it is officially supported for, it is
no big surprise you get core on a system it isn't. After trying to
get *any* kind of mileage out of the frontend on Suns, I simply switched
to doing everything I had to at the kernel command like prompt ...

Not exactly helpful, I know ...

Cheers,

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 6+ messages in thread

* DU Mathematica on Linux alpha ?
@ 1999-10-22  4:00 Andrei Malyshev
  1999-10-22  4:00 ` Serguei Patchkovskii
  0 siblings, 1 reply; 6+ messages in thread
From: Andrei Malyshev @ 1999-10-22  4:00 UTC (permalink / raw)


Has anybody *successfully* run DU version of Mathematica under Linux alpha?
If yes then which DU libs/loader did you use (DU version)?

The kernel (math) seems to run quite happily under Linux with DU ver 4.x
libs/loader but the FrontEnd dumps core while trying to initialize default
notebook (or template). It might be a problem of a missing X resource but I
have checked every resources I could think of.

Regards, Andrei.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: DU BINARIES (Mathematica) on Linux alpha ?
  1999-10-22  4:00 ` Serguei Patchkovskii
@ 1999-10-25  4:00   ` Stuart Midgley
  1999-10-25  4:00     ` Andrei Malyshev
  1999-10-25  4:00   ` DU Mathematica " Andrei Malyshev
  1 sibling, 1 reply; 6+ messages in thread
From: Stuart Midgley @ 1999-10-25  4:00 UTC (permalink / raw)
  To: Serguei Patchkovskii, Andrei Malyshev

[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]

I have been trying to get Mathematica up and running on my 164UX RH6.0
machine for abour 3 months now.  I can actually get the front end to
load up, but when it tries to communicate with the Math Kernel, it
hangs...

Anyway, by looking around and speaking to a few people (who have NOT
gotten it to work correctly) there might be a few patches to the KERNEL
you can apply.  I will include a copy of an email with James.

Unfortunately I have not been able to get it to work correctly...

This bug with siocgifconf etc seem to be around with several DU binaries
and it would be good to get a real C/Kernel developer to attempt to sort
it out.

Stu.




Serguei Patchkovskii wrote:
> 
> Andrei Malyshev (andrei@merkul.ioffe.rssi.ru) wrote:
> : The kernel (math) seems to run quite happily under Linux with DU ver 4.x
> : libs/loader but the FrontEnd dumps core while trying to initialize default
> : notebook (or template).
> 
> Given that the Mathematica Unix frontend regularly dumps core for no
> apparent reason even on systems it is officially supported for, it is
> no big surprise you get core on a system it isn't. After trying to
> get *any* kind of mileage out of the frontend on Suns, I simply switched
> to doing everything I had to at the kernel command like prompt ...
> 
> Not exactly helpful, I know ...
> 
> Cheers,
> 
> /Serge.P
> 
> --
> home page: http://www.cobalt.chem.ucalgary.ca/ps/

-- 
<--------------------------------------------------------------------->
  Stuart Midgley                      |  stuart@physics.uwa.edu.au
  Department of Physics               |  +61 8 9380 7898   Work
  University of Western Australia     |  +61 8 9380 1014   Fax
  Nedlands   WA   6907                |      0413 565920   Mob

[-- Attachment #2: Type: message/rfc822, Size: 3788 bytes --]

From: James Peret <jperet@ntsi.com>
To: Stuart Midgley <stuart@physics.uwa.edu.au>
Subject: RE: Bug???
Date: Wed, 15 Sep 1999 09:02:35 -0400
Message-ID: <5571C2894B7AD111B6530060977896646A89FA@DENALI>

try inserting the following into the top of dev.c  (this source was
given to me by "m.")

as for submitting a kernel fix, i never thought i would ever be able to
contribute anything.    I'm not even a programmer.  do you think this is
worth a mention to linus?

______________________________________


struct osf_ifdevea {
	char ifr_nam[16];
	char default_pa[6];
	char current_pa[6];
};

int osf_siocrphysaddr(void *addr) {
	struct osf_ifdevea devea;
	struct device *dev;

	if(copy_from_user(&devea, addr, sizeof(devea)))
		return -EFAULT;
	if(!(dev = dev_get(devea.ifr_nam)))
		return -ENODEV;
	memcpy(&devea.default_pa, &device->dev_addr, 6);
	memcpy(&devea.current_pa, &device->dev_addr, 6);
	if(copy_to_user(addr, &devea, sizeof(devea)))
		return -EFAULT;
	return 0;
}

______________________________________

-----Original Message-----
From: Stuart Midgley [mailto:stuart@physics.uwa.edu.au]
Sent: Tuesday, September 14, 1999 11:40 PM
To: James Peret
Subject: Re: Bug???


James

OK, I modified dev.c but when I tried to compile it I got an error
saying that SIOCRPHYSADDR was not declared.

Anyway, I just removed that line and it compiled.  I will let you know
how I go.

Have you submitted the big/fix to Linus and the Kernel team?

Stu.


James Peret wrote:
> 
> Stu,
> 
> looks like one of the errors i got when i tried to run pro-engineer.
> Below is a submission to the list earlyer in the week.  It looks like
> you might gain a little.
> 
> __________________________________________
> 
> I tried to get the Dec Unix version of Pro-Engineer running on a
pc164,
> Red Hat 5.2, kernel 2.2.7,  Pro-Engineer version 20, build 9852.
> 
> It was a very dificult task.  Machine type is referenced through a
> "uname -a" in many places, and i had to change several scripts that
> called the machine type.
> 
> Also, there are a couple ioctrl calls that were allocated inside dec
> unix that are missing from linux.  they are:
> 
> SIOCRPHYSADDR
> SIOCGIFFLAGS
> SIOCGIFCONF
> 
> to fix these, add the following lines to net/core/dev.c:dev_ioctl()
and
> recompile your kernel.
> 
>         if(cmd == 0xc0106914)
>                 cmd = SIOCGIFCONF;
>         if(cmd == 0xc0206911)
>                 cmd = SIOCGIFFLAGS;
>         if(cmd == 0xc01c693e)
>                 cmd = SIOCRPHYSADDR;
> 
> and this is where the fun ended.  I then ran into licensing issues,
> specifically the error:
> 
> ERROR: could not connect to NameServer.
> 
> and could not continue.
> I was helped tremendously on this project by a person identified only
by
> "m.", from perth.  Even though i was unsuccessful, i am still greatful
> for his help.
> 
> -red
> 
> 

-- 
<--------------------------------------------------------------------->
  Stuart Midgley                      |  stuart@physics.uwa.edu.au
  Department of Physics               |  08 9380 7898   Wk
  University of Western Australia     |  08 9380 1014   Fax


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: DU BINARIES (Mathematica) on Linux alpha ?
  1999-10-25  4:00   ` DU BINARIES (Mathematica) " Stuart Midgley
@ 1999-10-25  4:00     ` Andrei Malyshev
  0 siblings, 0 replies; 6+ messages in thread
From: Andrei Malyshev @ 1999-10-25  4:00 UTC (permalink / raw)


On Mon, 25 Oct 1999 09:07:30 +0800, 
Stuart Midgley <stuart@physics.uwa.edu.au> wrote:
>This is a multi-part message in MIME format.
>--------------1670B62BD27373A3173467DD
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>I have been trying to get Mathematica up and running on my 164UX RH6.0
>machine for abour 3 months now.  I can actually get the front end to
>load up, 

which is much better than a dumped core... Did you apply these patches
which you attached to get the FE to load up?

>but when it tries to communicate with the Math Kernel, it hangs...

Direct mathlink does not work for me either; e.g. I couldn't connect two DU
math kernels using direct mathlink but succeded when using it over TCP. So,
if you haven't tried using "remote" kernel (rsh local math) instead of the
default Local one then there is a faint chance to get the whole thing
running.

Mind that there is a TCP/IP bug in 2.2.x up to the patchlevel 12 afaik, so
if you are using such kernel you won't be able to connect over TCP at all.
You can either use old 2.1.x kernels (2.1.132 works fine for me) or patch
the 2.2 one. I patched 2.2.12 with Alen Cox's 2.2.13pre16-patch, which
finally made the math kernel happy. I hope this'll help.

Yet another (or is it the same?) problem is the psrender: the kernel uses
the direct mathlink protocol to connect to it. This silly setting seems to
be so deep in the mathkernel guts that I couldn't find a way to change it,
so even though the kernel runs fine it can not display any graphics:
Plot[x,{x,0,1}] "hangs" the kernel in the way you mentioned...

I'd appreciate any advice on how that can be changed.

>
>Anyway, by looking around and speaking to a few people (who have NOT
>gotten it to work correctly) there might be a few patches to the KERNEL
>you can apply.  I will include a copy of an email with James.
>
>Unfortunately I have not been able to get it to work correctly...
>
>This bug with siocgifconf etc seem to be around with several DU binaries
>and it would be good to get a real C/Kernel developer to attempt to sort
>it out.
>
>Stu.
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: DU Mathematica on Linux alpha ?
  1999-10-22  4:00 ` Serguei Patchkovskii
  1999-10-25  4:00   ` DU BINARIES (Mathematica) " Stuart Midgley
@ 1999-10-25  4:00   ` Andrei Malyshev
  1999-10-25  4:00     ` Michal Jaegermann
  1 sibling, 1 reply; 6+ messages in thread
From: Andrei Malyshev @ 1999-10-25  4:00 UTC (permalink / raw)


On 22 Oct 1999 15:27:28 GMT, 
Serguei Patchkovskii <patchkov@acs1.acs.ucalgary.ca> wrote:

>Andrei Malyshev (andrei@merkul.ioffe.rssi.ru) wrote:
>: The kernel (math) seems to run quite happily under Linux with DU ver 4.x
>: libs/loader but the FrontEnd dumps core while trying to initialize default
>: notebook (or template). 
>
>Given that the Mathematica Unix frontend regularly dumps core for no
>apparent reason even on systems it is officially supported for, 

Actually, the x86 FE is quite stable... if you run it locally. If you run it
remotely then if left unattended over a night it "detaches" from the local X
server by the next morning. So, next morning you have the totally useless
detached FE loading the remote host's cpu up to about 99% (which does not
mean the FE is actually doing something; you can just leave it doing nothing
with exactly the same result). I haven't got a clue about the reasons for
that (apart from FE being afraid of darkness) and would appreciate any
advice.

>it is no big surprise you get core on a system it isn't. After trying to
>get *any* kind of mileage out of the frontend on Suns, I simply switched to
>doing everything I had to at the kernel command like prompt ...

The kernel CLI is a mightmare; it knows about BackSpace only (or did I miss
something?). I wish they, at the WR, knew about readline() ...

>Not exactly helpful, I know ...
>
>Cheers,
>
>/Serge.P
>
>--
>home page: http://www.cobalt.chem.ucalgary.ca/ps/

Cheers, Andrei.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: DU Mathematica on Linux alpha ?
  1999-10-25  4:00   ` DU Mathematica " Andrei Malyshev
@ 1999-10-25  4:00     ` Michal Jaegermann
  0 siblings, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 1999-10-25  4:00 UTC (permalink / raw)


Andrei Malyshev (andrei@merkul.ioffe.rssi.ru) wrote:

As Andrei Malyshev's mail all of sudden responds with:

    ----- Transcript of session follows -----
 ... while talking to relay.ioffe.rssi.ru.:
 >>> RCPT To:<andrei@merkul.ioffe.rssi.ru>
 <<< 553 <andrei@merkul.ioffe.rssi.ru>... Wrong address " merkul " in domain "ioffe.rssi.ru"
 550 andrei@merkul.ioffe.rssi.ru... User unknown

or simply with "User unknown" if one tries to send to "andrei@ioffe.rssi.ru
there here are some "aside" remarks to the topic:

> 
> IDL runs too (although it is not very stable) as well as a number of other
> Motif apps.

I never seen IDL in action on Linux so I cannot comment.  If you miss
some system calls then sometimes it is possible to hack kernel and
fake them.  You may just need entry points.

I have seen people running 'nedit' from DU (although why would anybody
would want to do that is beyond my understanding; there is a "native"
Linux version) and, quite often, Netscape from DU.

> DU Mathematica seems to be the only one which does not.

I heard that Mathematica is not too stable in general; at least Unix
variants.  Maybe this is the problem?  I do not have much experience
with it (I have still around an ancient version which came with an old
NeXT; I do not like it too much).

> Which DU libs/loader do you use for running Maple? I mean the DU version:
> 3.2x or 4.0x ?

I do not run it as such.  But installed on various occasions for folks
with required licenses.  We used for that 3.2 libraries.  4.0 stuff is
using some system calls which were not emulated in 2.0 kernels.  Kernels
from 2.2 series expanded this emulated list but I did not have a reason,
or opportunity, to check if this enough for Maple and 4.0 libraries.

BTW - you have to make sure that CONFIG_MATHEMU is set in your kernel
configuration or plotting in Maple will bomb out immediately.  Such
configuration creates problems for em86 and any kernel above 2.2.11.  So
far you can take a contents arch/alpha/math-emu/ from 2.2.11 and drop
that in into 2.2.13, say, and you will get a working kernel.  It is not
clear, at least to me, what went haywire.

Maybe you have troubles of the sort like the above with other things
(like Mathematica, for example).

  Michal



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-10-25  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-22  4:00 DU Mathematica on Linux alpha ? Andrei Malyshev
1999-10-22  4:00 ` Serguei Patchkovskii
1999-10-25  4:00   ` DU BINARIES (Mathematica) " Stuart Midgley
1999-10-25  4:00     ` Andrei Malyshev
1999-10-25  4:00   ` DU Mathematica " Andrei Malyshev
1999-10-25  4:00     ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox