ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: How to create bzImage from Debian Sarge OS for ARM 9 T

To:
Subject: Re: [ts-7000] Re: How to create bzImage from Debian Sarge OS for ARM 9 Technologic TS7300?
From: "Jaspreet Singh" <>
Date: Wed, 9 Jan 2008 23:16:26 +0530
Hi

My system is running on kernel 2.6.22-14-generic (OS: Ubuntu 7.10).
The scripts themselves downloaded linux-2.6.8.
As I mentioned in my previous post I was getting error:

  /scripts/kconfig/mconf.c:91:error: static declaration of  'current_menu' follows non-static declaration
I got some idea through this link:
http://www.busybox.net/lists/uclibc/2005-July/012187.html

and changed line 91 in extracted files which led to a new error(the one in line 90) as I mentioned in previous post.

So now to do this I found a new link:
http://sources.redhat.com/ml/crossgcc/2006-10/msg00073.html

 I changed linux 2.6.8.tar.bz2 file that crosstool downloaded as mentioned here.

Now I encountered some other error which said that my gcc was too old a version. Reading carefully i saw that it wanted a gcc version that was 3.x but with mine being 4.1.2 it was considered bad and compiling stopped :(

Now I got another idea, I went to synaptic package manager and uninstalled gcc. I now installed gcc-3.4
 which was a separate package. I also created a symbolic link to gcc-3.4 named gcc:

ln -s /usr/bin/gcc /usr/bin/gcc- 3.4

Also I added a couple of more locations to the PATH variable which were the include destinations for gcc-3.4.  I saw their location through  Package Manager and added them to PATH variable.

Now it worked still longer this terminating by another error:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
In file included from version.c:33:
/home/jaspreet/Desktop/porting/new_crosstool/crosstool-0.28/build/arm-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/build-glibc/csu/version-info.h:1: error: missing terminating " character
/home/jaspreet/Desktop/porting/new_crosstool/crosstool- 0.28/build/arm-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/build-glibc/csu/version-info.h:2: error: missing terminating " character
/home/jaspreet/Desktop/porting/new_crosstool/crosstool-0.28/build/arm-unknown-linux-gnu/gcc- 3.4.2-glibc-2.3.3/build-glibc/csu/version-info.h:3: error: missing terminating " character
/home/jaspreet/Desktop/porting/new_crosstool/crosstool-0.28/build/arm-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/build-glibc/csu/version- info.h:4: error: missing terminating " character
version.c:40: error: parse error before string constant
make[2]: *** [/home/jaspreet/Desktop/porting/new_crosstool/crosstool-0.28/build/arm-unknown-linux-gnu/gcc- 3.4.2-glibc-2.3.3/build-glibc/csu/version.o] Error 1
make[2]: Leaving directory `/home/jaspreet/Desktop/porting/new_crosstool/crosstool-0.28/build/arm-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/glibc-2.3.3/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/jaspreet/Desktop/porting/new_crosstool/crosstool-0.28/build/arm-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/glibc-2.3.3'
make: *** [all] Error 2

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


On Jan 9, 2008 10:26 PM, David Hawkins < > wrote:

Hi Jaspreet,



> thank you very much for your help. I read through the post you gave
> the link to which had the link to a pdf describing the process.It was
> in much detail was very helpful before I seemed to have run into some
> trouble with this error:
> /scripts/kconfig/mconf.c:91:error: static declaration of
> 'current_menu' follows non-static declaration
>
> I took cue from this link :
> http://www.busybox.net/lists/uclibc/2005-July/012187.html
>
> and overcame this error to find a new one
>
> scripts/kconfig/mconf.c:90: error: expected `=', `,', `;', `asm' or
> `__attribute__' before `struct'
>
> Can anyone help?

Its not clear which step in your build is failing. If you could
provide a little more detail, someone might have a suggestion.

So how about;

1. What type of host are you trying to build on (uname -a)?

2. What compiler is the host using (gcc --version)?

3. Which TS kernel are you trying to build (2.4 or 2.6)?

4. Which step is causing the build error;
- building cross-tools
- building the kernel
- building modutils
- building a driver
- building a root filesystem

etc.

As you can see there are many steps that can go wrong :)

Cheers,
Dave



--
Jaspreet Singh __._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU