Previous Thread
Next Thread
Print Thread
Page 2 of 3 1 2 3
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35163 22 Apr 22 10:42 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I considered that but between the difficulties already encountered in getting this right, and the fact that the parameter passing rules for embedded subroutines are a lot more flexible than for functions/procedures, I wasn't sure it was a good idea to make the rules too tight and risk triggering a bunch of compiler complaints in programs that were formerly considered good.

One problem is that the compiler cannot force you to use the array notation in the DEFXCALL because it has no idea about the true nature of the parameters accepted by the XCALL. And especially in the case of embedded subroutines, as a result of evolution in parameter passing, we now have a variety of overlapping schemes for passing parameters that could be arrays or scalars. XTREE, for example, accepts either a scalar or an array element for the answer parameter, but the array element is actually treated as equivalent to an array passed by reference.

Most of those variations could probably be handled by the DEFXCALL |alias mechanism, but it probably requires a bit more review to be sure.

Assuming that the DEFXCALL syntax options can unambiguously cover all the scenarios, then I suppose it would make sense for the compiler to complain if you attempt to pass an array to a non-array-named parameter, or vice versa, as in either of these cases...
Code
XCALL ORDERLOCK, cmdhdr=orderlock'cmdhdr, ary=orderlock'ary()   
XCALL ORDERLOCK, cmdhdr=orderlock'cmdhdr, ary()=orderlock'ary   

I'll put that on my to-be-considered list...

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35164 23 Apr 22 02:39 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
The final assumption of forcing the named parameter to match the type of the passed variable makes sense


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35170 25 Apr 22 05:45 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35178 27 Apr 22 02:06 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
I haven't had time to test this yet. Had to move on to other projects. Will try to test later today.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35179 28 Apr 22 03:19 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
FYI - I discovered another problem which goes back a couple of months to the introduction of the embedded DEFSTRUCTs. The problem is that any DEFTYPEs used in place of the type,size specification of a structure member are resolved before the structure definition gets embedded, so the DEFTYPEs no longer show up in the DYNOP_INFO operation.

That's apparently not a very commonly used technique, but does come in handy in conjunction with DYNFUNC to generically associate formatting or other logic with member field types.

It's expected to be fixed in 6.5.1715.9 later today...

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35186 02 May 22 02:41 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35188 03 May 22 04:40 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
So far so good.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35192 04 May 22 02:10 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Compiling with 6.5.1715.9 is resulting in "Invalid syntax code at location counter &h60C4 of OEOl.RUN" when running

Reverting back to 6.5.1715.7 compiles and runs the same program.

Also, getting a segfault with some programs.

Last edited by Stephen Funkhouser; 04 May 22 02:13 PM.

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35193 04 May 22 02:54 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
If possible, please send an ashlog and corresponding LSX file(s) so I can try to identify where the issue lies.

On a related aside, the latest compiler edit (986) fixes a problem related to unmapped variables, but it has been around for a long time, and I don't think your programs use unmapped variables, so I don't think it's related to what you are reporting here.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35194 04 May 22 03:43 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
There are 2 LSX files one for 6.5.1715.9 and one for 6.5.1715.7

Attached Files
oe17b.7z.gpg (1.62 MB, 74 downloads)
SHA1: 9ad7946c75950175f6b2b026747d36f0f4fce590

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35195 04 May 22 04:53 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Got those, thanks. Just to be sure, are you saying the invalid syntax code occurs at &h60c4 in OE01 ...?
Code
0060ad  ++PRAGMA PRIVATE_BEGIN
0060b9  PRIVATE DIMX $gdi'commands	,ordmap(varstr;varstr)
0060c6  $gdi'commands("BIN") = 1
0060d5  $gdi'commands("DUPLEX") = 1

That would appear to be within the instantiation of the ordmap, even before the first element assignment.

