Skip to content

Instantly share code, notes, and snippets.

@The-King-of-Toasters
Created August 11, 2024 06:43
Show Gist options
  • Save The-King-of-Toasters/5a53d87d43ec232b31e63be0df58f6c5 to your computer and use it in GitHub Desktop.
Save The-King-of-Toasters/5a53d87d43ec232b31e63be0df58f6c5 to your computer and use it in GitHub Desktop.
Whole lotta errors
ninja: Entering directory `build'
[1/3] Building C object CMakeFiles/zig2.dir/zig2.c.o
FAILED: CMakeFiles/zig2.dir/zig2.c.o
/usr/bin/cc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/sg/gits/zig/stage1 -I/home/sg/local/llvm18-release/include -g -std=c99 -O0 -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/zig2.c.o -MF CMakeFiles/zig2.dir/zig2.c.o.d -o CMakeFiles/zig2.dir/zig2.c.o -c /home/sg/gits/zig/build/zig2.c
/home/sg/gits/zig/build/zig2.c:300409:16: error: conflicting types for ‘sigaction’; have ‘int(int, const struct Sigaction__4012 *, struct Sigaction__4012 *)’
300409 | zig_extern int sigaction(int, struct Sigaction__4012 const *, struct Sigaction__4012 *);
| ^~~~~~~~~
In file included from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/signal.h:243:12: note: previous declaration of ‘sigaction’ with type ‘int(int, const struct sigaction * restrict, struct sigaction * restrict)’
243 | extern int sigaction (int __sig, const struct sigaction *__restrict __act,
| ^~~~~~~~~
/home/sg/gits/zig/build/zig2.c:300575:21: error: conflicting types for ‘getcwd’; have ‘uint8_t *(uint8_t *, uintptr_t)’ {aka ‘unsigned char *(unsigned char *, long unsigned int)’}
300575 | zig_extern uint8_t *getcwd(uint8_t *, uintptr_t);
| ^~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:531:14: note: previous declaration of ‘getcwd’ with type ‘char *(char *, size_t)’ {aka ‘char *(char *, long unsigned int)’}
531 | extern char *getcwd (char *__buf, size_t __size) __THROW __wur;
| ^~~~~~
/home/sg/gits/zig/build/zig2.c:300790:22: error: conflicting types for ‘environ’; have ‘uint8_t **’ {aka ‘unsigned char **’}
300790 | zig_extern uint8_t **environ;
| ^~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:566:15: note: previous declaration of ‘environ’ with type ‘char **’
566 | extern char **environ;
| ^~~~~~~
/home/sg/gits/zig/build/zig2.c:300805:21: error: conflicting types for ‘readlink’; have ‘intptr_t(const uint8_t *, uint8_t *, uintptr_t)’ {aka ‘long int(const unsigned char *, unsigned char *, long unsigned int)’}
300805 | zig_extern intptr_t readlink(uint8_t const *, uint8_t *, uintptr_t);
| ^~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:838:16: note: previous declaration of ‘readlink’ with type ‘ssize_t(const char * restrict, char * restrict, size_t)’ {aka ‘long int(const char * restrict, char * restrict, long unsigned int)’}
838 | extern ssize_t readlink (const char *__restrict __path,
| ^~~~~~~~
/home/sg/gits/zig/build/zig2.c:300811:21: error: conflicting types for ‘read’; have ‘intptr_t(int32_t, uint8_t *, uintptr_t)’ {aka ‘long int(int, unsigned char *, long unsigned int)’}
300811 | zig_extern intptr_t read(int32_t, uint8_t *, uintptr_t);
| ^~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:371:16: note: previous declaration of ‘read’ with type ‘ssize_t(int, void *, size_t)’ {aka ‘long int(int, void *, long unsigned int)’}
371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
| ^~~~
/home/sg/gits/zig/build/zig2.c:300889:21: error: conflicting types for ‘write’; have ‘intptr_t(int32_t, const uint8_t *, uintptr_t)’ {aka ‘long int(int, const unsigned char *, long unsigned int)’}
300889 | zig_extern intptr_t write(int32_t, uint8_t const *, uintptr_t);
| ^~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:378:16: note: previous declaration of ‘write’ with type ‘ssize_t(int, const void *, size_t)’ {aka ‘long int(int, const void *, long unsigned int)’}
378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^~~~~
/home/sg/gits/zig/build/zig2.c:301895:16: error: conflicting types for ‘faccessat’; have ‘int(int32_t, const uint8_t *, unsigned int, unsigned int)’ {aka ‘int(int, const unsigned char *, unsigned int, unsigned int)’}
301895 | zig_extern int faccessat(int32_t, uint8_t const *, unsigned int, unsigned int);
| ^~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:309:12: note: previous declaration of ‘faccessat’ with type ‘int(int, const char *, int, int)’
309 | extern int faccessat (int __fd, const char *__file, int __type, int __flag)
| ^~~~~~~~~
/home/sg/gits/zig/build/zig2.c:301912:21: error: conflicting types for ‘pwrite’; have ‘intptr_t(int32_t, const uint8_t *, uintptr_t, int64_t)’ {aka ‘long int(int, const unsigned char *, long unsigned int, long int)’}
301912 | zig_extern intptr_t pwrite(int32_t, uint8_t const *, uintptr_t, int64_t);
| ^~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:398:16: note: previous declaration of ‘pwrite’ with type ‘ssize_t(int, const void *, size_t, __off_t)’ {aka ‘long int(int, const void *, long unsigned int, long int)’}
398 | extern ssize_t pwrite (int __fd, const void *__buf, size_t __n,
| ^~~~~~
/home/sg/gits/zig/build/zig2.c:301984:16: error: conflicting types for ‘symlinkat’; have ‘int(const uint8_t *, int32_t, const uint8_t *)’ {aka ‘int(const unsigned char *, int, const unsigned char *)’}
301984 | zig_extern int symlinkat(uint8_t const *, int32_t, uint8_t const *);
| ^~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:847:12: note: previous declaration of ‘symlinkat’ with type ‘int(const char *, int, const char *)’
847 | extern int symlinkat (const char *__from, int __tofd,
| ^~~~~~~~~
/home/sg/gits/zig/build/zig2.c:302083:16: error: conflicting types for ‘pipe2’; have ‘int(int32_t (*)[2], uint32_t)’ {aka ‘int(int (*)[2], unsigned int)’}
302083 | zig_extern int pipe2(int32_t (*)[2], uint32_t);
| ^~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:442:12: note: previous declaration of ‘pipe2’ with type ‘int(int *, int)’
442 | extern int pipe2 (int __pipedes[2], int __flags) __THROW __wur;
| ^~~~~
/home/sg/gits/zig/build/zig2.c:302094:16: error: conflicting types for ‘execve’; have ‘int(const uint8_t *, const uint8_t * const*, const uint8_t * const*)’ {aka ‘int(const unsigned char *, const unsigned char * const*, const unsigned char * const*)’}
302094 | zig_extern int execve(uint8_t const *, uint8_t const *const *, uint8_t const *const *);
| ^~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:572:12: note: previous declaration of ‘execve’ with type ‘int(const char *, char * const*, char * const*)’
572 | extern int execve (const char *__path, char *const __argv[],
| ^~~~~~
/home/sg/gits/zig/build/zig2.c:302107:21: error: conflicting types for ‘pread’; have ‘intptr_t(int32_t, uint8_t *, uintptr_t, int64_t)’ {aka ‘long int(int, unsigned char *, long unsigned int, long int)’}
302107 | zig_extern intptr_t pread(int32_t, uint8_t *, uintptr_t, int64_t);
| ^~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:389:16: note: previous declaration of ‘pread’ with type ‘ssize_t(int, void *, size_t, __off_t)’ {aka ‘long int(int, void *, long unsigned int, long int)’}
389 | extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
| ^~~~~
/home/sg/gits/zig/build/zig2.c:302138:16: error: conflicting types for ‘unlinkat’; have ‘int(int32_t, const uint8_t *, unsigned int)’ {aka ‘int(int, const unsigned char *, unsigned int)’}
302138 | zig_extern int unlinkat(int32_t, uint8_t const *, unsigned int);
| ^~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:862:12: note: previous declaration of ‘unlinkat’ with type ‘int(int, const char *, int)’
862 | extern int unlinkat (int __fd, const char *__name, int __flag)
| ^~~~~~~~
/home/sg/gits/zig/build/zig2.c:302139:21: error: conflicting types for ‘readlinkat’; have ‘intptr_t(int32_t, const uint8_t *, uint8_t *, uintptr_t)’ {aka ‘long int(int, const unsigned char *, unsigned char *, long unsigned int)’}
302139 | zig_extern intptr_t readlinkat(int32_t, uint8_t const *, uint8_t *, uintptr_t);
| ^~~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:851:16: note: previous declaration of ‘readlinkat’ with type ‘ssize_t(int, const char * restrict, char * restrict, size_t)’ {aka ‘long int(int, const char * restrict, char * restrict, long unsigned int)’}
851 | extern ssize_t readlinkat (int __fd, const char *__restrict __path,
| ^~~~~~~~~~
/home/sg/gits/zig/build/zig2.c:302161:16: error: conflicting types for ‘chdir’; have ‘int(const uint8_t *)’ {aka ‘int(const unsigned char *)’}
302161 | zig_extern int chdir(uint8_t const *);
| ^~~~~
In file included from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/sg/gits/zig/stage1/zig.h:275,
from /home/sg/gits/zig/build/zig2.c:2:
/usr/include/unistd.h:517:12: note: previous declaration of ‘chdir’ with type ‘int(const char *)’
517 | extern int chdir (const char *__path) __THROW __nonnull ((1)) __wur;
| ^~~~~
/home/sg/gits/zig/build/zig2.c: In function ‘io_Writer_print__anon_63069__63069’:
/home/sg/gits/zig/build/zig2.c:901390: note: the ABI of passing aggregates with 16-byte alignment has changed in GCC 5
901390 | static uint16_t io_Writer_print__anon_63069__63069(struct io_Writer__9795 const a0, decl__63069_39 const a1) {
|
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment