linux-surface / iptsd

Userspace daemon for Intel Precise Touch & Stylus
GNU General Public License v2.0
86 stars 39 forks source link

[SP7P][Fedora 36] Error when meson build #73

Closed Pairman closed 1 year ago

Pairman commented 1 year ago

I can successfully build and use quo/iptsd by running

$ meson build --wrap-mode=forcefallback --buildtype=debugoptimized -Dmarch=native
$ ninja -C build
$ sudo build/src/daemon/iptsd

But when I build linux-surface/iptsd either by meson build or meson build --wrap-mode=forcefallback --buildtype=debugoptimized , It just failed with error:

[pairman@fedora iptsd]$ meson build
The Meson build system
Version: 0.62.2
Source dir: /home/pairman/Documents/Sources/iptsd
Build dir: /home/pairman/Documents/Sources/iptsd/build
Build type: native build
Project name: iptsd
Project version: 0.5.1
C compiler for the host machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C linker for the host machine: cc ld.bfd 2.37-27
C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the host machine: c++ ld.bfd 2.37-27
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring iptsd@.service using configuration
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency systemd found: YES 250
Run-time dependency udev found: YES 250
Configuring configure.h using configuration
Compiler for C++ supports arguments -Wuninitialized: YES 
Compiler for C++ supports arguments -Wno-unused-result: YES 
Compiler for C++ supports arguments -Wlogical-op: YES 
Compiler for C++ supports arguments -Wmissing-include-dirs: YES 
Compiler for C++ supports arguments -Wpointer-arith: YES 
Compiler for C++ supports arguments -Winit-self: YES 
Compiler for C++ supports arguments -Wimplicit-fallthrough=2: YES 
Compiler for C++ supports arguments -Wendif-labels: YES 
Compiler for C++ supports arguments -Wstrict-aliasing=2: YES 
Compiler for C++ supports arguments -Woverflow: YES 
Compiler for C++ supports arguments -Wno-missing-braces: YES 
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES 
Compiler for C++ supports arguments -Wno-unused-parameter: YES 
Compiler for C++ supports arguments -ffast-math: YES 
Compiler for C++ supports arguments -march=x86-64-v3: YES 
Run-time dependency fmt found: YES 8.1.1
Found CMake: /usr/bin/cmake (3.22.2)
Run-time dependency inih found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency inih

Executing subproject inih 

inih| Project name: inih
inih| Project version: undefined
inih| C compiler for the host machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
inih| C linker for the host machine: cc ld.bfd 2.37-27
inih| C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
inih| C++ linker for the host machine: c++ ld.bfd 2.37-27
inih| Build targets in project: 2
inih| Subproject inih finished.

Dependency inih from subproject subprojects/inih-r54 found: YES undefined
Run-time dependency spdlog found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency spdlog

Executing subproject spdlog 

spdlog| Project name: spdlog
spdlog| Project version: 1.10.0
spdlog| C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
spdlog| C++ linker for the host machine: c++ ld.bfd 2.37-27
spdlog| Run-time dependency threads found: YES
spdlog| Dependency fmt found: YES 8.1.1 (cached)
spdlog| Build targets in project: 3
spdlog| Subproject spdlog finished.

Dependency spdlog from subproject subprojects/spdlog-1.10.0 found: YES 1.10.0
Run-time dependency microsoft.gsl found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency Microsoft.GSL (modules: Microsoft.GSL::GSL)

Executing subproject microsoft-gsl 

microsoft-gsl| Project name: microsoft-gsl
microsoft-gsl| Project version: 4.0.0
microsoft-gsl| C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
microsoft-gsl| C++ linker for the host machine: c++ ld.bfd 2.37-27
microsoft-gsl| Build targets in project: 3
microsoft-gsl| Subproject microsoft-gsl finished.

Dependency Microsoft.GSL (modules: Microsoft.GSL::GSL) from subproject subprojects/GSL-4.0.0 found: YES 4.0.0
Library hidrd_item found: NO
Run-time dependency hidrd_item found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency hidrd_item

Executing subproject hidrd 

