Compiling kernel with -g option.

Tom Rini trini at kernel.crashing.org
Wed Nov 7 11:56:21 EST 2001


On Tue, Nov 06, 2001 at 04:12:13PM -0800, Subodh Nijsure wrote:

> Sorry if this is "basic" question but I looked through mailing and couldn't
> find a solution.
>
> When I compile kernel and some of my own modules together I get tons
> of error like --
[snip]
> However if I compile everything with -O2 options everything works fine,
> any way I can fix this so I can debug things....

Did you try to use just -g ?  (Ie not -O2 -g ...).  You _need_ at least
-O1 to compile a kernel.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list