ts-7000
[Top] [All Lists]

[ts-7000] Re: cannot exec cc1 message

To:
Subject: [ts-7000] Re: cannot exec cc1 message
From: "Andy Mercier" <>
Date: Wed, 02 Jan 2008 16:14:00 -0000
--- In  "edaudio2000" <> wrote:
>
> Andy,
> 
> Thanks for the quick reply. 
> 
> Thanks to your comments, I noticed the two 'bin' subdirectories under
> the two different 'arm-unknown-linux-gnu' folders, each containing
> their own versions of gcc.exe. This is very confusing for a novice!!
Having two different 'arm-unknown-linux-gnu' folders is confusing to
me too and I'm not a novice - then again I'm a novice when it comes to
crosstools - it's all relative. ... There's got to be a reason for
having two directories but we'd have to learn more about crosstools.
So much open source, so little time.
> 
> ...
> 
> 
> I used winzip as I couldn't get your suggestion to work:  
> 
> cd /
> cp /cygdrive/c/.

There's supposed to be a space between the /cygdrive/c/ and the '.'. 

> tar xjvf crosstool-cygwin-gcc-3.3.4-glibc-2.3.2.tar.bz2
The use of WinZip introduces another variable relative to my experience.

The preference is to use tar instead of WinZip since tar knows how to
read the archive and create the files correctly with the proper
permissions, etc. on the Cygwin filesystem.

> I keep getting a "target: crosstool-cygwin-gcc-3.3.4-glibc-2.3.2 is
> not a directory".
Was this "...is not a directory" error on the cp command or the tar
command? I couldn't cause an error with this same text.

> 
> I have also modified .bashrc to point at the first bin folder:
> 
> export
>
PATH=$PATH:.:/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin
> 
> So now .exe files in the first bin subfolder under the first
> 'arm-unknown-linux-gnu' are recognised directly from the bash $ prompt. 
> 
> However, when I try a compile with:
> arm-unknown-linux-gnu-gcc-3.3.4  -Wall -o hello hello.c
> I now get the message: "ld: cannot find -lgcc-s" 
> 
> Anything else I could try?
> 
I suspect that using WinZip instead of tar resulted in crosstool file
hierarchy problems.

This can be confirmed if you don't have symlinks in the proper places.
Try:
ls -l /opt/crosstool/gcc-3.3.4-glibc-2.3.2/\
arm-unknown-linux-gnu/arm-unknown-linux-gnu/libgcc_s

I get:
lrwxrwxrwx 1 Andy None    13  Sep 19   2006
/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib/libgcc_s.so
-> libgcc_s.so.1
-rw-r--r-- 1 Andy None 42588  Jul 29   2005
/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib/libgcc_s.so.1

The one with the "->", on the line that starts with the 'l', should be
there, if it isn't then something like WinZip or your copy from you
unzip location has caused the link to be lost.

Untar the file and the links should be preserved.

----
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/
 

<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