hidrd| Project name: hidrd
hidrd| Project version: undefined
hidrd| C compiler for the host machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
hidrd| C linker for the host machine: cc ld.bfd 2.37-27

subprojects/hidrd/meson.build:7:0: ERROR: Command "/home/pairman/Documents/Sources/iptsd/subprojects/hidrd/bootstrap" failed with status 1.

A full log can be found at /home/pairman/Documents/Sources/iptsd/build/meson-logs/meson-log.txt
Pairman commented 1 year ago

The full log:

[pairman@fedora iptsd]$ cat /home/pairman/Documents/Sources/iptsd/build/meson-logs/meson-log.txt
Build started at 2022-08-27T18:07:16.380925
Main binary: /usr/bin/python3
Build Options: 
Python system: Linux
The Meson build system
Version: 0.62.2
Source dir: /home/pairman/Documents/Sources/iptsd
Build dir: /home/pairman/Documents/Sources/iptsd/build
Build type: native build
Project name: iptsd
Project version: 0.5.1
Sanity testing C compiler: ccache cc
Is cross compiler: False.
Sanity check compiler command line: ccache cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/pairman/Documents/Sources/iptsd/build/meson-private/sanitycheckc.exe
C compiler for the host machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C linker for the host machine: cc ld.bfd 2.37-27
Sanity testing C++ compiler: ccache c++
Is cross compiler: False.
Sanity check compiler command line: ccache c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/pairman/Documents/Sources/iptsd/build/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the host machine: c++ ld.bfd 2.37-27
Sanity testing C compiler: ccache cc
Is cross compiler: False.
Sanity check compiler command line: ccache cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/pairman/Documents/Sources/iptsd/build/meson-private/sanitycheckc.exe
C compiler for the build machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C linker for the build machine: cc ld.bfd 2.37-27
Sanity testing C++ compiler: ccache c++
Is cross compiler: False.
Sanity check compiler command line: ccache c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/pairman/Documents/Sources/iptsd/build/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the build machine: c++ ld.bfd 2.37-27
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Configuring iptsd@.service using configuration
Pkg-config binary for 1 is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Determining dependency 'systemd' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion systemd` -> 0
250
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags systemd` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs systemd` -> 0

env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs systemd` -> 0

Run-time dependency systemd found: YES 250
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --variable=systemdsystemunitdir systemd` -> 0
/usr/lib/systemd/system
Got pkgconfig variable systemdsystemunitdir : /usr/lib/systemd/system
Pkg-config binary for 1 is cached.
Determining dependency 'udev' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion udev` -> 0
250
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags udev` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs udev` -> 0

env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs udev` -> 0

Run-time dependency udev found: YES 250
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --variable=udevdir udev` -> 0
/usr/lib/udev
Got pkgconfig variable udevdir : /usr/lib/udev
Configuring configure.h using configuration
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpc_a2l23x
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpc_a2l23x/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpc_a2l23x/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wuninitialized 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wuninitialized: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp58wan4gd
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp58wan4gd/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp58wan4gd/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wunused-result -Wno-unused-result 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wno-unused-result: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpimsmolmu
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpimsmolmu/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpimsmolmu/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wlogical-op 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wlogical-op: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpnvy561tp
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpnvy561tp/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpnvy561tp/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wmissing-include-dirs 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wmissing-include-dirs: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpogvqehbk
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpogvqehbk/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpogvqehbk/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wpointer-arith 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wpointer-arith: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpd1ikvuq7
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpd1ikvuq7/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpd1ikvuq7/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Winit-self 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Winit-self: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp6hnv1dwa
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp6hnv1dwa/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp6hnv1dwa/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wimplicit-fallthrough=2 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wimplicit-fallthrough=2: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmphsktyzw3
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmphsktyzw3/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmphsktyzw3/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wendif-labels 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wendif-labels: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp9moh_rs1
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp9moh_rs1/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp9moh_rs1/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wstrict-aliasing=2 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wstrict-aliasing=2: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpf71ymp4z
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpf71ymp4z/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpf71ymp4z/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Woverflow 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Woverflow: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp0koauz96
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp0koauz96/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp0koauz96/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wmissing-braces -Wno-missing-braces 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wno-missing-braces: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmptl44djmw
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmptl44djmw/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmptl44djmw/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wmissing-field-initializers -Wno-missing-field-initializers 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wno-missing-field-initializers: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmphvbl0715
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmphvbl0715/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmphvbl0715/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wunused-parameter -Wno-unused-parameter 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wno-unused-parameter: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp28vd6y08
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp28vd6y08/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp28vd6y08/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -ffast-math 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -ffast-math: YES 
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpowcy6svm
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpowcy6svm/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpowcy6svm/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -march=x86-64-v3 

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -march=x86-64-v3: YES 
Pkg-config binary for 1 is cached.
Determining dependency 'fmt' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion fmt` -> 0
8.1.1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags fmt` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs fmt` -> 0
-L/usr/lib64 -lfmt
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs fmt` -> 0
-lfmt
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpui4xtq1x
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpui4xtq1x/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpui4xtq1x/output.exe -D_FILE_OFFSET_BITS=64 -O0 -fpermissive 