I tried reproducing that in a very simple test but without success (or without failure). But before digging further, let me just confirm that the problem also happens when you compile under 1715.9 (which should be compiler 985, as opposed to compiler 983 that your LSX's were compiled with)

Also, do you any ashlog/location references for the SEGV and/or for whatever error the OE17B program is getting?

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35196 04 May 22 05:22 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
This only appears when I compile under 1715.9. I sent both files so you could compare the difference. The 1715.9 LSX is about 2MB larger.

I ran it a second time and got this

Code
Func/Proc parameter type/size mismatch at location counter &h10387 of OE01.RUN


It alternates back and forth between this and the invalid syntax error. Occasionally there is a segfault. Nothing in the ashlog though.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35204 05 May 22 03:54 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I'm still a little confused as to the OE17B program. Yes it is about 2 MB larger than the OE01, but it's a totally different program. And according to the LSX headers, both were compiled with compiler edit 983, which corresponds to 6.5.1715.7.

Going back to the error in OE01 at 10387, at least in the LSX generated by the 1715.7 (983) compiler, it occurs here...
Code
010387  CALL filedebug_set_trc("OE01:")

which leads to this ...
Code
! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (orm'bsi) ^> ddsas:filedebug.bsi[160,5] <128_1> 

0101fa  
0101fa  ++PRAGMA PRIVATE_BEGIN
010206  PRIVATE MAP1 fdebug_trc$	,s,0
010206  PRIVATE DIMX $fdebug_savefiles	,ordmap(varstr;varstr)
010213  ++PRAGMA PRIVATE_END
010214  
010214  PROCEDURE filedebug_set_trc(trc$ as s0:INPUTONLY)
010234  	fdebug_trc$ = trc$
01023c  ENDPROCEDURE

The error doesn't make much sense, given that the procedure expects a string and is being passed one. Possibly there is a connection with the initialization of the PRIVATE section (which would take place at the start of the filedebug_set_trc() procedure, assuming this was the first call to a routine within that filedebug.bsi), but in that case I would have expected the error location to change. But if the 1715.7 (983) and 1715.9 (985) compilations are different, then perhaps the error location 10387 isn't on the CALL but within the procedure?

I think the OE01.LSX from the 1715.9 (985) compiler might be more helpful here.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35206 05 May 22 06:03 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Sorry I screwed up the files when uploading. I checked these files

One
Compiler : 6.5(983)
Two
Compiler : 6.5(985)

Attached Files
OE01.7z.gpg (1.59 MB, 79 downloads)
SHA1: 90cf476678662682cfe41c994f5264ea3ab0eeaf

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35208 05 May 22 06:49 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Here's an update of OE17B compiled with both. Getting nothing but segfaults with 6.5.1715.9 now. I also included the ashlog.

Using WinMerge to compare the two I can see a difference in the location counter.

Attached Files
OE17B.7z.gpg (1.25 MB, 87 downloads)
SHA1: d7eac9d55c108e40e7fbcd40c7688da84956e21b

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35210 05 May 22 10:25 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I'm going to veer off on a tangent to debug some obscure issue with compiling these LSX files. Unfortunately they're rather extreme examples, making them difficult to work with, so that may lead to another detour finding or creating better examples to work with.

In the case of the OE01, the one thing that jumps out between the two versions is that there are three seemingly identical calls like this:
Code
dyn'key'name$ = fn'hazmat_inun_iter_key_dynstruct_define_get'name$(hndl)

But in the 1715.9 version, one of them ends up occupying an 3 extra bytes, which is almost certainly a sign of some kind of breakdown.

In the OE17 case, the SEGV appears to occur on a MAP initialization, almost at the very start of the program. For that one it might be useful to see the two RUN files, since the difference, and cause for the SEGV, should show up before the program requires any external files, meaning I could probably reproduce it here.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35211 06 May 22 01:58 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
I've attached an update with the RUN files.

Attached Files
OE17B_v2.7z.gpg (1.76 MB, 85 downloads)
SHA1: 3fdd58a6ab7c7e0d9078b485fd31006d81f5e663

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35215 07 May 22 01:13 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I'm stuck on a detail which is interfering with my ability to compile your LSX files, but I haven't been able to identify the underlying cause or reproduce it. The proximate issue is the use of the ++INCLUDE'ONCE'IF'EXISTS statement (which seems to occur just once in all of the LSX files you've sent recently). It ends up like this in the LSX file ...
Code
000ca5  ++INCLUDE'ONCE'IF'EXISTS ddsashinc:soslib.def                                  ! [103]
DDSAS:SOSLIB.DEF[907,16]000ca5  

But it should look something like this:
Code
000ca5  ++INCLUDE'ONCE'IF'EXISTS ddsashinc:soslib.def                                  ! [103]

! DDSAS:SOSLIB.DEF[907,16] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <77_11>

000ca5 ...

(The special <<<<<<<< and >>>>>>>> lines marking the beginning and end of included modules are critical to the LSX compilation, which, although it doesn't actually need to include external modules, it does need to act as if it was including them so that it can handle module-dependent features like private variables.)

I'm curious if you can search through your LSX files to see if all of them have this problem, or whether it is something new and/or limited to particularly large programs. I've tried compiling some monster programs here, but they always come out with the right format.

This may be a red herring and/or a symptom of a deeper problem, but it is making it difficult to work with the LSX files you send. Although I could easily fix the format, it is also throwing off the file # and nesting level which is critical in keeping private variables that have the same names but are in different files separate, leading to bogus duplicate variable errors. And fixing those would be a herculean task since your sample programs have literally thousands of ++includes nested up to a dozen levels deep.

Another possible option, since it appears you only use that directive in one place (in ddsas:directory.bsi[160,5]), and since the file probably always exists for you, would be to just change it to a regular ++INCLUDE and see if that bypasses the issue.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35216 07 May 22 01:55 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I should add that the OE17B.RUN compiled under 1715.9 definitely has a corrupted header, which explains why it bombs out immediately. That may or may not be enough of a clue to track down the issue, but it may be difficult without being able to recompile the LSX for testing.

In any case, the window for working on it this weekend is about closed; Mother's Day and visiting relatives beckon. Hopefully next week I can get this cleared up.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35217 09 May 22 01:16 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
We don't save LSX files, so none to look for that issue with.

I've removed the only instance of INCLUDE'ONCE'IF'EXISTS and recompile. Hope this helps you re-compile it.

Attached Files
OE17B_lookup.7z.gpg (1.76 MB, 83 downloads)
SHA1: 8633a96b341afd38eb4adc0121fbd587722bf4f6
Last edited by Stephen Funkhouser; 09 May 22 01:18 PM.

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35218 10 May 22 05:34 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Sorry this is dragging on so long, but if nothing else it's resulting in some refinements to the LSX files. The issue getting in the way of being able to recompile your LSX file is that although the file in theory has everything needed to recompile, it failed to unambiguously deal with conditional compilation directives that were dependent on the environment. ++INCLUDE'IF'EXISTS was one example, but there are others, such as ++IF LOOKUP(...). Even conditional that are explicitly dependent on just the prior source code (like ++IFDEF) could be indirectly dependent on prior conditional includes. So I've made a few refinements to the LSX format in this latest update, 6.5.1715.11 (compiler 987) to hopefully make it possible to reproduce a prior compilation in a different environment. So when convenient, please generate another LSX of your OE17 using this latest version...

ash-6.5.1715.11-el7-upd.tz

With that maybe I'll be able to at least recompile the program and then focus on what the code generation issue is. (I've tried this with some other large LSX files but so far haven't been able to reproduce the kinds of issues you're seeing.)

As an aside, I'm somewhat surprised you don't archive the LSX files corresponding to those in production. It would seem that the ability to track down unexpected runtime errors based on the location reported in the ashlog would be worth the extra storage requirement.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35219 10 May 22 02:38 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Here's the LSX file compiled with 6.5.1715.11

Attached Files
oe17b.6.5.17.15.11.7z.gpg (882.75 KB, 91 downloads)
SHA1: d001ee006af90d230a306f23c0d94540e70703f9

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35220 10 May 22 05:18 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
thanks - there's definitely some improvement here, as I only have a couple of spurious errors to deal with. But I forgot to ask for your RUN file, which will still be useful (unless it hasn't changed from the .9 version).

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35221 10 May 22 05:35 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
No change in the hash from the .9 version.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35222 10 May 22 05:52 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Ok thanks.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35223 10 May 22 08:50 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Status report:
The good news: your LSX now compiles under A-Shell/Windows 6.5.1715.12 (compiler 988) and the RUN looks ok (as far as I can tell).
The bad news: compiling under Linux (both CentOS 7/32 and Debian 11/64) generates the same bad RUN file that you have.

