Build error error: constant 0xfffff00000000000u is so big it is unsigned long
make PREFIX=/usr
mkdir -p build
echo "Uname: " Linux
Uname: Linux
echo "CFLAGS: " -O2 -D_FORTIFY_SOURCE=2
CFLAGS: -O2 -D_FORTIFY_SOURCE=2
(cd build && CFLAGS="-O2 -D_FORTIFY_SOURCE=2" meson --werror --warnlevel 2 --prefix=/usr ..)
The Meson build system
Version: 0.51.2
Source dir: /media/alexander/DataSSD/git/libinsane
Build dir: /media/alexander/DataSSD/git/libinsane/build
Build type: native build
Project name: libinsane-global
Project version: 1.0.4
Appending CFLAGS from environment: '-O2 -D_FORTIFY_SOURCE=2'
Appending CFLAGS from environment: '-O2 -D_FORTIFY_SOURCE=2'
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
|Executing subproject libinsane method meson
|
|Project name: libinsane
|Project version: 1.0.4
|C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
|Message: Target OS: Unix-like
|Run-time dependency threads found: YES
|Found pkg-config: /usr/bin/pkg-config (0.29.1)
|Run-time dependency sane-backends found: YES 1.0.30
|WARNING: Project targetting '>=0.37.1' but tried to use feature introduced in '0.41.0': Optional fallback in vcs_tag
|Found git repository at /media/alexander/DataSSD/git/libinsane
|WARNING: Project targetting '>=0.37.1' but tried to use feature introduced in '0.46.0': pkgconfig.generate optional positional argument
|Program doxygen found: YES (/usr/bin/doxygen)
|WARNING: Project targetting '>=0.37.1' but tried to use feature introduced in '0.50.0': install arg in configure_file
|Configuring doxygen.conf using configuration
|Run-time dependency cunit found: YES 2.1-3
|Program valgrind found: YES (/usr/bin/valgrind)
|Build targets in project: 25
|WARNING: Project specifies a minimum meson_version '>=0.37.1' but uses features which were added in newer versions:
| * 0.41.0: {'Optional fallback in vcs_tag'}
| * 0.46.0: {'pkgconfig.generate optional positional argument'}
| * 0.50.0: {'install arg in configure_file'}
|Subproject libinsane finished.
|Executing subproject libinsane-gobject method meson
|
|Project name: libinsane-gobject
|Project version: 1.0.4
|C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
|Run-time dependency gobject-2.0 found: YES 2.56.4
|Found pkg-config: /usr/bin/pkg-config (0.29.1)
|Build targets in project: 32
|Subproject libinsane-gobject finished.
Build targets in project: 32
Found ninja-1.8.2 at /usr/bin/ninja
(cd build && ninja)
[108/110] Generating Libinsane-1.0.gir with a custom command.
g-ir-scanner: link: cc -o /media/alexander/DataSSD/git/libinsane/build/tmp-introspect2_ppy5_f/Libinsane-1.0 /media/alexander/DataSSD/git/libinsane/build/tmp-introspect2_ppy5_f/Libinsane-1.0.o -L. -Wl,-rpath,. -Wl,--no-as-needed -linsane_gobject -lgobject-2.0 -lglib-2.0 -L/media/alexander/DataSSD/git/libinsane/build/subprojects/libinsane-gobject/src -Wl,-rpath,/media/alexander/DataSSD/git/libinsane/build/subprojects/libinsane-gobject/src -L/media/alexander/DataSSD/git/libinsane/build/subprojects/libinsane/src -Wl,-rpath,/media/alexander/DataSSD/git/libinsane/build/subprojects/libinsane/src -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
[110/110] Generating Libinsane-1.0.typelib with a custom command.
! command -v sparse || python3 ./check_sparse.py build/compile_commands.json
/usr/bin/sparse
Running sparse on ../subprojects/libinsane/src/bases/dumb.c
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:79:1: error: constant 0xfffff00000000000u is so big it is unsigned long
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:80:1: error: constant 0x00000ffffff00000u is so big it is unsigned long
Command was: ['sparse', '../subprojects/libinsane/src/bases/dumb.c', '-Isubprojects/libinsane/src/14d7ecf@@insane@sha', '-Isubprojects/libinsane/src', '-I../subprojects/libinsane/src', '-Isubprojects/libinsane/include', '-I../subprojects/libinsane/include', '-D_FILE_OFFSET_BITS=64', '-DOS_LINUX', '-DCOMPILER_GCC', '-D_FORTIFY_SOURCE=2', '-O2', '-Wsparse-all', '-Wsparse-error', '-D_Float32=float', '-D_Float32x=float', '-D_Float64=double', '-D_Float64x=double', '-D_Float128=double', '-D_Float128x=double', '-D__ARM_PCS_VFP']
Makefile:50: recipe for target 'check' failed
make: *** [check] Error 1