ts-7000
[Top] [All Lists]

Re: [ts-7000] cannot exec cc1 message

To:
Subject: Re: [ts-7000] cannot exec cc1 message
From: Triffid Hunter <>
Date: Tue, 1 Jan 2008 07:05:15 +1000 (EST)
On Mon, 31 Dec 2007, edaudio2000 wrote:

> Novice warning, please bear with me!!
>
> I am trying to cross-compile for the TS7200 on a Windows machine.
>
> I have installed Cygwin and created a small hello.c program, which I
> tested in x86 native mode (cygwin's usr/bin/gcc). This compiles and
> runs OK. This test program is in c:/cygwin/home/ed/hello.c
>
> 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/.....
>
> 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.
>
> In order to test the ARM gcc I renamed gcc.exe in the same directory
> to armgcc.exe.
>
> 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?

renaming things. The names etc are hardcoded at compile time with gcc's 
configure's --exec-prefix option, so renaming creates what you're seeing.

You should be able to leave your path alone, and symlink the binaries as 
whatever names you like from /usr/bin and gcc should figure out the proper 
paths by itself.

So:

leave /opt/crosstool/* alone (or revert it to how it was)

cd /usr/bin
for B in ../../opt/crosstool/arm*/gcc*/bin/*; do ln -s $B arm-$(basename
     $B); done
arm-gcc --print-search-dirs
arm-gcc -dumpmachine

and see how you go


 
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