That suggests some difference in the Windows vs Linux C compilers or standard libraries, but I've only reproduced it so far in a couple of your very large LSX files. (We started to see this kind of issue a few patches back, with the workaround being to roll back the C compiler optimization levels. But now it happens even in a debug compilation. Which suggests... some kind of edge condition perhaps.)

I'm going to have to ponder the situation before coming up with an approach to narrowing it down. (Unfortunately, comparing against prior compiler versions isn't really feasible without the latest LSX handling adjustments.) But I might reapply the latest patches to the 983 version and work forward from there. It's going to take some time.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35224 10 May 22 10:14 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Thanks for the update.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35225 10 May 22 10:23 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Correction: the compilation looks good under Debian 11/64 (Ubuntu 20).

But it's bad under CentOS 7 and 8 (in the same way). One other potential clue: it doesn't seem to matter under CentOS 7 or Debian/IUbuntu whether the C compilation uses full optimization or not; the RUN hash is the same. But under CentOS 8, it does (although both outputs are bad)

That all suggests some issue with the gcc compiler. CentOS 7 is using 4.8.5; CentOS 8 is using 8.2.1, and Debian/Ubuntu 20 is using 9.4.0.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35226 10 May 22 10:31 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Thanks for the update.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35228 13 May 22 05:39 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
With apologies to WC, hopefully this is not the end of the beginning but the beginning of the end for this particular bug ...

