Skip to content

Toolchain expects the sysroot to end with a "w64devkit" directory (missing includes when renamed) #212

@NSP-0123456

Description

@NSP-0123456

I tried to build latest commit b061793 on windows 11 x64.

gcc seems to be broken.
A simple code like

#include <stdio.h>
#include <stdarg.h>

/* print all non-negative args one at a time;
   all args are assumed to be of int type */
void printargs(int arg1, ...)
{
  va_list ap;
  int i;

  va_start(ap, arg1); 
  for (i = arg1; i >= 0; i = va_arg(ap, int))
    printf("%d ", i);
  va_end(ap);
  putchar('\n');
}

int main(void)
{
   printargs(5, 2, 14, 84, 97, 15, 24, 48, -1);
   printargs(84, 51, -1);
   printargs(-1);
   printargs(1, -1);
   return 0;
}

fails to compile
stdsample.c:1:10: fatal error: stdio.h: No such file or directory.

If i add the include folder using -I /include option it works but standard includes should be found automatically.

It is also th same from the w64devkit.exe shell.

All was working fine with 2.1.0 x64 exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions