Bug #325

Unable to compile SMP kernel without debug

Added by rauf over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:
Priority:NormalDue 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

kern_spinlock.patch Magnifier (363 Bytes) rauf, 09/22/2006 02:51 AM

History

#1 Updated by elekktretterr over 7 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
>
>

#2 Updated by rauf over 7 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 <> 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
> >
> >
>
>

#3 Updated by dillon over 7 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

Also available in: Atom PDF