ash65notes.txt
ash-6.5.1715.12-el7-upd.tz
ash-6.5.1715.12-w32-upd.zip
ash-6.5.1715.12-w32c-upd.zip
compil-6.5.989-w32.zip

Note that as part of the detour through the woods looking for clues I ended up adding a number of details to the VERSYS.LIT utility. I'm not sure the extra details are necessarily that interesting in general, but in this case it provided an immediate indication of the fact that the RUN file was corrupted and and some clues about exactly in what way. (Try it on your bad vs good RUN file.) (Use UPDCUR to bring down the LIT updates.)

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35229 13 May 22 06:30 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Those programs compile and run now. We'll have to test other programs, but good so far.

Might be nice to have a mode for VERSYS.LIT, or another utility to process all .run/.sbx files in a directory and tell which ones are corrupted. The memory required is a nice addition as well.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35230 13 May 22 08:01 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Good point. I was thinking of making some kind of list file option that would be suitable for capturing relevant details for a batch of programs (particularly memory and minimum version requirements); adding a column that would show warnings would be helpful there. It's on my to-do list now...

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35231 14 May 22 12:15 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Ok, if you run UPDCUR again you'll get version 3.1(110) of VERSYS.LIT which supports a /CSV switch that puts all the information into a CSV file rather than displaying it on the screen, with one row per wildcard match and columns for all the various details. Most of them correspond exactly to the display version, except there is a Notes column which will be blank normally, but otherwise might display error/warning messages like "*** NOT RUNNABLE ***" or "*** PROGRAM APPEARS TO BE CORRUPTED ***".

Other handy uses for the output would be to quickly check if any of your RUN programs require a higher version of A-Shell, or more memory, than expected. It also identifies programs with dynamic functions, embedded defstruct definitions, and automatic dynstruct binding (column DefStructIdx).

Example:
Code
.versys *.run/csv
VERSYS.CSV created
.shlexc versys.csv
Command launched successfully

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35232 17 May 22 07:04 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Found some compiler issues in 6.5.1715.12 in programs that compile prior. I've attached LST compilation errors and LSX files for 2 programs affected.

Attached Files
6.5.1715.12.zip.gpg (2.77 MB, 73 downloads)
SHA1: 1baea0d5193db7e3411be2ba997044232e1a547a

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35236 17 May 22 09:47 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
These appear to be another variation of the previous problem, i.e. one that shows up in the -el7 version but not Windows or -deb11.
Investigation in progress...

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35238 18 May 22 12:40 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
It appears that dropping the GNU C compiler optimization level one more step fixes this particular problem ...

ash-6.5.1716.1-el7-upd.tz

That's not completely satisfying so I'm going to keep looking it this, but in the meantime, the 1716.1 version seems to handle it.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35240 18 May 22 02:07 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Confirmed those programs compile, thanks.

Running a full program compile to see if there are any other issues.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35241 18 May 22 04:29 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Here are a couple more that are failing with 6.5.1716.1.

I guess you didn't change the COMPIL version from 989. I double-checked the A-Shell version after seeing that in the new LSX files and it is 6.5.1716.1

Attached Files
6.5.1716.1.zip.gpg (380.72 KB, 72 downloads)
SHA1: e3816268422e4ac484dceb2f1ceaa427caa1ab26

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35242 18 May 22 04:38 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Right -- I hadn't actually made any changes to it other than recompiling with optimizations disabled. And as feared, it appears that the band-aid didn't completely cover up the problem. Still investigating...

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35243 18 May 22 06:29 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
The error in testdyn1 ...
Code
testdyn1.bas:264: ?Unmapped variable:  - RINT #ch'testdyn1a%c "++IFDEF " + defstruct'name$ <<RINT>>

... is clearly a case of the P in PRINT having been lost, at least in the LSX file.

Can you check that it's there in the testdyn1.bas, and if so, maybe send me the original source to that function to see if I can find any clues as to how that may have happened.

Page 2 of 3 1 2 3

Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3