ts-7000
[Top] [All Lists]

Re: [ts-7000] Using crosstools-0.43 to build gcc-3.3.4 glibc-2.3.2?

To:
Subject: Re: [ts-7000] Using crosstools-0.43 to build gcc-3.3.4 glibc-2.3.2?
From: David Hawkins <>
Date: Thu, 03 May 2007 09:12:03 -0700
Hi Eddie,

>> I figured out that gcc-3.3.4 and glibc-2.3.2 were the
>> sanctioned versions for the ts11 kernel on the TS-7300, so
>> I went off and got the latest crosstools-0.48 package. I
>> noticed that demo-arm.sh did not list gcc-3.3.4-glibc-2.3.2
>> as a possible option. I added it to the file, and it built
>> fine under Cygwin.
>>
>> I noticed in the FTP files, and in the link you mention above,
>> that the Linux name of the same tool set ends in
>>
>>   -0.28rc39
>>
>> I haven't built the tools under Linux yet. I was wondering
>> if the name difference is due to a patch that crosstools
>> applies, or is something that TS found they had to add to
>> the cross-tools build to get things working.
> 
> We didn't apply any patches other than those applied by the crosstool
> scripts. I believe that was the naming convention used when we built
> this toolchain.
> 

Ok, thanks.

I built the Linux version of the tools last night.

They didn't get built with the suffix, so I guess crosstools-0.43
(sorry, the latest is not -0.48, my bad) just named things
differently than the version TS used (which I think was -0.28).

For anyone else trying this, I had two errors while building
under Linux. The first was that I had to undefine LD_LIBRARY_PATH
as glibc does not like it to be set during a build, and then
I got the following error on completion of the build;

...
Cross-toolchain build complete. Result in 
/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu.
+ exit 0
+ cd /home/dwh/crosstool-0.43
+ sh testhello.sh
+ cd /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu
+ test '!' -d tmp
+ mkdir tmp
+ cd tmp
+ test x '!=' x
+ cat
+ 
/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
 
-static hello.c -o arm-unknown-linux-gnu-hello-static
hello.c: In function `main':
hello.c:4: error: `PATH_MAX' undeclared (first use in this function)
hello.c:4: error: (Each undeclared identifier is reported only once
hello.c:4: error: for each function it appears in.)
 crosstool-0.43]$ date
Thu May  3 00:32:49 PDT 2007
 crosstool-0.43]$

So it looks like the hello world test was looking for PATH_MAX
but couldn't find it. I didn't look into it yet, but I'm not
too worried, the tools should be fine.

I built the Linux tools under Centos 4.1 (which is the community
version of Red Hat Enterprise 4.1), a 2.6-kernel system.

The Cygwin build needed bison, so I updated my Cygwin to the latest,
and picked up bison (and I had previously added flex and yacc for a
LPC2000 ARM microcontroller arm-elf-gcc build, so you might
need that too). The crosstool-0.43 demo-arm.sh script ran
without errors after that.

I'll build the ts11 kernel later and post results on that.

Thanks!
Dave






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<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