Re: Kernel cross compilation error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 26, 2006 at 02:10:54PM +0530, atoka wrote:
> On 11/26/06, Willy Tarreau <w@xxxxxx> wrote:
> >On Sun, Nov 26, 2006 at 11:53:18AM +0530, atoka wrote:
> >> On 11/24/06, Willy Tarreau <w@xxxxxx> wrote:
> >> >On Fri, Nov 24, 2006 at 12:15:06PM +0530, atoka wrote:
> >> >> On 11/24/06, Willy Tarreau <w@xxxxxx> wrote:
> >> >> >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.
> >> >>
> >> >>
> >> >> i have made following changes in Makefile,
> >> >>
> >> >> AS            = $(CROSS_COMPILE)ia64-linux-as
> >> >> LD            = $(CROSS_COMPILE)ia64-linux-ld
> >> >> CC            = $(CROSS_COMPILE)ia64-linux-gcc
> >> >> CPP           = $(CC) -ia64-linux-E
> >> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >> >error here : you should have left :
> >> >
> >> > CPP = $(CC) -E
> >> >
> >> >> AR            = $(CROSS_COMPILE)ia64-linux-ar
> >> >> NM            = $(CROSS_COMPILE)ia64-linux-nm
> >> >> STRIP         = $(CROSS_COMPILE)ia64-linux-strip
> >> >> OBJCOPY               = $(CROSS_COMPILE)ia64-linux-objcopy
> >> >> OBJDUMP               = $(CROSS_COMPILE)ia64-linux-objdump
> >> >>
> >> >> won't it work?
> >> >
> >> >It should work. Anyway, it would have been a lot easier to set
> >> >CROSS_COMPILE=ia64-linux (either in the makefile or on the command
> >> >line).
> >> >
> >> >Willy
> >> >
> >>
> >> i kept the HOST gcc as it is,
> >> changed CPP= $(CC) -ia64-linux-E to
> >> CPP = $(CC) -E
> >>
> >> and run make ARCH=ia64 defconfig
> >> and make ARCH=ia64 menuconfig command but its giving following errors..
> >>
> >>
> >> root@atoka-desktop:/linux-2.6.18# make ARCH=ia64 defconfig
> >>  HOSTCC  scripts/basic/fixdep
> >> /bin/sh: gcc: command not found
> >> make[1]: *** [scripts/basic/fixdep] Error 127
> >> make: *** [scripts_basic] Error 2
> >>
> >>
> >> root@atoka-desktop:/linux-2.6.18# make ARCH=ia64 menuconfig
> >>  HOSTCC  scripts/basic/fixdep
> >> /bin/sh: gcc: command not found
> >> make[1]: *** [scripts/basic/fixdep] Error 127
> >> make: *** [scripts_basic] Error 2
> >> root@atoka-desktop:/linux-2.6.18#
> >>
> >>
> >> by the way do i need to have HOST gcc installed in my system??
> >
> >yes of course, because some tools such as fixdep and dialog are compiled
> >on your system to be used locally during the build process. You can install
> >any version, it is not much important for those tools. Of course, you will
> >need binutils too, so that the ".o" can be linked as a binary executable.
> >
> >Willy
> >
> >
> 
> i already have binutils installed in my system.but i have problem
> installing gcc.
> im not getting proper gcc binaries version for ubuntu, also i don't
> have net connected to my ubuntu linux, so i can't use  sudo apt-get
> install gcc command...can you help..

Well, I have no idea how those packages work. That's what I hate in those
distros, everything works magically until one day, and users are lost.
I suspect you can download a package for your distro from its ftp site
and transfer it to your machine, then install it with some package management
utility provided with the distro.

If you cannot manage to do that, another solution would be to download gcc-3.4
sources, extract them and configure/make/make install to have a working gcc.
It might be easier and take less time than trying to figure out how to install
a package by hand on the distro and resolve the dependencies...

Regards,
willy


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux