[Bug 239436] weird error trying to run make kernel

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 25 03:03:23 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239436

            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 at FreeBSD.org
          Reporter: doctor at 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=/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  
-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 
-MF.depend.efirt.o -MTefirt.o -mcmodel=kernel -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__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare
-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=iso9899: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 = 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?

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


More information about the freebsd-bugs mailing list