Skip to content

Get C compiler working #26

Description

@eschaton

Right now, trying to compile a trivial C program fails.

The trivial program, in the MINIX /usr/tmp directory as sigtest.c (which I compiled in an Atari ST emulator just fine):

#include <stdio.h>
#include <signal.h>


int did_quit = 0;

void quit_handler(sig)
    int sig;
{
    did_quit = 1;
}

int main(argc, argv)
    int argc;
    char **argv;
{
    void (*old_handler)() = signal(SIGQUIT, quit_handler);

    while (!did_quit) {
        /* do nothing */
    }

    printf("got SIGQUIT");
    return 0;
}

The command line:

$ MINIXCOMPAT_DIR=/opt/minix \
  MINIXCOMPAT_PWD=/usr/tmp \
  MINIX_HOME=/usr/ast \
  MINIX_TERM=vt100 \
  MINIX_PATH=/usr/bin:/bin \
  /usr/bin/cc -v sigtest.c -o sigtest

I'll update this in a bit with the expected and actual output.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions