-CURRENT kernel fails to build

From: Rares Aioanei <bsdlisten_at_gmail.com>
Date: Wed, 19 Feb 2020 12:26:02 +0200
Hello,

 I'm compiling the latest -CURRENT kernel (rev. 358098) , and I get
null byte errors :
"/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:168:19: error:
null character ignored [-Werror,-Wnull-character]" . If I remove the
null bytes, I get a lot of other errors, related to the same file :

/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:198:1: error:
expected identifier or '('
                                                   [63/1963]
__FBSDID("$FreeBSD: head/lib/libc/powerpc64/string/bcopy.S 356767
2020-01-15 20:25:52Z luporl $");
^
./machine/asm.h:107:21: note: expanded from macro '__FBSDID'
#define __FBSDID(s)     .ident s
                        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:212:1: error:
expected identifier or '('
WEAK_REFERENCE(__bcopy, bcopy);
^
./machine/asm.h:100:2: note: expanded from macro 'WEAK_REFERENCE'
        .weak CNAME(alias);                                             \
        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:212:1: error:
expected identifier or '('
./machine/asm.h:101:2: note: expanded from macro 'WEAK_REFERENCE'
        .equ CNAME(alias),CNAME(sym)
        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:222:1: error:
expected identifier or '('
ENTRY(FN_NAME)
^
./machine/asm.h:89:18: note: expanded from macro 'ENTRY'
#define ENTRY(x)        _ENTRY(x)
                        ^
./machine/asm.h:62:19: note: expanded from macro '_ENTRY'
#define _ENTRY(x)       _START_ENTRY; \
                        ^
./machine/asm.h:60:22: note: expanded from macro '_START_ENTRY'
#define _START_ENTRY    .text; .p2align 4,0x90
                        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:222:1: error:
expected identifier or '('
./machine/asm.h:89:18: note: expanded from macro 'ENTRY'
#define ENTRY(x)        _ENTRY(x)
                        ^
./machine/asm.h:62:19: note: expanded from macro '_ENTRY'
#define _ENTRY(x)       _START_ENTRY; \
                        ^
./machine/asm.h:60:29: note: expanded from macro '_START_ENTRY'
#define _START_ENTRY    .text; .p2align 4,0x90
                               ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:222:1: error:
expected identifier or '('
./machine/asm.h:89:18: note: expanded from macro 'ENTRY'
#define ENTRY(x)        _ENTRY(x)

./machine/asm.h:89:18: note: expanded from macro 'ENTRY'

                                              [24/1963]
#define ENTRY(x)        _ENTRY(x)
                        ^
./machine/asm.h:63:4: note: expanded from macro '_ENTRY'
                        .globl CNAME(x); .type CNAME(x),_at_function; CNAME(x):; \
                        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:222:1: error:
expected identifier or '('
./machine/asm.h:89:18: note: expanded from macro 'ENTRY'
#define ENTRY(x)        _ENTRY(x)
                        ^
./machine/asm.h:63:21: note: expanded from macro '_ENTRY'
                        .globl CNAME(x); .type CNAME(x),_at_function; CNAME(x):; \
                                         ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:222:7: error: type
specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]
ENTRY(FN_NAME)
      ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:211:20: note:
expanded from macro 'FN_NAME'
#define FN_NAME                         __bcopy
                                        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:222:1: error:
expected ';' after top level declarator
ENTRY(FN_NAME)
^
./machine/asm.h:89:18: note: expanded from macro 'ENTRY'
#define ENTRY(x)        _ENTRY(x)
                        ^
./machine/asm.h:63:55: note: expanded from macro '_ENTRY'
                        .globl CNAME(x); .type CNAME(x),_at_function; CNAME(x):; \
                                                                           ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:222:1: error:
expected identifier or '('
./machine/asm.h:89:18: note: expanded from macro 'ENTRY'
#define ENTRY(x)        _ENTRY(x)
                        ^
./machine/asm.h:64:4: note: expanded from macro '_ENTRY'
                        .cfi_startproc
                        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:470:1: error:
expected identifier or '('
END(FN_NAME)
^
./machine/asm.h:92:33: note: expanded from macro 'END'
#define END(x)          .size x, . - x; .cfi_endproc
                                        ^
/stor/src/sys/dev/hyperv/utilities/vmbus_shutdown.c:509:10: fatal
error: 'assert.h' file not found

Needless to say, assert.h is in /usr/include, as it should.
Received on Wed Feb 19 2020 - 09:26:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC