Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dufresnep opened this issue Mar 1, 2021 · 1 comment

Comments

@dufresnep
Copy link

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.

@sortalost
Copy link

sortalost commented Jul 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants