[Bug 224653] arm64 kernel compile fail with "nooptions KDB"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 28 19:25:36 UTC 2017


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

            Bug ID: 224653
           Summary: arm64 kernel compile fail with "nooptions KDB"
           Product: Base System
           Version: CURRENT
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: arm
          Assignee: freebsd-arm at FreeBSD.org
          Reporter: bugs.freebsd.asc at schwarzes.net

The kernel compile fail when build without KDB. Reason is the usage of
kdb_trap() in /usr/src/sys/arm64/arm64/trap.c:326 outside of an "#ifdef KDB"
condition. It's easy to fix, just put it into #ifdef KDB [...] #endif.

I've put the last lines of the "make buildkernel" output below.

[...]
--- trap.o ---
/usr/src/sys/arm64/arm64/trap.c:326:3: error: implicit declaration of function
'kdb_trap' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                kdb_trap(exception, 0,
                ^
/usr/src/sys/arm64/arm64/trap.c:326:3: error: this function declaration is not
a prototype [-Werror,-Wstrict-prototypes]
2 errors generated.
*** [trap.o] Error code 1

make[2]: stopped in /usr/obj/usr/src/arm64.aarch64/sys/PINE64-ASC
1 error

make[2]: stopped in /usr/obj/usr/src/arm64.aarch64/sys/PINE64-ASC
*** [buildkernel] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildkernel] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src

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


More information about the freebsd-arm mailing list