public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* building tool chain for zip it messenger (arm processor)
@ 2010-03-22  4:42 Geordy Rostad
  2010-03-22  5:30 ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Geordy Rostad @ 2010-03-22  4:42 UTC (permalink / raw)
  To: crossgcc

Hi list, I'm ripping my hair out trying to use crosstools to build a gcc cross compiler for an arm based linux install.  I downloaded crosstool-0.43 and editted the demo-arm.sh to attempt to build gcc-2.95.3-glibc-2.1.3.  The host system is an Ubuntu vm.  I had to apt-get bison and a few other things to get this far but it keeps dying here:

....
gcc-2.95.3/gcc -I/home/geordy/crosstool-0.43/build/arm-linux/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/config -I/home/geordy/crosstool-0.43/build/arm-linux/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/../include /home/geordy/crosstool-0.43/build/arm-linux/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/config/arm/arm.c
/home/geordy/crosstool-0.43/build/arm-linux/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/config/arm/arm.c: In function ‘arm_override_options’:
/home/geordy/crosstool-0.43/build/arm-linux/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/config/arm/arm.c:286: warning: assignment discards qualifiers from pointer target type
/home/geordy/crosstool-0.43/build/arm-linux/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/config/arm/arm.c:530: error: lvalue required as left operand of assignment
make[1]: *** [arm.o] Error 1
make[1]: Leaving directory `/home/geordy/crosstool-0.43/build/arm-linux/gcc-2.95.3-glibc-2.1.3/build-gcc-core/gcc'
make: *** [all-gcc] Error 2
geordy@ubuntu:~/crosstool-0.4

I've tried to also build a couple of different versions of gcc-glibc but still get the same error.  Also have made sure gcc, glibc, bintools, etc are newest versions available via apt-get.  

Thanks,
Geordy

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: building tool chain for zip it messenger (arm processor)
@ 2010-03-25 23:47 Geordy Rostad
  0 siblings, 0 replies; 11+ messages in thread
From: Geordy Rostad @ 2010-03-25 23:47 UTC (permalink / raw)
  To: crossgcc

I've gone a bit further into this and researched your answers to another person regarding this issue here: http://sourceware.org/ml/crossgcc/2009-11/msg00017.html   I see now that I have to download the uClibc and make a config file manually.  In the uclibc menuconfig, I'm seeing several hooks back to linux kernel headers.  What should I be doing with regard to those flags?  obviously the kernel on my box is x86 based so it doesn't seem like that would be relevant for this build and the kernel doesn't exist in my temporary build directory for ct-ng until I run make build and it gets downloaded.  Is there an FAQ or previous answer you've given to someone with regard to creating that uclibc config file?  I appreciate all the help you've given me so far however I'm finding this particular issue a little confusing still.   

Are there any other helpful hints you may have regarding the uclibc file?  My target is an Xscale PXA270 based system, target kernel is 2.6.29/arm5tel.  That's why I've tried to set ct-ng for a 2.6.27.45 guessing that would be the closest option in ct-ng with relation to my target.

-geordy



________________________________________________

Now when I'm trying to build the chain I'm getting a new error:

[INFO ]  Checking C library configuration
[ERROR]    You did not provide a uClibc config file!
[04:42] / make: *** [build] Error 1

Doesn't menuconfig build that config file as part of it's song and dance?



On Mar 24, 2010, at 12:43 PM, Yann E. MORIN wrote:

> Geordy, All,
> 
> On Wednesday 24 March 2010 19:51:00 Geordy Rostad wrote:
>> I think you are right.  I should be using uClibc.  Would I still need to
>> set that fortify source option?
> 
> No, it's only available for glibc and eglibc.
> 
>> Is that in menuconfig somewhere or would I just specifiy it on the
>> command line with "ct-ng build"?
> 
> In the menuconfig, press '/' to get a search prompt. Enter the option
> name CT_LIBC_GLIBC_EXTRA_CFLAGS (with or without the leading CT_), and
> it will tel you where to look for it.
> 
> Regards,
> Yann E. MORIN.
> 
> -- 
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: building tool chain for zip it messenger (arm processor)
@ 2010-03-25 23:49 Geordy Rostad
  0 siblings, 0 replies; 11+ messages in thread
From: Geordy Rostad @ 2010-03-25 23:49 UTC (permalink / raw)
  To: crossgcc


I've gone a bit further into this and researched your answers to another person regarding this issue here: http://sourceware.org/ml/crossgcc/2009-11/msg00017.html   I see now that I have to download the uClibc and make a config file manually.  In the uclibc menuconfig, I'm seeing several hooks back to linux kernel headers.  What should I be doing with regard to those flags? obviously the kernel on my box is x86 based so it doesn't seem like that would be relevant for this build and the kernel doesn't exist in my temporary build directory for ct-ng until I run make build and it gets downloaded.  Is there an FAQ or previous answer you've given to someone with regard to creating that uclibc config file?  I appreciate all the help you've given me so far however I'm finding this particular issue a little confusing still.   

Are there any other helpful hints you may have regarding the uclibc file?  My target is an Xscale PXA270 based system, target kernel is 2.6.29/arm5tel.  That's why I've tried to set ct-ng for a 2.6.27.45 guessing that would be the closest option in ct-ng with relation to my target.

-geordy



________________________________________________

Now when I'm trying to build the chain I'm getting a new error:

[INFO ]  Checking C library configuration
[ERROR]    You did not provide a uClibc config file!
[04:42] / make: *** [build] Error 1

Doesn't menuconfig build that config file as part of it's song and dance?



On Mar 24, 2010, at 12:43 PM, Yann E. MORIN wrote:

> Geordy, All,
> 
> On Wednesday 24 March 2010 19:51:00 Geordy Rostad wrote:
>> I think you are right.  I should be using uClibc.  Would I still need to
>> set that fortify source option?
> 
> No, it's only available for glibc and eglibc.
> 
>> Is that in menuconfig somewhere or would I just specifiy it on the
>> command line with "ct-ng build"?
> 
> In the menuconfig, press '/' to get a search prompt. Enter the option
> name CT_LIBC_GLIBC_EXTRA_CFLAGS (with or without the leading CT_), and
> it will tel you where to look for it.
> 
> Regards,
> Yann E. MORIN.
> 
> -- 
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2010-03-25 23:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22  4:42 building tool chain for zip it messenger (arm processor) Geordy Rostad
2010-03-22  5:30 ` Khem Raj
2010-03-23 15:30   ` Geordy Rostad
2010-03-23 17:04     ` Yann E. MORIN
2010-03-24  3:19       ` Geordy Rostad
2010-03-24 18:38         ` Yann E. MORIN
2010-03-24 18:51           ` Geordy Rostad
2010-03-24 19:43             ` Yann E. MORIN
2010-03-24 22:03               ` Geordy Rostad
2010-03-25 23:47 Geordy Rostad
2010-03-25 23:49 Geordy Rostad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).