packetdrill i386 build failed due to below warnings and errors.
Building with gcc version 7.3.
tcp_options_iterator.c
run_system_call.c: In function 'cmsg_expect_eq':
run_system_call.c:860:38: error: format '%lu' expects argument of type
'long unsigned int', but argument 4 has type 'size_t {aka unsigned
int}' [-Werror=format=]
"Bad len in cmsg %d: expected=%lu actual=%lu",
~~^
%u
i, ecm->cmsg_len, acm->cmsg_len);
~~~~~~~~~~~~~
run_system_call.c:860:49: error: format '%lu' expects argument of type
'long unsigned int', but argument 5 has type 'size_t {aka unsigned
int}' [-Werror=format=]
"Bad len in cmsg %d: expected=%lu actual=%lu",
~~^
%u
i, ecm->cmsg_len, acm->cmsg_len);
~~~~~~~~~~~~~
run_system_call.c: In function 'get_epoll_event_from_expr':
run_system_call.c:2924:21: error: cast to pointer from integer of
different size [-Werror=int-to-pointer-cast]
event->data.ptr = (void *)epollev_expr->ptr->value.num;
^
run_system_call.c: In function 'syscall_epoll_wait':
run_system_call.c:3129:6: error: format '%lu' expects argument of type
'long unsigned int', but argument 3 has type 'uint64_t {aka long long
unsigned int}' [-Werror=format=]
"epoll_event->data does not match script: "
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
run_system_call.c:3132:6:
event_script.data.u64,
~~~~~~~~~~~~~~~~~~~~~
run_system_call.c:3130:19: note: format string is defined here
"expected: %lu "
~~^
%llu
run_system_call.c:3129:6: error: format '%lu' expects argument of type
'long unsigned int', but argument 4 has type 'uint64_t {aka long long
unsigned int}' [-Werror=format=]
"epoll_event->data does not match script: "
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
run_system_call.c:3133:6:
event_live->data.u64);
~~~~~~~~~~~~~~~~~~~~
run_system_call.c:3131:17: note: format string is defined here
"actual: %lu\n",
~~^
%llu
run_system_call.c: In function 'syscall_splice':
run_system_call.c:3249:31: error: cast to pointer from integer of
different size [-Werror=int-to-pointer-cast]
result = splice(fd_in_live, (loff_t *) off_in, fd_out_live,
^
run_system_call.c:3250:5: error: cast to pointer from integer of
different size [-Werror=int-to-pointer-cast]
(loff_t *) off_out, len, flags);
^
Full log link,
https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-mainline/DISTRO…
--
Linaro LKFT
https://lkft.linaro.org
I am Barr Luis Fernandez,i have something important to discuss
with you which might interest you and I believe that it will be a
very good opportunity for both of us.
Kindly get back to me for more details.
Regards,
Barr. Luis Fernandez
Madrid Spain.
On Fri, 14 May 2021 at 02:38, Randy Dunlap <rdunlap(a)infradead.org> wrote:
>
> On 5/13/21 1:47 PM, Andrew Morton wrote:
> > On Thu, 13 May 2021 19:09:23 +0200 Christophe Leroy <christophe.leroy(a)csgroup.eu> wrote:
> >
> >>
> >>
> >>> on i386:
> >>>
> >>> ../arch/x86/mm/pgtable.c:703:5: error: redefinition of ‘pud_set_huge’
> >>> int pud_set_huge(pud_t *pud, phys_addr_t addr, pgprot_t prot)
> >>> ^~~~~~~~~~~~
> >>> In file included from ../include/linux/mm.h:33:0,
> >>> from ../arch/x86/mm/pgtable.c:2:
> >>> ../include/linux/pgtable.h:1387:19: note: previous definition of ‘pud_set_huge’ was here
> >>> static inline int pud_set_huge(pud_t *pud, phys_addr_t addr, pgprot_t prot)
> >>> ^~~~~~~~~~~~
> >>> ../arch/x86/mm/pgtable.c:758:5: error: redefinition of ‘pud_clear_huge’
> >>> int pud_clear_huge(pud_t *pud)
> >>> ^~~~~~~~~~~~~~
> >>> In file included from ../include/linux/mm.h:33:0,
> >>> from ../arch/x86/mm/pgtable.c:2:
> >>> ../include/linux/pgtable.h:1391:19: note: previous definition of ‘pud_clear_huge’ was here
> >>> static inline int pud_clear_huge(pud_t *pud)
These errors are noticed on linux next 20210514 tag on arm64.
Regressions found on arm64 for the following configs.
- build/gcc-9-defconfig-904271f2
- build/gcc-9-tinyconfig
- build/gcc-8-allnoconfig
- build/gcc-10-allnoconfig
- build/clang-11-allnoconfig
- build/clang-10-allnoconfig
- build/clang-12-tinyconfig
- build/gcc-10-tinyconfig
- build/clang-10-tinyconfig
- build/clang-11-tinyconfig
- build/clang-12-allnoconfig
- build/gcc-8-tinyconfig
- build/gcc-9-allnoconfig
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=arm64
CROSS_COMPILE=aarch64-linux-gnu- 'CC=sccache aarch64-linux-gnu-gcc'
'HOSTCC=sccache gcc'
/builds/linux/arch/arm64/mm/mmu.c:1341:5: error: redefinition of 'pud_set_huge'
1341 | int pud_set_huge(pud_t *pudp, phys_addr_t phys, pgprot_t prot)
| ^~~~~~~~~~~~
In file included from /builds/linux/include/linux/mm.h:33,
from /builds/linux/include/linux/pid_namespace.h:7,
from /builds/linux/include/linux/ptrace.h:10,
from /builds/linux/include/linux/elfcore.h:11,
from /builds/linux/include/linux/crash_core.h:6,
from /builds/linux/include/linux/kexec.h:18,
from /builds/linux/arch/arm64/mm/mmu.c:15:
/builds/linux/include/linux/pgtable.h:1387:19: note: previous
definition of 'pud_set_huge' was here
1387 | static inline int pud_set_huge(pud_t *pud, phys_addr_t addr,
pgprot_t prot)
| ^~~~~~~~~~~~
/builds/linux/arch/arm64/mm/mmu.c:1369:5: error: redefinition of
'pud_clear_huge'
1369 | int pud_clear_huge(pud_t *pudp)
| ^~~~~~~~~~~~~~
In file included from /builds/linux/include/linux/mm.h:33,
from /builds/linux/include/linux/pid_namespace.h:7,
from /builds/linux/include/linux/ptrace.h:10,
from /builds/linux/include/linux/elfcore.h:11,
from /builds/linux/include/linux/crash_core.h:6,
from /builds/linux/include/linux/kexec.h:18,
from /builds/linux/arch/arm64/mm/mmu.c:15:
/builds/linux/include/linux/pgtable.h:1391:19: note: previous
definition of 'pud_clear_huge' was here
1391 | static inline int pud_clear_huge(pud_t *pud)
| ^~~~~~~~~~~~~~
make[3]: *** [/builds/linux/scripts/Makefile.build:273:
arch/arm64/mm/mmu.o] Error 1
Reported-by: Naresh Kamboju <naresh.kamboju(a)linaro.org>
Steps to reproduce:
---------------------------
#!/bin/sh
# TuxMake is a command line tool and Python library that provides
# portable and repeatable Linux kernel builds across a variety of
# architectures, toolchains, kernel configurations, and make targets.
#
# TuxMake supports the concept of runtimes.
# See https://docs.tuxmake.org/runtimes/, for that to work it requires
# that you install podman or docker on your system.
#
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
tuxmake --runtime podman --target-arch arm64 --toolchain gcc-9
--kconfig tinyconfig
--
Linaro LKFT
https://lkft.linaro.org
The LKFT build system detected these build warnings and errors.
Regressions found on parisc:
- build/gcc-9-defconfig
- build/gcc-9-tinyconfig
- build/gcc-10-allnoconfig
- build/gcc-10-tinyconfig
- build/gcc-9-allnoconfig
- build/gcc-10-defconfig
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=parisc
CROSS_COMPILE=hppa-linux-gnu- 'CC=sccache hppa-linux-gnu-gcc'
'HOSTCC=sccache gcc'
In file included from /builds/linux/arch/parisc/include/asm/cacheflush.h:7,
from /builds/linux/include/linux/highmem.h:12,
from /builds/linux/include/linux/pagemap.h:11,
from /builds/linux/include/linux/ksm.h:13,
from /builds/linux/mm/mremap.c:14:
/builds/linux/mm/mremap.c: In function 'flush_pte_tlb_pwc_range':
/builds/linux/arch/parisc/include/asm/tlbflush.h:20:2: error: 'return'
with a value, in function returning void [-Werror=return-type]
20 | __flush_tlb_range((vma)->vm_mm->context, start, end)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builds/linux/mm/mremap.c:219:9: note: in expansion of macro 'flush_tlb_range'
219 | return flush_tlb_range(vma, start, end);
| ^~~~~~~~~~~~~~~
/builds/linux/mm/mremap.c:214:33: note: declared here
214 | #define flush_pte_tlb_pwc_range flush_pte_tlb_pwc_range
| ^~~~~~~~~~~~~~~~~~~~~~~
/builds/linux/mm/mremap.c:215:20: note: in expansion of macro
'flush_pte_tlb_pwc_range'
215 | static inline void flush_pte_tlb_pwc_range(struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/builds/linux/scripts/Makefile.build:273: mm/mremap.o] Error 1
Reported-by: Naresh Kamboju <naresh.kamboju(a)linaro.org>
steps to reproduce:
---------------------------
#!/bin/sh
# TuxMake is a command line tool and Python library that provides
# portable and repeatable Linux kernel builds across a variety of
# architectures, toolchains, kernel configurations, and make targets.
#
# TuxMake supports the concept of runtimes.
# See https://docs.tuxmake.org/runtimes/, for that to work it requires
# that you install podman or docker on your system.
#
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
tuxmake --runtime podman --target-arch parisc --toolchain gcc-9
--kconfig allnoconfig
--
Linaro LKFT
https://lkft.linaro.org