[m-rev.] Error in the C code generated by the compiler

Zoltan Somogyi zoltan.somogyi at runbox.com
Tue Jan 9 02:50:59 AEDT 2024


On 2024-01-08 16:51 +11:00 AEDT, "Volker Wysk" <post at volker-wysk.de> wrote:
> I've attached the program. It's a bit large. I've stripped it down a little
> in order to reduce the dependencies. I've also included a module which was a
> library before. 
> 
> It shows the problem under Linux (Ubuntu, should also work with other
> distributions). Use the mmc-make script. It should reproduce the problem
> straightforwardly and produce no other compiler output. Let me know if you
> need me to further reduce the compile dependencies.

I cannot reproduce the problem.

First, the C compiler does not get as far as actually trying to do semantic
analysis on worker.c because on my system, it cannot find sql.h.

Second, the symptom you mentioned in your original email was
a reference to mercury_data_thread__semaphore__type_ctor_info_9_0
in Mercury/cs/worker.c. I had a look at that file, and I could not find
that reference. In fact, I could not find any occurrence of "9" that was
not part of a line number or label number.

Zoltan.


More information about the reviews mailing list