i build libreelec from source on a gentoo-system with (host)gcc 7.2.0 (gcc-Version 7.2.0 (Gentoo 7.2.0 p1.1))
for some months now compilation has been failing at the same point with the same error:
Code
(...)
patching file squashfs-tools/zstd_wrapper.h
BUILD squashfs (host)
TOOLCHAIN manual
(...)
/mnt/backup/.wsamin/le/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel/toolchain/bin/host-gcc -O2 -Wall -pipe -I/mnt/backup/.wsamin/le/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel/toolchain/include -Wno-format-security -I. -I/mnt/backup/.wsamin/le/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel/toolchain/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DZSTD_SUPPORT -c -o zstd_wrapper.o zstd_wrapper.c
mksquashfs.c: In function 'create_inode':
mksquashfs.c:993:24: error: called object 'major' is not a function or function pointer
unsigned int major = major(buf->st_rdev);
^~~~~
mksquashfs.c:993:16: note: declared here
unsigned int major = major(buf->st_rdev);
^~~~~
mksquashfs.c:994:24: error: called object 'minor' is not a function or function pointer
unsigned int minor = minor(buf->st_rdev);
^~~~~
mksquashfs.c:994:16: note: declared here
unsigned int minor = minor(buf->st_rdev);
^~~~~
mksquashfs.c:1017:24: error: called object 'major' is not a function or function pointer
unsigned int major = major(buf->st_rdev);
^~~~~
mksquashfs.c:1017:16: note: declared here
unsigned int major = major(buf->st_rdev);
^~~~~
mksquashfs.c:1018:24: error: called object 'minor' is not a function or function pointer
unsigned int minor = minor(buf->st_rdev);
^~~~~
mksquashfs.c:1018:16: note: declared here
unsigned int minor = minor(buf->st_rdev);
^~~~~
mksquashfs.c: In function 'dir_scan2':
mksquashfs.c:3557:17: warning: implicit declaration of function 'makedev' [-Wimplicit-function-declaration]
buf.st_rdev = makedev(pseudo_ent->dev->major,
^~~~~~~
make[1]: *** [<builtin>: mksquashfs.o] Error 1
make[1]: Leaving directory '/mnt/backup/.wsamin/le/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel/squashfs-1a6ffc7/squashfs-tools'
make: *** [Makefile:9: release] Fehler 2
Display More
is there any way to fix this? i tried compiling with gcc-6.4.0 but the error occured in the same way and i have already deleted the buildtree a couple of times.
THX for your input!