Re: Ptolemy fails to compile

1999-07-26 Thread Wolfgang Reimer

"p. meyer" wrote:
> 
> Hi Wolfgang,
> 
> Thank you very much for your answer. It seems you are the only one who
> is working intensively with Ptolemy at the moment. Is it true? I made
> the few changes in ptlang.y, and now everything works well.
> 
> Please let me introduce my job. I'm working for a European Program which
> aims to build a Framework for Digital Signal Processing System
> development. The Framework should help us to reduce the time to market
> of our products (hardware and Software) and also to reduce the time for
> redesign in case of component obsolescence. Ptolemy is one of the
> candidate Tools (sorry, I know that Ptolemy is a Framework, but...) and
> I have in charge to evaluate this tool by the end of September '99.
> Therefore I will probably need more help...
> 
> Thank you again,
> 
> Patrick
> 
> -
> Patrick Meyer
> Digital Signal Processing H&S Designer
> Hollandse Signaalapparaten BV,
> Department: R&S-FD

Hi Patrick:

There are lots of other people out there using Ptolemy. Also such companies
like Cadence and HP have developed own software systems leveraged by the
Ptolemy technology. Actually, there are two different Ptolemy platforms now:
Ptolemy II and Ptolemy Classic. Professor Lee's Ptolemy group in Berkeley is
really doing a great job (Thanks to all involved!) and I guess they are rather
focussed on the new Ptolemy II project now. I am still developing under Ptolemy
Classic and I am using it for model implementation, simulation and design of
photonic transmission systems (WDM).

If there is no commercial tool which is readily designed for your purpose
already then Ptolemy might be the right choice for you. It is a great open
framework to implement new modules (Stars), interfaces, and models of
computation (Domains, Targets) and it runs under all important operating
systems.

Best regards,

Wolfgang.
-- 
Wolfgang Reimer (Dr.-Ing.)
 
Technische Universität Ilmenau  -  Ilmenau Technical University
Address: TU Ilmenau, FEI/IKM, PF 100565, 98684 Ilmenau, GERMANY
http://ikmcip1.e-technik.tu-ilmenau.de  Phone: +49-3677-69-2619
mailto:[EMAIL PROTECTED]   Fax  : +49-3677-69-1195

V I R T U A L P H O T O N I C S I N C O R P O R A T E D
mailto:[EMAIL PROTECTED]http://www.vp-bned.com


Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]



Re: Ptolemy fails to compile

1999-07-23 Thread p. meyer

Hi Wolfgang,

Thank you very much for your answer. It seems you are the only one who
is working intensively with Ptolemy at the moment. Is it true? I made
the few changes in ptlang.y, and now everything works well.

Please let me introduce my job. I'm working for a European Program which
aims to build a Framework for Digital Signal Processing System
development. The Framework should help us to reduce the time to market
of our products (hardware and Software) and also to reduce the time for
redesign in case of component obsolescence. Ptolemy is one of the
candidate Tools (sorry, I know that Ptolemy is a Framework, but...) and
I have in charge to evaluate this tool by the end of September '99.
Therefore I will probably need more help...

Thank you again,

Patrick

-
Patrick Meyer
Digital Signal Processing H&S Designer
Hollandse Signaalapparaten BV,
Department: R&S-FD

Zuidelijke Havenweg 40
P.O. Box 42| voice: +31 74 2483973
7550 GD Hengelo| fax:   +31 74 2484018
The Netherlands
mailto:[EMAIL PROTECTED]  http://www.signaal.nl/
--





Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]



Re[2]: Ptolemy fails to compile

1999-07-22 Thread Wolfgang Reimer

Sorry, I forgot the attachment in my first message.

"p. meyer" wrote:
> 
> Hi all,
> 
> I tried to build Ptolemy 0.7.1p1 from scratch (including GNU Tools) on
> SUN Sparcstation4 Solaris2.5.1 and I didn't succeed because ptlang
> failed to compile the ACS domain stars (files with corona statement
> only). Segmentation Fault message is generated. What's the problem?
> Could someone help me, please?
> 
> Many Thanks in advance.
> 
> Yours sincerely,
> [EMAIL PROTECTED]
> 

Hi:

That sounds like you hit the ACS ptlang bug which will occur only if your shell
lacks the PWD variable (e.g. Bourne shell). On Solaris this bug will cause
ptlang to crash with SIGSEGV when trying to process ACS stars (see comments in
the attachment). I already sent the attached stuff in January and the 2nd patch
(pt0.7.1p1.ptlang.patch.gz) will fix that ptlang bug.

Best regards,

Wolfgang.
-- 
Wolfgang Reimer (Dr.-Ing.)
 
Technische Universität Ilmenau  -  Ilmenau Technical University
Address: TU Ilmenau, FEI/IKM, PF 100565, 98684 Ilmenau, GERMANY
http://ikmcip1.e-technik.tu-ilmenau.de  Phone: +49-3677-69-2619
mailto:[EMAIL PROTECTED]   Fax  : +49-3677-69-1195

V I R T U A L P H O T O N I C S I N C O R P O R A T E D
mailto:[EMAIL PROTECTED]http://www.vp-bned.com


