--- In "edaudio2000" <> wrote:
>
> Novice warning, please bear with me!!
>
> I am trying to cross-compile for the TS7200 on a Windows machine.
>
> Next I downloaded the TS crosstool gcc-3.3.4.glibc-2.3.2.tar.bz2 from
> the TS website. I copied it to c:cygwin/opt/crosstool/.....
Don't copy the .tar.bz2 deep into the file system hierarchy since it's
set up to create the proper path for you relative from the root, '/'.
I don't see a step for untarring the file. Therefore, I suggest you
copy the .tar.bz2 file to /.
>From within Cygwin...
cd /
cp /cygdrive/c/<WindowsPathToDownloadedCrossTool> .
tar xjvf crosstool-cygwin-gcc-3.3.4-glibc-2.3.2.tar.bz2
Then you can delete:
rm /crosstool-cygwin-gcc-3.3.4-glibc-2.3.2.tar.bz2
There are other ways of doing this without the copy but since you're a
novice this is the least problematic way.
> I also edited the .bashrc file in /home/ed to include the path:
>
> export
>
PATH=$PATH:.:/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/bin
>
> I tested the OS path search by renaming one of the ts7200 bin files in
> gcc-3.3.4-glibc-2.2.3/bin (i.e. strip.exe to armstrip.exe) and entered
> it directly from the bash prompt. This works OK.
The path should be
PATH=$PATH:.:/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin
It looks like you've renamed files that are usually in:
/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin
Yes, the arm-unknown-linux-gnu is repeated twice. You shouldn't make
your path to that one.
> In order to test the ARM gcc I renamed gcc.exe in the same directory
> to armgcc.exe.
You shouldn't have to rename anything. Just use the compiler named
arm-unknown-linux-gnu-gcc-3.3.4 on your command line. You can create
an alias for it to make the typing easier.
alias armgcc=arm-unknown-linux-gnu-gcc-3.3.4
or
export CC=arm-unknown-linux-gnu-gcc-3.3.4
Then use armgcc as you did, below.
Or
Use:
$CC -Wall -o hello hello.c
>
> However, entering "armgcc -Wall -o hello hello.c" gives me the error
>
> "cannot exec cc1" No such file or directory.
>
> I cannot find any cc1 file in any of the /opt/ subdirectories.
>
> What am I doing wrong?
>
> TIA
>
> ted
>
----
Andy
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/
|