Code:
 #include<stdio.h>

        int main(void) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        }
Compiler stdout:

Compiler stderr:

Program stdout:

8

Program stderr:

Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp2g5hie9b
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp2g5hie9b/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmp2g5hie9b/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive --print-search-dirs 

Code:

Compiler stdout:
 install: /usr/lib/gcc/x86_64-redhat-linux/12/
programs: =/usr/libexec/gcc/x86_64-redhat-linux/12/:/usr/libexec/gcc/x86_64-redhat-linux/12/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/12/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../../x86_64-redhat-linux/bin/x86_64-redhat-linux/12/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../../x86_64-redhat-linux/bin/
libraries: =/usr/lib/gcc/x86_64-redhat-linux/12/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../../x86_64-redhat-linux/lib/x86_64-redhat-linux/12/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../../x86_64-redhat-linux/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../x86_64-redhat-linux/12/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../../lib64/:/lib/x86_64-redhat-linux/12/:/lib/../lib64/:/usr/lib/x86_64-redhat-linux/12/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../../x86_64-redhat-linux/lib/:/usr/lib/gcc/x86_64-redhat-linux/12/../../../:/lib/:/usr/lib/

Compiler stderr:

Run-time dependency fmt found: YES 8.1.1
Pkg-config binary for 1 is cached.
Determining dependency 'inih' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion inih` -> 1

CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Found CMake: /usr/bin/cmake (3.22.2)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['/usr/bin/cmake']) in /home/pairman/Documents/Sources/iptsd/build/meson-private/__CMake_compiler_info__ with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-G"
  - "Ninja"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/pairman/Documents/Sources/iptsd/build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
  - "."
Try CMake generator: auto
Calling CMake (['/usr/bin/cmake']) in /home/pairman/Documents/Sources/iptsd/build/meson-private/cmake_inih with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/pairman/Documents/Sources/iptsd/build/meson-private/cmake_inih/CMakeMesonToolchainFile.cmake"
  - "."
  -- Module search paths:    ['/', '/opt', '/usr', '/usr/local']
  -- CMake root:             /usr/share/cmake
  -- CMake architectures:    ['x86_64-linux-gnu']
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', 'lib/x86_64-linux-gnu']
Preliminary CMake check failed. Aborting.
Run-time dependency inih found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency inih

Executing subproject inih 

Project name: inih
Project version: undefined
C compiler for the host machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C linker for the host machine: cc ld.bfd 2.37-27
C compiler for the build machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C linker for the build machine: cc ld.bfd 2.37-27
C++ compiler for the build machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the build machine: c++ ld.bfd 2.37-27
C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the host machine: c++ ld.bfd 2.37-27
Build targets in project: 2
Subproject inih finished.

Dependency inih from subproject subprojects/inih-r54 found: YES undefined
Pkg-config binary for 1 is cached.
Determining dependency 'spdlog' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion spdlog` -> 1

CMake binary for 1 is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency spdlog found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency spdlog

Executing subproject spdlog 

