Hi Dave,
After your suggestion, I have used
> $ which gcc
> $ gcc --version
commands to check if gcc is installed in my cygwin and have found
that it is not available. Next, I have re-install cygwin selecting
all gcc options. Now, I can compile and execute my helloworld code
without any problem.
Then, I have tried to compile the same helloworld code using the
compiler provided by TS. For this purpose, I have unpacked crosstool-
cygwin-gcc-3.3.4-glibc-2.3.2.tar.bz2 file in cross-toolchains folder
and obtained a folder entitled "opt". Next, I copied this folder to
under usr/local/ folder and type following command to compile it
using the cross-compiler.
$ ./arm-unknown-linux-gnu-gcc-3.3.4 -Wall -o hello hello.c
But I can't succeed receiving following error message:
/usr/local/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-
gnu/bin/../lib/gcc-lib/arm-unknown-linux-gnu/3.3.4/../../../../arm-
unknown-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
Have you got any opinion about the error?
Cheers,
Oguzhan.
--- In David Hawkins <> wrote:
>
> Hi Oguzhan,
>
> > The code is quite simple:
> >
> > #include <stdio.h>
> > int main (void)
> > {
> > printf ("Hello World!\n");
> > return 0;
> > }
>
> Ok, I figured it would be, but it helps to check.
>
> > After your message, I have searched for "gcc" in cygwin folder
and
> > have found two "gcc.exe" file in
> > C:\cygwin\usr\local\opt\crosstool\arm-unknown-linux-gnu\gcc-3.3.2-
> > glibc-2.3.2\arm-unknown-linux-gnu\bin and C:\cygwin\usr\include
> > folders. When I try to compile the simple code given above using
gcc -
> > Wall -o hello-world hello-world.c instruction I'm givinig
following
> > error:
> >
> > gcc: installation problem, cannot exec 'cc1: No such file or
directory
> >
> > I have tried to compile the code using gcc.exe in the Command
Prompt
> > of Win XP. I have recived a message that the application cannot
be
> > started since cygwin1.dll could not found.
>
> You want the command prompt that came with Cygwin, i.e., the bash
> shell.
>
> For example,
>
> $ which gcc
> /usr/bin/gcc
>
> $ gcc --version
> gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
There is
> NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR
> PURPOSE.
>
> Shows that I have gcc installed, its seen as /usr/bin/gcc, and
> the version here should be pretty recent as I allowed Cygwin
> to update its packages when I built the TS ARM compiler.
>
> If you can't see this version of gcc, then run the Cygwin setup
> utility and add the gcc tools and anything else that looks
interesting.
>
> Before figuring out cross-compilation on the command line,
> it'll help to get native compilation working first.
>
> Cheers
> 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/
|