input-emulator
input-emulator copied to clipboard
Installation error
I'm not able to install this using the instructions in the README. I get the following outputs:
meson setup --reconfigure build
The Meson build system
Version: 1.5.1
Source dir: /home/myname/Apps/github-stuff/input-emulator
Build dir: /home/myname/Apps/github-stuff/input-emulator/build
Build type: native build
Project name: input-emulator
Project version: 0.9
C compiler for the host machine: clang (clang 19.1.7 "clang version 19.1.7 (Fedora 19.1.7-2.fc41)")
C linker for the host machine: clang ld.bfd 2.43.1-5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring config.h using configuration
Library rt found: YES
Configuring input-emulator.1 using configuration
Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0
Found CMake: /usr/bin/cmake (3.30.7)
Run-time dependency bash-completion found: NO (tried pkgconfig and cmake)
Build targets in project: 1
Found ninja-1.12.1 at /usr/bin/ninja
Cleaning... 0 files.
meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/myname/Apps/github-stuff/input-emulator/build
ninja: Entering directory `/home/myname/Apps/github-stuff/input-emulator/build'
[1/7] Compiling C object src/input-emulator.p/service.c.o
FAILED: src/input-emulator.p/service.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/service.c.o -MF src/input-emulator.p/service.c.o.d -o src/input-emulator.p/service.c.o -c ../src/service.c
../src/service.c:53:5: error: use of undeclared identifier 'pid_t'
53 | pid_t pid, sid;
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[2/7] Compiling C object src/input-emulator.p/message.c.o
FAILED: src/input-emulator.p/message.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/message.c.o -MF src/input-emulator.p/message.c.o.d -o src/input-emulator.p/message.c.o -c ../src/message.c
../src/message.c:48:9: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
48 | int sockfd;
| ^
../src/message.c:42:13: note: previous declaration is here
42 | static int *sockfd = &new_srv_sockfd;
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[3/7] Compiling C object src/input-emulator.p/options.c.o
FAILED: src/input-emulator.p/options.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/options.c.o -MF src/input-emulator.p/options.c.o.d -o src/input-emulator.p/options.c.o -c ../src/options.c
../src/options.c:182:37: error: call to undeclared function 'strdup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
182 | option.string = strdup(argv[optind]);
| ^
../src/options.c:182:37: note: did you mean 'strcmp'?
/usr/include/string.h:156:12: note: 'strcmp' declared here
156 | extern int strcmp (const char *__s1, const char *__s2)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[4/7] Compiling C object src/input-emulator.p/touch.c.o
FAILED: src/input-emulator.p/touch.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/touch.c.o -MF src/input-emulator.p/touch.c.o.d -o src/input-emulator.p/touch.c.o -c ../src/touch.c
../src/touch.c:86:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
86 | usleep(duration*1000);
| ^
../src/touch.c:86:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
464 | extern unsigned int sleep (unsigned int __seconds);
| ^
1 error generated.
[5/7] Compiling C object src/input-emulator.p/keyboard.c.o
FAILED: src/input-emulator.p/keyboard.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/keyboard.c.o -MF src/input-emulator.p/keyboard.c.o.d -o src/input-emulator.p/keyboard.c.o -c ../src/keyboard.c
../src/keyboard.c:587:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
587 | usleep(kbd_type_delay*1000);
| ^
../src/keyboard.c:587:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
464 | extern unsigned int sleep (unsigned int __seconds);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[6/7] Compiling C object src/input-emulator.p/mouse.c.o
FAILED: src/input-emulator.p/mouse.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -MD -MQ src/input-emulator.p/mouse.c.o -MF src/input-emulator.p/mouse.c.o.d -o src/input-emulator.p/mouse.c.o -c ../src/mouse.c
../src/mouse.c:109:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
109 | usleep(1000);
| ^
../src/mouse.c:109:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
464 | extern unsigned int sleep (unsigned int __seconds);
| ^
1 error generated.
ninja: build stopped: subcommand failed.
a282f15aa3b53ccc71bf58acfd7fe9e8a14012a7 should fix your build problem.
a282f15 doesn't seem to have fixed it:
$ git checkout a282f15
HEAD is now at a282f15 Do not error on shadow variables
$ meson build
The Meson build system
Version: 1.5.1
Source dir: /home/myname/Apps/github-stuff/input-emulator
Build dir: /home/myname/Apps/github-stuff/input-emulator/build
Build type: native build
Project name: input-emulator
Project version: 0.9
C compiler for the host machine: clang (clang 19.1.7 "clang version 19.1.7 (Fedora 19.1.7-2.fc41)")
C linker for the host machine: clang ld.bfd 2.43.1-5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring config.h using configuration
Library rt found: YES
Configuring input-emulator.1 using configuration
Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0
Found CMake: /usr/bin/cmake (3.30.7)
Run-time dependency bash-completion found: NO (tried pkgconfig and cmake)
Build targets in project: 1
Found ninja-1.12.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/myname/Apps/github-stuff/input-emulator/build
ninja: Entering directory `/home/myname/Apps/github-stuff/input-emulator/build'
[6/12] Compiling C object src/input-emulator.p/service.c.o
FAILED: src/input-emulator.p/service.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -Wno-shadow -MD -MQ src/input-emulator.p/service.c.o -MF src/input-emulator.p/service.c.o.d -o src/input-emulator.p/service.c.o -c ../src/service.c
../src/service.c:53:5: error: use of undeclared identifier 'pid_t'
53 | pid_t pid, sid;
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[7/12] Compiling C object src/input-emulator.p/message.c.o
FAILED: src/input-emulator.p/message.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -Wno-shadow -MD -MQ src/input-emulator.p/message.c.o -MF src/input-emulator.p/message.c.o.d -o src/input-emulator.p/message.c.o -c ../src/message.c
../src/message.c:60:5: error: call to undeclared function 'bzero'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
60 | bzero((char *) &serv_addr, sizeof(serv_addr));
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[8/12] Compiling C object src/input-emulator.p/options.c.o
FAILED: src/input-emulator.p/options.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -Wno-shadow -MD -MQ src/input-emulator.p/options.c.o -MF src/input-emulator.p/options.c.o.d -o src/input-emulator.p/options.c.o -c ../src/options.c
../src/options.c:182:37: error: call to undeclared function 'strdup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
182 | option.string = strdup(argv[optind]);
| ^
../src/options.c:182:37: note: did you mean 'strcmp'?
/usr/include/string.h:156:12: note: 'strcmp' declared here
156 | extern int strcmp (const char *__s1, const char *__s2)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
[9/12] Compiling C object src/input-emulator.p/touch.c.o
FAILED: src/input-emulator.p/touch.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -Wno-shadow -MD -MQ src/input-emulator.p/touch.c.o -MF src/input-emulator.p/touch.c.o.d -o src/input-emulator.p/touch.c.o -c ../src/touch.c
../src/touch.c:86:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
86 | usleep(duration*1000);
| ^
../src/touch.c:86:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
464 | extern unsigned int sleep (unsigned int __seconds);
| ^
1 error generated.
[10/12] Compiling C object src/input-emulator.p/mouse.c.o
FAILED: src/input-emulator.p/mouse.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -Wno-shadow -MD -MQ src/input-emulator.p/mouse.c.o -MF src/input-emulator.p/mouse.c.o.d -o src/input-emulator.p/mouse.c.o -c ../src/mouse.c
../src/mouse.c:109:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
109 | usleep(1000);
| ^
../src/mouse.c:109:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
464 | extern unsigned int sleep (unsigned int __seconds);
| ^
1 error generated.
[11/12] Compiling C object src/input-emulator.p/keyboard.c.o
FAILED: src/input-emulator.p/keyboard.c.o
clang -Isrc/input-emulator.p -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -ferror-limit=1 -gdwarf-4 -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-gnu-folding-constant -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wshadow -Wno-unused-result -Wno-shadow -MD -MQ src/input-emulator.p/keyboard.c.o -MF src/input-emulator.p/keyboard.c.o.d -o src/input-emulator.p/keyboard.c.o -c ../src/keyboard.c
../src/keyboard.c:587:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
587 | usleep(kbd_type_delay*1000);
| ^
../src/keyboard.c:587:5: note: did you mean 'sleep'?
/usr/include/unistd.h:464:21: note: 'sleep' declared here
464 | extern unsigned int sleep (unsigned int __seconds);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
ninja: build stopped: subcommand failed.
Something is fishy. I just tried compiling tio using clang (version 19.1.1) without any problems:
$ CC=clang meson setup build-clang --prefix $HOME/opt/tio
$ ninja --verbose -C build-clang
ninja: Entering directory `build-clang'
[1/20] /usr/bin/meson --internal vcstagger ../src/version.h.in src/version.h 3.8 /home/lundmar/projects/tio/tio/src @VERSION@ '(.*)' /usr/bin/git describe --tags --always --dirty
[2/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/setspeed.c.o -MF src/tio.p/setspeed.c.o.d -o src/tio.p/setspeed.c.o -c ../src/setspeed.c
[3/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/print.c.o -MF src/tio.p/print.c.o.d -o src/tio.p/print.c.o -c ../src/print.c
[4/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/signals.c.o -MF src/tio.p/signals.c.o.d -o src/tio.p/signals.c.o -c ../src/signals.c
[5/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/alert.c.o -MF src/tio.p/alert.c.o.d -o src/tio.p/alert.c.o -c ../src/alert.c
[6/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/log.c.o -MF src/tio.p/log.c.o.d -o src/tio.p/log.c.o -c ../src/log.c
[7/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/fs.c.o -MF src/tio.p/fs.c.o.d -o src/tio.p/fs.c.o -c ../src/fs.c
[8/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/timestamp.c.o -MF src/tio.p/timestamp.c.o.d -o src/tio.p/timestamp.c.o -c ../src/timestamp.c
[9/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/rs485.c.o -MF src/tio.p/rs485.c.o.d -o src/tio.p/rs485.c.o -c ../src/rs485.c
[10/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/readline.c.o -MF src/tio.p/readline.c.o.d -o src/tio.p/readline.c.o -c ../src/readline.c
[11/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/main.c.o -MF src/tio.p/main.c.o.d -o src/tio.p/main.c.o -c ../src/main.c
[12/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/socket.c.o -MF src/tio.p/socket.c.o.d -o src/tio.p/socket.c.o -c ../src/socket.c
[13/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/error.c.o -MF src/tio.p/error.c.o.d -o src/tio.p/error.c.o -c ../src/error.c
[14/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/misc.c.o -MF src/tio.p/misc.c.o.d -o src/tio.p/misc.c.o -c ../src/misc.c
[15/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/script.c.o -MF src/tio.p/script.c.o.d -o src/tio.p/script.c.o -c ../src/script.c
[16/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/configfile.c.o -MF src/tio.p/configfile.c.o.d -o src/tio.p/configfile.c.o -c ../src/configfile.c
[17/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/options.c.o -MF src/tio.p/options.c.o.d -o src/tio.p/options.c.o -c ../src/options.c
[18/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/xymodem.c.o -MF src/tio.p/xymodem.c.o.d -o src/tio.p/xymodem.c.o -c ../src/xymodem.c
[19/20] clang -Isrc/tio.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/lua5.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -pthread -Wno-unused-result -DHAVE_TERMIOS2 -DHAVE_RS485 -MD -MQ src/tio.p/tty.c.o -MF src/tio.p/tty.c.o.d -o src/tio.p/tty.c.o -c ../src/tty.c
[20/20] clang -o src/tio src/tio.p/error.c.o src/tio.p/log.c.o src/tio.p/main.c.o src/tio.p/options.c.o src/tio.p/misc.c.o src/tio.p/tty.c.o src/tio.p/print.c.o src/tio.p/configfile.c.o src/tio.p/signals.c.o src/tio.p/socket.c.o src/tio.p/setspeed.c.o src/tio.p/rs485.c.o src/tio.p/timestamp.c.o src/tio.p/alert.c.o src/tio.p/xymodem.c.o src/tio.p/script.c.o src/tio.p/fs.c.o src/tio.p/readline.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -pthread -Wl,--start-group /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/liblua5.4.so -Wl,--end-group
Perhaps the Fedora clang toolchain is configured to be stricter than Ubuntus clang toolchain.