Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2019 03:03:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 239436] weird error trying to run make kernel
Message-ID:  <bug-239436-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 239436
           Summary: weird error trying to run make kernel
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: doctor@doctor.nl2k.ab.ca

just recently got:

sh /usr/src/sys/kern/genoffset.sh genoffset.o > offset.inc
cc -target x86_64-unknown-freebsd12.0
--sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe  -fno-strict-aliasing
-Werror -D_KERNEL -DKLD_MODULE -DKLD_TIED -nostdinc=20=20
-DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/amd64.amd64/sys/GENERIC/opt_global.h -I. -I/usr/src/sys
-I/usr/src/sys/contrib/ck/include -fno-common -g -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC   -=
MD=20
-MF.depend.efirt.o -MTefirt.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno=
-sse
-msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv
-fstack-protector -gdwarf-2 -Wall -Wredundant-decls -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-tautological-comp=
are
-Wno-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -Wno-error-pointer-sign
-Wno-error-shift-negative-value -Wno-address-of-packed-member  -mno-aes
-mno-avx  -std=3Diso9899:1999 -c /usr/src/sys/amd64/amd64/efirt.c -o efirt.o
/usr/src/sys/amd64/amd64/efirt.c:108:1: error: static declaration of
      'efi_destroy_1t1_map' follows non-static declaration
efi_destroy_1t1_map(void)
^
/usr/src/sys/sys/efi.h:180:6: note: previous declaration is here
void efi_destroy_1t1_map(void);
     ^
/usr/src/sys/amd64/amd64/efirt.c:116:24: error: use of undeclared identifier
      'vm_cnt'
                atomic_subtract_int(&vm_cnt.v_wire_count,
                                     ^
/usr/src/sys/amd64/amd64/efirt.c:187:1: error: static declaration of
      'efi_create_1t1_map' follows non-static declaration
efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz)
^
/usr/src/sys/sys/efi.h:179:6: note: previous declaration is here
bool efi_create_1t1_map(struct efi_md *, int, int);
     ^
/usr/src/sys/amd64/amd64/efirt.c:300:8: error: assigning to 'int' from
      incompatible type 'void'
        error =3D fpu_kern_enter(curthread, NULL, FPU_KERN_NOCTX);
              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/amd64/amd64/efirt.c:442:1: error: no previous prototype for
      function 'efi_get_time_locked' [-Werror,-Wmissing-prototypes]
efi_get_time_locked(struct efi_tm *tm)
^
/usr/src/sys/amd64/amd64/efirt.c:464:12: error: use of undeclared identifier
      'resettodr_lock'
        mtx_lock(&resettodr_lock);
                  ^
/usr/src/sys/amd64/amd64/efirt.c:464:12: error: use of undeclared identifier
      'resettodr_lock'
/usr/src/sys/amd64/amd64/efirt.c:466:14: error: use of undeclared identifier
      'resettodr_lock'
        mtx_unlock(&resettodr_lock);
                    ^
/usr/src/sys/amd64/amd64/efirt.c:466:14: error: use of undeclared identifier
      'resettodr_lock'
/usr/src/sys/amd64/amd64/efirt.c:484:1: error: no previous prototype for
      function 'efi_set_time_locked' [-Werror,-Wmissing-prototypes]
efi_set_time_locked(struct efi_tm *tm)
^
/usr/src/sys/amd64/amd64/efirt.c:506:12: error: use of undeclared identifier
      'resettodr_lock'
        mtx_lock(&resettodr_lock);
                  ^
/usr/src/sys/amd64/amd64/efirt.c:506:12: error: use of undeclared identifier
      'resettodr_lock'
/usr/src/sys/amd64/amd64/efirt.c:508:14: error: use of undeclared identifier
      'resettodr_lock'
        mtx_unlock(&resettodr_lock);
                    ^
/usr/src/sys/amd64/amd64/efirt.c:508:14: error: use of undeclared identifier
      'resettodr_lock'
14 errors generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/src/sys/modules/efirt
*** Error code 1

Stop.
make[3]: stopped in /usr/src/sys/modules
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src


Why would this happen?

--=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-239436-227>