public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel cross compilation error
@ 2006-11-24  5:50 atoka
  2006-11-24  6:02 ` Willy Tarreau
  0 siblings, 1 reply; 2+ messages in thread
From: atoka @ 2006-11-24  5:50 UTC (permalink / raw)
  To: kernelnewbies, lkml

hi everyone,
        im a kernel newbie. im using a debian linux(ie ubuntu).i did
cross compilation for ia64 on my system which is ia32. Now im trying
to cross compile ia64 kernel but im getting some error. before
compiling kernel, i did made changes in Makefile to specify my
ia64-linux compiler and libraries .

when i gave make menuconfig command i got following errors

root@atoka-desktop:/linux-2.6.18# make ARCH=ia64 menuconfig
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:204: error: 'PATH_MAX' undeclared (first use in
this function)
scripts/basic/fixdep.c:204: error: (Each undeclared identifier is
reported only once
scripts/basic/fixdep.c:204: error: for each function it appears in.)
scripts/basic/fixdep.c:204: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:300: error: 'PATH_MAX' undeclared (first use in
this function)
scripts/basic/fixdep.c:300: warning: unused variable 's'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

i tried defining the PATH_MAX macro in fixdep.c to 100, but then it
gave error in some other file.
Can anyone help me out with this error?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Kernel cross compilation error
  2006-11-24  5:50 Kernel cross compilation error atoka
@ 2006-11-24  6:02 ` Willy Tarreau
  0 siblings, 0 replies; 2+ messages in thread
From: Willy Tarreau @ 2006-11-24  6:02 UTC (permalink / raw)
  To: atoka; +Cc: kernelnewbies, lkml

On Fri, Nov 24, 2006 at 11:20:17AM +0530, atoka wrote:
> hi everyone,
>        im a kernel newbie. im using a debian linux(ie ubuntu).i did
> cross compilation for ia64 on my system which is ia32. Now im trying
> to cross compile ia64 kernel but im getting some error. before
> compiling kernel, i did made changes in Makefile to specify my
> ia64-linux compiler and libraries .

You should not have changed the contents of your makefile but just
passed it some parameters.

> when i gave make menuconfig command i got following errors
> 
> root@atoka-desktop:/linux-2.6.18# make ARCH=ia64 menuconfig
>  HOSTCC  scripts/basic/fixdep
> scripts/basic/fixdep.c: In function 'use_config':
> scripts/basic/fixdep.c:204: error: 'PATH_MAX' undeclared (first use in
> this function)
> scripts/basic/fixdep.c:204: error: (Each undeclared identifier is
> reported only once
> scripts/basic/fixdep.c:204: error: for each function it appears in.)
> scripts/basic/fixdep.c:204: warning: unused variable 's'
> scripts/basic/fixdep.c: In function 'parse_dep_file':
> scripts/basic/fixdep.c:300: error: 'PATH_MAX' undeclared (first use in
> this function)
> scripts/basic/fixdep.c:300: warning: unused variable 's'
> make[1]: *** [scripts/basic/fixdep] Error 1
> make: *** [scripts_basic] Error 2

It is because you have changed HOSTCC which is the compiler for the
host you're building from. Normally, you just have to do something
like this :

$ make ARCH=ia64 CC=ia64-gcc menuconfig vmlinux ...

And BTW, don't build as root, one day you will regret it.

> i tried defining the PATH_MAX macro in fixdep.c to 100, but then it
> gave error in some other file.
> Can anyone help me out with this error?

Regards,
Willy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-24  6:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-24  5:50 Kernel cross compilation error atoka
2006-11-24  6:02 ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox