Tux

...making Linux just a little more fun!

Building a ARM Linux kernel

Amit Kumar Saha [amitsaha.in at gmail.com]


Mon, 7 Jan 2008 20:54:02 +0530

Hi all,

I want to cross-compile a ARM Linux kernel (2.6.21.1) using gcc-4.1 on Ubuntu 7.04(i686) (2.6.20.15-generic). This will require a 'arm-linux-gcc' cross-compiler. Hence, to build the 'gcc-4.1' I started to build gcc for 'arm' target :

1. ./configure --target=arm
2. make  [the dump is attached]
The build process stops giving:

* Configuration arm-unknown-none not supported

How do I proceed beyond this?

Regards & Thanks, Amit

-- 
Amit Kumar Saha
Writer, Programmer, Researcher
http://amitsaha.in.googlepages.com
http://amitksaha.blogspot.com

Top    Back


Amit Kumar Saha [amitsaha.in at gmail.com]


Mon, 7 Jan 2008 20:55:54 +0530

Hi all,

I want to cross-compile a ARM Linux kernel (2.6.21.1) using gcc-4.1 on Ubuntu 7.04(i686) (2.6.20.15-generic). This will require a 'arm-linux-gcc' cross-compiler. Hence, to build the 'gcc-4.1' I started to build gcc for 'arm' target :

1. ./configure --target=arm
2. make  [the dump is attached]
The build process stops giving:

* Configuration arm-unknown-none not supported

How do I proceed beyond this?

Regards & Thanks, Amit

-- 
Amit Kumar Saha
*NetBeans Community
Docs Coordinator*
Writer, Programmer, Researcher
http://amitsaha.in.googlepages.com
http://amitksaha.blogspot.com

Top    Back


Neil Youngman [Neil.Youngman at youngman.org.uk]


Mon, 7 Jan 2008 17:38:47 +0000

On Monday 07 January 2008 15:24, Amit Kumar Saha wrote:

> Hi all,
>
> I want to cross-compile a ARM Linux kernel (2.6.21.1) using gcc-4.1 on
> Ubuntu 7.04(i686)  (2.6.20.15-generic). This will require a
> 'arm-linux-gcc' cross-compiler. Hence, to build the 'gcc-4.1' I
> started to build gcc for 'arm' target :
>
> 1. ./configure --target=arm
> 2. make  [the dump is attached]
>
> The build process stops giving:
>
> * Configuration arm-unknown-none not supported

I think it needs to be ./configure --target=arm-elf

See http://www.computingfreak.com/2007/04/22/build-your-own-arm-cross-compiler-toolchain/ (or http://tinylink.com/?2rgZjivhxp for the Google cache if the main link doesn't work for you)

HTH

Neil


Top    Back


Amit Kumar Saha [amitsaha.in at gmail.com]


Tue, 8 Jan 2008 00:51:25 +0530

On 1/7/08, Neil Youngman <Neil.Youngman@youngman.org.uk> wrote:

> On Monday 07 January 2008 15:24, Amit Kumar Saha wrote:
> > Hi all,
> >
> > I want to cross-compile a ARM Linux kernel (2.6.21.1) using gcc-4.1 on
> > Ubuntu 7.04(i686)  (2.6.20.15-generic). This will require a
> > 'arm-linux-gcc' cross-compiler. Hence, to build the 'gcc-4.1' I
> > started to build gcc for 'arm' target :
> >
> > 1. ./configure --target=arm
> > 2. make  [the dump is attached]
> >
> > The build process stops giving:
> >
> > * Configuration arm-unknown-none not supported
>
> I think it needs to be ./configure --target=arm-elf

I do this and it start the 'make'. The compilation process continues, until it halts again:

gcc-4.1.2/gcc/cp/except.c:883: undefined reference to `libc_name_p'
collect2: ld returned 1 exit status
make[2]: * [cc1plus-dummy] Error 1
Any hints?

Thanks & Regards, Amit

-- 
Amit Kumar Saha
Writer, Programmer, Researcher
http://amitsaha.in.googlepages.com
http://amitksaha.blogspot.com

Top    Back


Neil Youngman [Neil.Youngman at youngman.org.uk]


Tue, 8 Jan 2008 09:30:59 +0000

On Monday 07 January 2008 19:21, Amit Kumar Saha wrote:

> On 1/7/08, Neil Youngman <Neil.Youngman@youngman.org.uk> wrote:
> > On Monday 07 January 2008 15:24, Amit Kumar Saha wrote:
>
> I do this and it start the 'make'. The compilation process continues,
> until it halts again:
>
> gcc-4.1.2/gcc/cp/except.c:883: undefined reference to `libc_name_p'
> collect2: ld returned 1 exit status
> make[2]: * [cc1plus-dummy] Error 1
>
> Any hints?

I don't know any more than I found on Google. Did you read the links in my previous email?

Neil


Top    Back


Amit Kumar Saha [amitsaha.in at gmail.com]


Tue, 8 Jan 2008 15:09:46 +0530

On 1/8/08, Neil Youngman <Neil.Youngman@youngman.org.uk> wrote:

> On Monday 07 January 2008 19:21, Amit Kumar Saha wrote:
> > On 1/7/08, Neil Youngman <Neil.Youngman@youngman.org.uk> wrote:
> > > On Monday 07 January 2008 15:24, Amit Kumar Saha wrote:
> >
> > I do this and it start the 'make'. The compilation process continues,
> > until it halts again:
> >
> > gcc-4.1.2/gcc/cp/except.c:883: undefined reference to `libc_name_p'
> > collect2: ld returned 1 exit status
> > make[2]: * [cc1plus-dummy] Error 1
> >
> > Any hints?
>
> I don't know any more than I found on Google. Did you read the links in my
> previous email?

I did have a look, but did not try doing as is mentioned here, just thought of asking you regarding the error.

I think I shall try doing that way now.

Thanks, Amit

-- 
Amit Kumar Saha
*NetBeans Community
Docs Coordinator*
Writer, Programmer, Researcher
http://amitsaha.in.googlepages.com
http://amitksaha.blogspot.com

Top    Back


Chris Bannister [mockingbird at earthlight.co.nz]


Wed, 9 Jan 2008 01:09:13 +1300

On Tue, Jan 08, 2008 at 12:51:25AM +0530, Amit Kumar Saha wrote:

> I do this and it start the 'make'. The compilation process continues,
> until it halts again:
> 
> gcc-4.1.2/gcc/cp/except.c:883: undefined reference to `libc_name_p'
> collect2: ld returned 1 exit status
> make[2]: * [cc1plus-dummy] Error 1
> 
> Any hints?

Well, what does line 883 in gcc-4.1.2/gcc/cp/except.c say. I'm guessing that the file that has the code is'nt being included in the linking process. Could be an error in the make file.

-- 
Chris.
======

Top    Back