Christopher Hylands wrote:
> 
> 0.7.1 shipped with egcs-1.0.2, which corresponds with:
>   gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
> 
> I was able to build an internal development version with egcs-1.1
> (19980901) under NT, but I have not tried it under Solaris yet.
> 
> I don't know why, but someone at Sun decided that if strlen() gets a
> null pointer, then the entire process should crash.  I guess they felt
> that the performance hit of testing for null pointers was too great.
> I'm not sure I agree with this.  I'm not sure, but I vaguely remember
> that this was a change, and that passing NULL to strlen did not cause
> problems in SunOS4.x
> 
> In any case, ACS is a fairly young domain, and we made changes to
> ptlang to support ACS.  The rest of ptlang has not changed very much,
> so it likely that we introduced an ACS/ptlang bug.
> 
> Running gdb is the right thing to do.  When the segfault happens, you
> should type 'bt' so that we can get a stack trace and see where the
> error occurred.  If you get a backtrace, send it to me, and I'll see
> if I can make heads or tails out of it.  You can use 'up' and 'down'
> to traverse the stack and see what source code lines were called.
> 
> In the interim, I'll rebuild my internal tree to use egcs-1.1 and see
> if I can replicate the bug.  If I can't, you may need to install the
> older version of egcs that we have on our website with the 0.7.1
> sources, or try to upgrade to egcs-1.1, which could cause other
> problems.
> 
> -Christopher
> 
> 
> 
> Hi,
> 
> I was able to obtain the pt 0.7.1 package from ptolemy.eecs.berkeley.edu
> 
> and succeed in building most of the available tools.  There is one
> problem
> that I hope someone can help me out with.  The platform is Solaris 2.5.1
> 
> using the latest version of egcs (19980803), flex, and bison.
> 
> Looking at the log file, I found that the commands
> 
>"$SRC/bin.sol2.5/ptlang $SRC/src/domains/acs/stars/ACSAdd.pl"
>"$SRC/bin.sol2.5/ptlang $SRC/src/domains/acs/stars/ACSPrinter.pl"
> 
> generated "Segmentation Fault".  The ptlang command has no problem
> parsing the other .pl files like ACSAdd.pl, ACSGain.pl,
> ACSPrinterFixSim.pl, and ACSAddFPCGC.pl.  I ran
> 
>"gdb $SRC/bin.sol2.5/ptlang $SRC/src/domains/acs/stars/ACSAdd.pl"
> 
> and got the following results:
> 
>   (gdb) r ACSPrinter.pl
>   Starting program: /a/ptolemy/obj.sol2.5/ptlang/ptlang ACSPrinter.pl
> 
>   Breakpoint 1, main (argc=2, argv=0xeb04) at
> ../../src/ptlang/ptlang.y:2609
>   2609if (argc < 2 || argc > 3) {
>   (gdb) n
>   2613if (argc == 3) {
>   (gdb) n
>   2622inputFile = argv[1];
>   (gdb) n
>   2624if ((yyin = fopen (inputFile, "r")) == NULL) {
>   (gdb) n
>   2628yyparse ();
>   (gdb) n
> 
>   Program received signal SIGSEGV, Segmentation fault.
>   0xef723ddc in strlen ()
> 
> Here is the content of ACSPrinter.pl
> 
> --
> defcorona {
> name { Printer }
> domain { ACS }
> desc {
> Print out one sample from each input port per line.  The "fileName"
> state specifies the file to be written; the special names
>  and , which specify the standard output
> stream, and  and , which specify the
> standard error stream, are also supported.
> }
> version { @(#)ACSPrinter.pl 1.1 03/09/98 }
> author { James Lundblad }
> copyright {
> Copyright (c) 1998 The Regents of the

Re: Ptolemy fails to compile

1999-07-22 Thread Wolfgang Reimer

"p. meyer" wrote:
> 
> Hi all,
> 
> I tried to build Ptolemy 0.7.1p1 from scratch (including GNU Tools) on
> SUN Sparcstation4 Solaris2.5.1 and I didn't succeed because ptlang
> failed to compile the ACS domain stars (files with corona statement
> only). Segmentation Fault message is generated. What's the problem?
> Could someone help me, please?
> 
> Many Thanks in advance.
> 
> Yours sincerely,
> [EMAIL PROTECTED]
> 

Hi:

That sounds like you hit the ACS ptlang bug which will occur only if your shell
lacks the PWD variable (e.g. Bourne shell). On Solaris this bug will cause
ptlang to crash with SIGSEGV when trying to process ACS stars (see comments in
the attachment). I already sent the attached stuff in January and the 2nd patch
(pt0.7.1p1.ptlang.patch.gz) will fix that ptlang bug.

Best regards,

Wolfgang.
-- 
Wolfgang Reimer (Dr.-Ing.)
 
Technische Universität Ilmenau  -  Ilmenau Technical University
Address: TU Ilmenau, FEI/IKM, PF 100565, 98684 Ilmenau, GERMANY
http://ikmcip1.e-technik.tu-ilmenau.de  Phone: +49-3677-69-2619
mailto:[EMAIL PROTECTED]   Fax  : +49-3677-69-1195

V I R T U A L P H O T O N I C S I N C O R P O R A T E D
mailto:[EMAIL PROTECTED]http://www.vp-bned.com


Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]



Re: Ptolemy fails to compile

1999-07-22 Thread Christopher Hylands

What is the exact failure?
Can you include the log of the compilation around the point of failure?
-Christopher


Hi all,

I tried to build Ptolemy 0.7.1p1 from scratch (including GNU Tools) on
SUN Sparcstation4 Solaris2.5.1 and I didn't succeed because ptlang
failed to compile the ACS domain stars (files with corona statement
only). Segmentation Fault message is generated. What's the problem?
Could someone help me, please?

Many Thanks in advance.

Yours sincerely,
[EMAIL PROTECTED]


---
   -
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]



Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]



Ptolemy fails to compile

1999-07-22 Thread p. meyer

Hi all,

I tried to build Ptolemy 0.7.1p1 from scratch (including GNU Tools) on
SUN Sparcstation4 Solaris2.5.1 and I didn't succeed because ptlang
failed to compile the ACS domain stars (files with corona statement
only). Segmentation Fault message is generated. What's the problem?
Could someone help me, please?

Many Thanks in advance.

Yours sincerely,
[EMAIL PROTECTED]



Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]