davidgiven / ack

The Amsterdam Compiler Kit
http://tack.sf.net
Other
420 stars 59 forks source link

compiling head: gencode.c:489: controlline: Assertion `l == '\0'' failed #222

Open dufresnep opened 3 years ago

dufresnep commented 3 years ago

Here on: GNU brebis 0.9 GNU-Mach 1.8+git20201129-486/Hurd-0.9 i686-AT386 GNU I get: [22/9579] cd /tmp/ack-build/obj/lang/basic...l/ack2/ack-default/lang/basic/src/basic.g FAILED: /tmp/ack-build/obj/lang/basic/src/llgen/Lpars.c /tmp/ack-build/obj/lang/basic/src/llgen/Lpars.h /tmp/ack-build/obj/lang/basic/src/llgen/basic.c cd /tmp/ack-build/obj/lang/basic/src/llgen && rm -f /tmp/ack-build/obj/lang/basic/src/llgen/Lpars.c /tmp/ack-build/obj/lang/basic/src/llgen/Lpars.h /tmp/ack-build/obj/lang/basic/src/llgen/basic.c && /tmp/ack-build/obj/util/LLgen/llgen/llgen /home/paul/ack2/ack-default/lang/basic/src/basic.g "/home/paul/ack2/ack-default/lang/basic/src/basic.g", line 65: (Warning) terminal DBLVALUE not used "/home/paul/ack2/ack-default/lang/basic/src/basic.g", line 67: (Warning) terminal UNARYSYM not used "/home/paul/ack2/ack-default/lang/basic/src/basic.g", line 77: (Warning) terminal BOOLOP not used "/home/paul/ack2/ack-default/lang/basic/src/basic.g", line 83: (Warning) terminal LESYM not used "/home/paul/ack2/ack-default/lang/basic/src/basic.g", line 84: (Warning) terminal GESYM not used "/home/paul/ack2/ack-default/lang/basic/src/basic.g", line 85: (Warning) terminal NESYM not used "/home/paul/ack2/ack-default/lang/basic/src/basic.g", line 86: (Warning) terminal UNARYMINUS not used llgen: util/LLgen/src/gencode.c:489: controlline: Assertion `l == '\0'' failed. Aborted (core dumped) [23/9579] gcc -c -o /tmp/ack-build/obj/uti...sc/ed.c -g -Wno-return-type -Iutil/cmisc ninja: build stopped: subcommand failed. Makefile:99: recipe for target 'build-plus-goals' failed make: *** [build-plus-goals] Error 1 paul@brebis:~/ack2/ack-default$ cp util/LLgen/src/gencode.c util/LLgen/src/gencode.c.orig paul@brebis:~/ack2/ack-default$ emacs util/LLgen/src/gencode.c paul@brebis:~/ack2/ack-default$ emacs util/LLgen/src/gencode.c paul@brebis:~/ack2/ack-default$ uname -a GNU brebis 0.9 GNU-Mach 1.8+git20201129-486/Hurd-0.9 i686-AT386 GNU

So it is in: STATIC void controlline(void) { / Copy a compiler control line / register int l; register FILE f1, f2;

    f1 = fact;
    f2 = fpars;
    l = getc(f1);
    assert(l == '\0');
    do
    {
            l = getc(f1);
            if (l == EOF)
                    fatal(0, "temp file mangled", NULL );
            putc(l, f2);
    } while (l != '\n');

}

Maybe this is related to Hurd... I don't really understand what this is.

v1s1t0r999 commented 3 years ago

Wow!! This repo is still alive with its first commit on May 17, 1984 by someone named sater The link to the first commit