This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building slang lib for Cygwin


>>>>> "news" == news  <news@garydjones.mailshell.com> writes:

    news> Reposted from alt.lang.s-lang, where no response was rec'd. If anyone here has 
    news> any experience with it I would appreciate some pointers. Ta.

    news> I am attempting to build s-lang 1.4.5 under Cygwin. Actually, 
    news> correction, I have already done so, and it compiled out of the 
    news> box. Then, when I do make runtests, I get this:

    news> Running tests:

    news> Testing syntax ...Ok
    news> Testing sscanf ...S-Lang Traceback: (Error occurred on line 40)
    news> S-Lang Traceback: test_atof
    news> File: sscanf.sl
    news>   Local Variables:
    news>         $0: Type: Double_Type,  Value:  -1.82703
    news>         $1: Type: Undefined_Type,       Value:  Undefined_Type
    news>         $2: Type: String_Type,  Value:  "-
    news> 1.827031849739504609786422406614292412 
    news> 9962920000000000000000000000e+00"
    news>         $3: Type: String_Type,  Value:  "-
    news> 1.827031849739504609786422406614292412 
    news> 9962920000000000000000000000E+00"
    news> S-Lang Traceback: (Error occurred on line 75)
    news> S-Lang Traceback: (Error occurred on line 72)
    news> S-Lang Traceback: loop
    news> S-Lang Traceback: (Error occurred on line 61)
    news> S-Lang Traceback: test_atof_main
    news> File: sscanf.sl
    news>   Local Variables:
    news>         $0: Type: Integer_Type, Value:  1000
    news>         $1: Type: Double_Type,  Value:  -91.5717
    news>         $2: Type: Double_Type,  Value:  -1.70002
    news>         $3: Type: Double_Type,  Value:  -1.82703
    news> S-Lang Error: Internal Error: called from line 81, file: 
    news> sscanf.sl
    news> Testing looping constructs ...Ok
    news> [everything else ok]

    news> Is this something I should be worried about? I'm not sure if 
    news> this is "normal" behaviour under Cygwin or whether something has 
    news> got messed up along the way somewhere. TIA for any advice.

Compiles OOTB for me (with gcc-2.95.3-5)

Here the test run:

make[1]: Entering directory `/gnu/src/slang-1.4.5/src/test'
gcc -g -O2 -fno-strength-reduce  sltest.c -o sltest -I.. -L../objs -lslang  -lm

Running tests:

Testing syntax ...Ok
Testing sscanf ...Ok
Testing looping constructs ...Ok
Testing Arithmetic ...Ok
Testing array functions ...Ok
Testing string functions...Ok
Testing Binary Strings...Ok
Testing pack and unpack functions...Ok
Testing stdio routines...Ok
Testing Associative Arrays ...Ok
Testing recursive function modifications ...Ok
Testing structures ...Ok
Testing NameSpace routines ...Ok
Testing ospath ...Ok
Testing #ifeval ...Ok
Testing Any_Type ...Ok
Testing Matrix Multiplications ...Ok
touch sltest.c
make[1]: Leaving directory `/gnu/src/slang-1.4.5/src/test'

    news> Please reply to the list.

Ciao
  Volker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]