Bug 239436 - weird error trying to run make kernel
Summary: weird error trying to run make kernel
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-25 03:03 UTC by doctor
Modified: 2021-08-05 03:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description doctor 2019-07-25 03:03:03 UTC
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?
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2021-08-05 03:05:04 UTC
This should be fixed along the development and doesn't happen recently. Please reopen if you still see this.