root@rock-3a:~/SDL# make
/bin/bash build-scripts/updaterev.sh
/bin/bash build-scripts/mkinstalldirs build
mkdir -p – build
touch build/.created
CC build/SDL.lo
CC build/SDL_assert.lo
CC build/SDL_dataqueue.lo
CC build/SDL_error.lo
CC build/SDL_hints.lo
CC build/SDL_log.lo
CC build/SDL_atomic.lo
CC build/SDL_spinlock.lo
CC build/SDL_audio.lo
CC build/SDL_audiocvt.lo
CC build/SDL_audiodev.lo
In file included from /usr/include/aarch64-linux-gnu/bits/fcntl-linux.h:353,
from /usr/include/aarch64-linux-gnu/bits/fcntl.h:61,
from /usr/include/fcntl.h:35,
from /root/SDL/src/audio/SDL_audiodev.c:27:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/falloc.h:13:2: error: unknown type name ‘__s16’
13 | __s16 l_type;
| ^~~~~
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/falloc.h:14:2: error: unknown type name ‘__s16’
14 | __s16 l_whence;
| ^~~~~
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/falloc.h:15:2: error: unknown type name ‘__s64’
15 | __s64 l_start;
| ^~~~~
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/falloc.h:16:2: error: unknown type name ‘__s64’
16 | __s64 l_len; /* len == 0 means until end of file */
| ^~~~~
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/falloc.h:17:2: error: unknown type name ‘__s32’
17 | __s32 l_sysid;
| ^~~~~
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/falloc.h:18:2: error: unknown type name ‘__u32’
18 | __u32 l_pid;
| ^~~~~
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/falloc.h:19:2: error: unknown type name ‘__s32’
19 | __s32 l_pad[4]; /* reserved area */
| ^~~~~
In file included from /usr/include/aarch64-linux-gnu/asm/stat.h:1,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:6,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/include/asm-generic/stat.h:24:8: error: redefinition of ‘struct stat’
24 | struct stat {
| ^~~~
In file included from /usr/include/fcntl.h:78,
from /root/SDL/src/audio/SDL_audiodev.c:27:
/usr/include/aarch64-linux-gnu/bits/stat.h:58:8: note: originally defined here
58 | struct stat
| ^~~~
/usr/include/asm-generic/stat.h:37:8: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘attribute’ before ‘.’ token
37 | long st_atime; /* Time of last access. */
| ^~~~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:15:26: error: conflicting types for ‘fd_set’
15 | typedef __kernel_fd_set fd_set;
| ^~~~~~
In file included from /usr/include/aarch64-linux-gnu/sys/types.h:179,
from include/SDL_stdinc.h:40,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/sys/select.h:70:5: note: previous declaration of ‘fd_set’ was here
70 | } fd_set;
| ^~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:16:25: error: conflicting types for ‘dev_t’
16 | typedef __kernel_dev_t dev_t;
| ^~~~~
In file included from include/SDL_stdinc.h:40,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/sys/types.h:59:17: note: previous declaration of ‘dev_t’ was here
59 | typedef __dev_t dev_t;
| ^~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:26:26: error: conflicting types for ‘timer_t’
26 | typedef __kernel_timer_t timer_t;
| ^~~~~~~
In file included from /usr/include/aarch64-linux-gnu/sys/types.h:130,
from include/SDL_stdinc.h:40,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h:7:19: note: previous declaration of ‘timer_t’ was here
7 | typedef __timer_t timer_t;
| ^~~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:46:26: error: conflicting types for ‘loff_t’
46 | typedef __kernel_loff_t loff_t;
| ^~~~~~
In file included from include/SDL_stdinc.h:40,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/sys/types.h:42:18: note: previous declaration of ‘loff_t’ was here
42 | typedef __loff_t loff_t;
| ^~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:112:15: error: conflicting types for ‘uint64_t’
112 | typedef u64 uint64_t;
| ^~~~~~~~
In file included from /usr/include/stdint.h:37,
from /usr/lib/gcc/aarch64-linux-gnu/10/include/stdint.h:9,
from /usr/include/inttypes.h:27,
from include/SDL_stdinc.h:75,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h:27:20: note: previous declaration of ‘uint64_t’ was here
27 | typedef __uint64_t uint64_t;
| ^~~~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:113:15: error: conflicting types for ‘u_int64_t’
113 | typedef u64 u_int64_t;
| ^~~~~~~~~
In file included from include/SDL_stdinc.h:40,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/sys/types.h:161:20: note: previous declaration of ‘u_int64_t’ was here
161 | typedef __uint64_t u_int64_t;
| ^~~~~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:114:15: error: conflicting types for ‘int64_t’
114 | typedef s64 int64_t;
| ^~~~~~~
In file included from /usr/include/aarch64-linux-gnu/sys/types.h:155,
from include/SDL_stdinc.h:40,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h:27:19: note: previous declaration of ‘int64_t’ was here
27 | typedef __int64_t int64_t;
| ^~~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/uapi/linux/stat.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:7,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/types.h:135:23: error: conflicting types for ‘blkcnt_t’
135 | typedef unsigned long blkcnt_t;
| ^~~~~~~~
In file included from include/SDL_stdinc.h:40,
from include/SDL_log.h:40,
from /root/SDL/src/audio/…/SDL_internal.h:125,
from /root/SDL/src/audio/SDL_audiodev.c:21:
/usr/include/aarch64-linux-gnu/sys/types.h:192:20: note: previous declaration of ‘blkcnt_t’ was here
192 | typedef __blkcnt_t blkcnt_t; /* Type to count number of disk blocks. */
| ^~~~~~~~
In file included from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/time.h:5,
from /usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/stat.h:19,
from /usr/include/aarch64-linux-gnu/bits/statx.h:31,
from /usr/include/aarch64-linux-gnu/sys/stat.h:446,
from /root/SDL/src/audio/SDL_audiodev.c:29:
/usr/src/linux-headers-4.19.193-42-rockchip-ge29be2b2ed27/include/linux/cache.h:6:10: fatal error: asm/cache.h: No such file or directory
6 | #include <asm/cache.h>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:297: build/SDL_audiodev.lo] Error 1
and in any case, OpenGL doesn’t work for me.