Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2017 19:25:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-arm@FreeBSD.org
Subject:   [Bug 224653] arm64 kernel compile fail with "nooptions KDB"
Message-ID:  <bug-224653-7@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: bugs.freebsd.asc@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 funct=
ion
'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

--=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-224653-7>