Project name: spdlog
Project version: 1.10.0
C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the host machine: c++ ld.bfd 2.37-27
C++ compiler for the build machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the build machine: c++ ld.bfd 2.37-27
Run-time dependency threads found: YES
Dependency fmt found: YES 8.1.1 (cached)
Adding test "tests"
Build targets in project: 3
Subproject spdlog finished.

Dependency spdlog from subproject subprojects/spdlog-1.10.0 found: YES 1.10.0
Pkg-config binary for 1 is cached.
Determining dependency 'Microsoft.GSL' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion Microsoft.GSL` -> 1

CMake binary for 1 is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency microsoft.gsl found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency Microsoft.GSL (modules: Microsoft.GSL::GSL)

Executing subproject microsoft-gsl 

Project name: microsoft-gsl
Project version: 4.0.0
C++ compiler for the host machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the host machine: c++ ld.bfd 2.37-27
C++ compiler for the build machine: ccache c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C++ linker for the build machine: c++ ld.bfd 2.37-27
Build targets in project: 3
Subproject microsoft-gsl finished.

Dependency Microsoft.GSL (modules: Microsoft.GSL::GSL) from subproject subprojects/GSL-4.0.0 found: YES 4.0.0
Running compile:
Working directory:  /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpp5lmxvjl
Command line:  ccache c++ /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpp5lmxvjl/testfile.cpp -o /home/pairman/Documents/Sources/iptsd/build/meson-private/tmpp5lmxvjl/output.exe -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wl,--start-group -lhidrd_item -Wl,--end-group -Wl,--allow-shlib-undefined 

Code:
 int main(void) { return 0; }

Compiler stdout:

Compiler stderr:
 /usr/bin/ld: cannot find -lhidrd_item
collect2: error: ld returned 1 exit status

Library hidrd_item found: NO
Pkg-config binary for 1 is cached.
Determining dependency 'hidrd_item' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion hidrd_item` -> 1

CMake binary for 1 is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency hidrd_item found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency hidrd_item

Executing subproject hidrd 

Project name: hidrd
Project version: undefined
C compiler for the host machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C linker for the host machine: cc ld.bfd 2.37-27
C compiler for the build machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-1)")
C linker for the build machine: cc ld.bfd 2.37-27
Running command: /home/pairman/Documents/Sources/iptsd/subprojects/hidrd/bootstrap
--- stdout ---

--- stderr ---
autom4te: error: cannot open autom4te.cache/requests: Permission denied
aclocal: error: /usr/bin/autom4te failed with exit status: 1
autoreconf: error: aclocal failed with exit status: 1

subprojects/hidrd/meson.build:7:0: ERROR: Command "/home/pairman/Documents/Sources/iptsd/subprojects/hidrd/bootstrap" failed with status 1.
[pairman@fedora iptsd]$

autoconf is already installed.

StollD commented 1 year ago

Just install hidrd through the packagemanager: sudo dnf install hidrd-devel

Pairman commented 1 year ago

Just install hidrd through the packagemanager: sudo dnf install hidrd-devel

Thanks. Build successfully now

NP-chaonay commented 1 year ago

Just install hidrd through the packagemanager: sudo dnf install hidrd-devel

wait, does not that indicate of subpackage config failed in build? so maybe either 2 way

StollD commented 1 year ago

Yes, the subpackage fails, but I believe this is a fluke. The CI didnt fail for Arch and Debian, who download hidrd using the fallback during build. And since Fedora is the only distribution that packages all of the dependencies, its easier to just make use of that than to debug the fluke. Maybe a git clean -dfx would fix it, maybe not. Why spend time debugging it when its not needed?

NP-chaonay commented 1 year ago

And since Fedora is the only distribution th

so we have to cleary specified in README.md through or else there will be many one making issue and say

"I cannot build iptsd in Fedora"

Fluke for me able to use in context of HW uncertainty, without it everything in Computer world must be certainty. So that software build failed should not considered as fluke anyway.

Ex. kernel panic due to ram bit filped can considered as fluke. But if no hw uncertainty involved, it like a math where it have defination and everyone who understand it know what it happens next and how and why. It must happens as what it MUST happens, so we cannot say 1+1 != 2 because some quantum uncertainty.