Wow thanks I really appreciate itno new kernel changes it seems, but that´s not really surprising.
but since pixel 4a still gets updates, I can just merge the security updates from there.
when I find time I´ll give the kernel a bump.![]()
Wow thanks I really appreciate itno new kernel changes it seems, but that´s not really surprising.
but since pixel 4a still gets updates, I can just merge the security updates from there.
when I find time I´ll give the kernel a bump.![]()
/tmp/vgettimeofday-1bcac4.s: Assembler messages:
/tmp/vgettimeofday-1bcac4.s:3: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:3: Error: file number less than one
/tmp/vgettimeofday-1bcac4.s:4: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:5: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:6: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:7: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:54: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:67: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:143: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:175: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:1131: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:1132: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:1133: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:1134: Error: junk at end of line, first unrecognized character is `"'
/tmp/vgettimeofday-1bcac4.s:1152: Error: junk at end of line, first unrecognized character is `"'
clang-16: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../arch/arm64/kernel/vdso/Makefile:70: arch/arm64/kernel/vdso/vgettimeofday.o] Error 1
make[1]: *** [arch/arm64/Makefile:283: vdso_prepare] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/metatron/pixel4/kernel/FLORAL-master_T_floral_caf_27/out'
make: *** [Makefile:146: sub-make] Error 2
$make O=out ARCH=arm64 floral_defconfig
$make -j$(nproc --all) O=out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi-
That's the script I'm using to compile:Hi ! I tried to compile the kernel but failed with the following error.
/tmp/vgettimeofday-1bcac4.s: Assembler messages: /tmp/vgettimeofday-1bcac4.s:3: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:3: Error: file number less than one /tmp/vgettimeofday-1bcac4.s:4: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:5: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:6: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:7: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:54: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:67: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:143: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:175: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:1131: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:1132: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:1133: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:1134: Error: junk at end of line, first unrecognized character is `"' /tmp/vgettimeofday-1bcac4.s:1152: Error: junk at end of line, first unrecognized character is `"' clang-16: error: assembler command failed with exit code 1 (use -v to see invocation) make[2]: *** [../arch/arm64/kernel/vdso/Makefile:70: arch/arm64/kernel/vdso/vgettimeofday.o] Error 1 make[1]: *** [arch/arm64/Makefile:283: vdso_prepare] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/metatron/pixel4/kernel/FLORAL-master_T_floral_caf_27/out' make: *** [Makefile:146: sub-make] Error 2
My environment :
Ubuntu 20.04 running in VirtualBox
AOSP clang r475365b + AOSP gcc 4.9 android-13.0.0_r0.21
branches : master_T_floral_caf_27
Command :
$make O=out ARCH=arm64 floral_defconfig $make -j$(nproc --all) O=out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi-
I would spare no efforts to offer any information you need to diagnose the problem. PLEASE HELP ME !
Thank you for your excellent work again !
I downloaded pixel 4 aosp kernel source and I found dtc source in kernel/private/msm-google/scripts/dtc .Then I compiled the kernel ,but couldn't found dtc binary in the output folder.How can I build dtc from aosp ? Sorry I'm new in this field...That's the script I'm using to compile:
![]()
FLORAL/build_kirisakura.sh at master_T_floral_caf_27 · freak07/FLORAL
Kirisakura Kernel for the Pixel 4/XL. Contribute to freak07/FLORAL development by creating an account on GitHub.github.com
From a quick glance the defconfig is not correct. You might need to make sure the other exports are matching as well.
DTC can be compiled either from AOSP source or you can search Google/GitHub for pre compiled ones.
../net/wireguard/ratelimiter.c:185:33: error: ordered comparison between pointer and integer ('unsigned long (*)(void)' and 'unsigned long') [-Werror]
table_size = (totalram_pages() > (1U << 30) / PAGE_SIZE) ? 8192 :
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:174:23: note: expanded from macro 'roundup_pow_of_two'
__builtin_constant_p(n) ? ( \
^
../include/linux/kernel.h:900:59: note: expanded from macro 'max_t'
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:175:5: note: expanded from macro 'roundup_pow_of_two'
((n) == 1) ? 1 : \
^
../include/linux/kernel.h:900:59: note: expanded from macro 'max_t'
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:157:23: note: expanded from macro 'ilog2'
__builtin_constant_p(n) ? \
^
../include/linux/kernel.h:900:59: note: expanded from macro 'max_t'
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:78:23: note: expanded from macro 'const_ilog2'
__builtin_constant_p(n) ? ( \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:79:4: note: expanded from macro 'const_ilog2'
(n) < 2 ? 0 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:80:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 63) ? 63 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:81:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 62) ? 62 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:82:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 61) ? 61 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:83:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 60) ? 60 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:84:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 59) ? 59 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:85:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 58) ? 58 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:86:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 57) ? 57 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:87:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 56) ? 56 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:88:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 55) ? 55 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:89:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 54) ? 54 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:90:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 53) ? 53 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:91:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 52) ? 52 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800 CC net/ipv6/seg6.o
:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int')
(totalram_pages() << PAGE_SHIFT) /
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two'
(1UL << (ilog2((n) - 1) + 1)) \
^
../include/linux/log2.h:158:14: note: expanded from macro 'ilog2'
const_ilog2(n) : \
^
../include/linux/log2.h:92:4: note: expanded from macro 'const_ilog2'
(n) & (1ULL << 51) ? 51 : \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^
../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^
../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [../scripts/Makefile.build:364: net/wireguard/ratelimiter.o] Error 1
Hi ! I ran the build script you provide,and I used prebuilt DTC provided by AOSP in "kernel/prebuilts-master/misc/linux-x86/dtc/".Then I received the following error :
I don't know if it's because I'm using a different compiler than you ?Code:../net/wireguard/ratelimiter.c:185:33: error: ordered comparison between pointer and integer ('unsigned long (*)(void)' and 'unsigned long') [-Werror] table_size = (totalram_pages() > (1U << 30) / PAGE_SIZE) ? 8192 : ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:174:23: note: expanded from macro 'roundup_pow_of_two' __builtin_constant_p(n) ? ( \ ^ ../include/linux/kernel.h:900:59: note: expanded from macro 'max_t' #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >) ^ ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:175:5: note: expanded from macro 'roundup_pow_of_two' ((n) == 1) ? 1 : \ ^ ../include/linux/kernel.h:900:59: note: expanded from macro 'max_t' #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >) ^ ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:157:23: note: expanded from macro 'ilog2' __builtin_constant_p(n) ? \ ^ ../include/linux/kernel.h:900:59: note: expanded from macro 'max_t' #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >) ^ ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:78:23: note: expanded from macro 'const_ilog2' __builtin_constant_p(n) ? ( \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:79:4: note: expanded from macro 'const_ilog2' (n) < 2 ? 0 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:80:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 63) ? 63 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:81:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 62) ? 62 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:82:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 61) ? 61 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:83:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 60) ? 60 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:84:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 59) ? 59 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:85:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 58) ? 58 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:86:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 57) ? 57 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:87:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 56) ? 56 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:88:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 55) ? 55 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:89:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 54) ? 54 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:90:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 53) ? 53 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:91:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 52) ? 52 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800 CC net/ipv6/seg6.o :40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ../net/wireguard/ratelimiter.c:187:22: error: invalid operands to binary expression ('unsigned long (void)' and 'int') (totalram_pages() << PAGE_SHIFT) / ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/log2.h:176:19: note: expanded from macro 'roundup_pow_of_two' (1UL << (ilog2((n) - 1) + 1)) \ ^ ../include/linux/log2.h:158:14: note: expanded from macro 'ilog2' const_ilog2(n) : \ ^ ../include/linux/log2.h:92:4: note: expanded from macro 'const_ilog2' (n) & (1ULL << 51) ? 51 : \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../include/linux/kernel.h:824:38: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ ../include/linux/kernel.h:814:19: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^ ../include/linux/kernel.h:800:40: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[3]: *** [../scripts/Makefile.build:364: net/wireguard/ratelimiter.o] Error 1
Eager for your help !
Hi, I did what you said and the problem is solved ! But I encountered another error :View attachment 5834533
since wireguard is on gitignore and you´re fetching it during compilation on your own end, do delete the following lines like on the screenshot. that should resolve the error.
../techpack/audio/asoc/msm-dai-q6-v2.c:27:10: fatal error: 'dsp/sp_params.h' file not found
#include <dsp/sp_params.h>
^~~~~~~~~~~~~~~~~
CC lib/sort.o
1 error generated.
make[4]: *** [../scripts/Makefile.build:364: techpack/audio/asoc/msm-dai-q6-v2.o] Error 1
make[3]: *** [../scripts/Makefile.build:678: techpack/audio/asoc] Error 2
make[2]: *** [../scripts/Makefile.build:678: techpack/audio] Error 2
make[1]: *** [/home/metatron/pixel4/kernel/FLORAL-master_T_floral_caf_27/Makefile:1222: techpack] Error 2
Check out what gitignore does, then you´ll understand why you need to apply the changes again after cloning the repo from scratch.Hi, I did what you said and the problem is solved ! But I encountered another error :
I tried to google sp_params.h but couldn't find something helpful.Code:../techpack/audio/asoc/msm-dai-q6-v2.c:27:10: fatal error: 'dsp/sp_params.h' file not found #include <dsp/sp_params.h> ^~~~~~~~~~~~~~~~~ CC lib/sort.o 1 error generated. make[4]: *** [../scripts/Makefile.build:364: techpack/audio/asoc/msm-dai-q6-v2.o] Error 1 make[3]: *** [../scripts/Makefile.build:678: techpack/audio/asoc] Error 2 make[2]: *** [../scripts/Makefile.build:678: techpack/audio] Error 2 make[1]: *** [/home/metatron/pixel4/kernel/FLORAL-master_T_floral_caf_27/Makefile:1222: techpack] Error 2
Is it because of lacking dependency ?
btw I tried to re-clone the repository and built without modification , but still had the same wireguard error....So , gitignore isn't working properly I guess? Or is it simply me being stupid...
I have an update ready, didn't find time and ultimately forgot to release it.Hi,
I saw that the kernel code was updated to v4.14.305 on github.
Not requesting for ETA, just curious if we will get a new flashable zip (since the last one is v4.14.302) or should we build it ourselves this time.
Thanks for all your work!
Thank you so much for the quick reply! I'll wait for it then.I have an update ready, didn't find time and ultimately forgot to release it.
I'll try to get an update out the next few days![]()
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/gecko_core has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/audio-pkt has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/q6prm has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm
arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm
CC drivers/net/ppp/pppox.o
DTC arch/arm64/boot/dts/google/qcom-base/sm8150.dtb
AR net/ipv4/netfilter/nf_conntrack_ipv4.o
AR net/ipv4/netfilter/nf_nat_ipv4.o
CC drivers/media/platform/msm/vidc/msm_vidc.o
AR net/ipv4/netfilter/built-in.o
CC drivers/gpu/drm/msm/sde/sde_hw_cdm.o
CC net/ipv4/tcp_diag.o
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/gecko_core has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/audio-pkt has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/q6prm has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm
arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm
CC net/ipv4/udp_diag.o
CC drivers/misc/qseecom.o
CC drivers/net/slip/slhc.o
CC drivers/pci/pci-sysfs.o
CC drivers/pci/rom.o
CC drivers/gpu/drm/msm/sde/sde_hw_dspp.o
DTC arch/arm64/boot/dts/google/sm8150-coral-dvt-overlay.dtbo
CC drivers/gpu/drm/msm/sde/sde_hw_intf.o
CC net/ipv4/tcp_bbr.o
Error: ../arch/arm64/boot/dts/google/../qcom/pm8150.dtsi:21.1-10 syntax error
FATAL ERROR: Unable to parse input tree
make[3]: *** [scripts/Makefile.dtbo:24: arch/arm64/boot/dts/google/sm8150-coral-dvt-overlay.dtbo] Error 1
make[3]: *** Waiting for unfinished jobs....
CC drivers/perf/arm_pmu.o
CC drivers/net/ppp/pppoe.o
make[2]: *** [../scripts/Makefile.build:678: arch/arm64/boot/dts/google] Error 2
make[1]: *** [arch/arm64/Makefile:244: dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
your dtc tools have a problem with the dts files.Hi ! I tried to compile the kernel myself and encountered this error:
Code:arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/gecko_core has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/audio-pkt has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/q6prm has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm arch/arm64/boot/dts/google/qcom-base/sm8150-v2.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm CC drivers/net/ppp/pppox.o DTC arch/arm64/boot/dts/google/qcom-base/sm8150.dtb AR net/ipv4/netfilter/nf_conntrack_ipv4.o AR net/ipv4/netfilter/nf_nat_ipv4.o CC drivers/media/platform/msm/vidc/msm_vidc.o AR net/ipv4/netfilter/built-in.o CC drivers/gpu/drm/msm/sde/sde_hw_cdm.o CC net/ipv4/tcp_diag.o arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/gecko_core has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/audio-pkt has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (reg_format): "reg" property in /soc/qcom,glink/adsp/qcom,gpr/q6prm has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/gecko_core arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/audio-pkt arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm arch/arm64/boot/dts/google/qcom-base/sm8150.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,glink/adsp/qcom,gpr/q6prm CC net/ipv4/udp_diag.o CC drivers/misc/qseecom.o CC drivers/net/slip/slhc.o CC drivers/pci/pci-sysfs.o CC drivers/pci/rom.o CC drivers/gpu/drm/msm/sde/sde_hw_dspp.o DTC arch/arm64/boot/dts/google/sm8150-coral-dvt-overlay.dtbo CC drivers/gpu/drm/msm/sde/sde_hw_intf.o CC net/ipv4/tcp_bbr.o Error: ../arch/arm64/boot/dts/google/../qcom/pm8150.dtsi:21.1-10 syntax error FATAL ERROR: Unable to parse input tree make[3]: *** [scripts/Makefile.dtbo:24: arch/arm64/boot/dts/google/sm8150-coral-dvt-overlay.dtbo] Error 1 make[3]: *** Waiting for unfinished jobs.... CC drivers/perf/arm_pmu.o CC drivers/net/ppp/pppoe.o make[2]: *** [../scripts/Makefile.build:678: arch/arm64/boot/dts/google] Error 2 make[1]: *** [arch/arm64/Makefile:244: dtbs] Error 2 make[1]: *** Waiting for unfinished jobs....
Would you please help me with that? I am willing to provide ANY information you need to diagnose the problems!