Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2023 06:41:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 269454] kernel fails to build when IPv6 disabled
Message-ID:  <bug-269454-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269454

            Bug ID: 269454
           Summary: kernel fails to build when IPv6 disabled
           Product: Base System
           Version: 13.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: iron.udjin@gmail.com

Hello,

I'm trying to build 13-STABLE which is currently on commit
c243de11cf7c4bb3d67bbc1655b149037e5b04f1

In the kernel config I have:
nooptions   INET6

... and kernel fails to build:

cc -target x86_64-unknown-freebsd13.2
--sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -O2 -pipe -march=3Dna=
tive
-fno-common  -DCONFIG_INFINIBAND_USER_MEM -fno-strict-aliasing -Werror
-D_KERNEL -DKLD_MODULE -DKLD_TIED -nostdinc=20
-I/usr/src/sys/modules/irdma/../../dev/ice
-I/usr/src/sys/modules/irdma/../../ofed/include
-I/usr/src/sys/modules/irdma/../../ofed/include/uapi
-I/usr/src/sys/modules/irdma/../../compat/linuxkpi/common/include
-DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/amd64.amd64/sys/IRON/opt_global.h -I. -I/usr/src/sys
-I/usr/src/sys/contrib/ck/include -fno-common  -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer
-fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
-I/usr/obj/usr/src/amd64.amd64/sys/IRON     -MD  -MF.depend.irdma_cm.o
-MTirdma_cm.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-floa=
t=20
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -Wall -Wredundant-de=
cls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error=3Dtautological-compare -Wno-error=3Dempty-body
-Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function
-Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value
-Wno-address-of-packed-member -Wno-error=3Dunused-but-set-variable
-Wno-format-zero-length   -mno-aes -mno-avx  -std=3Diso9899:1999 -c
/usr/src/sys/modules/irdma/../../dev/irdma/irdma_cm.c -o irdma_cm.o
/usr/src/sys/modules/irdma/../../dev/irdma/irdma_cm.c:1643:11: error: impli=
cit
declaration of function 'ip6_ifp_find' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        ip_dev =3D ip6_ifp_find(&init_net, laddr6, scope_id);
                 ^
/usr/src/sys/modules/irdma/../../dev/irdma/irdma_cm.c:1643:11: note: did you
mean 'ip_ifp_find'?
/usr/src/sys/modules/irdma/../../ofed/include/rdma/ib_addr_freebsd.h:36:1:
note: 'ip_ifp_find' declared here
ip_ifp_find(struct vnet *vnet, uint32_t addr)
^
/usr/src/sys/modules/irdma/../../dev/irdma/irdma_cm.c:1643:9: error:
incompatible integer to pointer conversion assigning to 'struct ifnet *' fr=
om
'int' [-Werror,-Wint-conversion]
        ip_dev =3D ip6_ifp_find(&init_net, laddr6, scope_id);
               ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
*** Error code 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269454-227>