Bug #325
Unable to compile SMP kernel without debug
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
I tried to compile kernel without debug and with SMP on 1.6.1 and got:
linking kernel.nodebug
kern_spinlock.o(.text+0x28b): In function `exponential_backoff':
: undefined reference to `db_print_backtrace'
*** Error code 1
Stop in /usr/obj/usr/src/sys/TEST.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
Kernel config here: www.kuliyev.com/TEST
Rauf
Related todos
History
Updated by elekktretterr over 6 years ago
Ive had the same problem on my server. I didnt report it, because in the
end I came to believe its good to have debugger in, in case something
funny happens.
Petr
Rauf Kuliyev wrote:
> I tried to compile kernel without debug and with SMP on 1.6.1 and got:
>
> linking kernel.nodebug
> kern_spinlock.o(.text+0x28b): In function `exponential_backoff':
> : undefined reference to `db_print_backtrace'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/TEST.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
>
> Kernel config here: www.kuliyev.com/TEST
>
> Rauf
>
>
Updated by rauf over 6 years ago
I found the possible problem (looks like typo, but I can be wrong),
and patch is attached.
On 9/22/06, Petr Janda <elekktretterr@exemail.com.au> wrote:
> Ive had the same problem on my server. I didnt report it, because in the
> end I came to believe its good to have debugger in, in case something
> funny happens.
>
> Petr
>
> Rauf Kuliyev wrote:
> > I tried to compile kernel without debug and with SMP on 1.6.1 and got:
> >
> > linking kernel.nodebug
> > kern_spinlock.o(.text+0x28b): In function `exponential_backoff':
> > : undefined reference to `db_print_backtrace'
> > *** Error code 1
> >
> > Stop in /usr/obj/usr/src/sys/TEST.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > Stop in /usr/src.
> >
> > Kernel config here: www.kuliyev.com/TEST
> >
> > Rauf
> >
> >
>
>
Updated by dillon over 6 years ago
:I found the possible problem (looks like typo, but I can be wrong),
:and patch is attached.
That will almost do it, but you just put the ++bo->nsec inside the
conditional and it has to be outside the conditional.
I'll commit a fix in a moment.
-Matt