This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Sounds like a good entry for http://kegel.com/crosstool/current/doc/crosstool-howto.html#cygwin Thanks for letting us know what the problem was!
Proposed text:
Q. When I edit demo-sh4.sh with wordpad, it doesn't run any more in cygwin.
A. Don't do that :-)
On the RTEMS side of the world, we have seen some problems not mentioned in that section. I am just throwing them out in case someone ever runs into them:
+ Environment variables set for Visual Studio or other environments. Do an env and if you see variables like LIB, CC, etc then you might have trouble.
+ a PATH with Windows directories in it. The directories may have spaces in their name or the names of executables from windows may be in your path ahead of the Cygwin ones. This will break the build process in new and interesting ways.
+ Remote filesystems versus local NTFS versus local FAT can sometimes make a difference.
I am sure there are lots of others but those have nailed RTEMS users over and over. :)
On 6/19/07, Sam Gardner <S.Gardner@ncapsa.com> wrote:Hi Dan,
Crosstool does work on cygwin :-) I was just being stupid, and edited the demo script using wordpad. Big mistake.
I have successfully built a toolchain for a sh4 linux target for gcc 4.1.0 and glibc 2.3.6. I have successfully compiled a simple hello world program, and run this on the target.
Crosstool has spared me what was looking like a painful experience of building the toolchain myself.
Kind Regards,
Sam.
-----Original Message----- From: crossgcc-owner@sourceware.org [mailto:crossgcc-owner@sourceware.org] On Behalf Of Dan Kegel Sent: 15 June 2007 15:35 To: Sam Gardner; CrossGCC List Subject: Re: building a gcc cross compiler
You do need to build binutils.
So crosstool isn't working on cygwin, eh? Did you read http://kegel.com/crosstool/current/doc/crosstool-howto.html#cygwin ?
On 6/15/07, Sam Gardner <S.Gardner@ncapsa.com> wrote: > > > > > Hi Dan, > > > > This is my first attempt at building a gcc compiler, and I'm getting errors. > I saw your name on the forums and I've tried your crosstoll, so I thought > I'd drop you an email first before posting on a forum. > > > > I am trying to build a gcc cross compiler on cygwin for a SH4 Linux target. > > > > First I ran the configure script with the following options: > > > > ../gcc-4.2.0/configure -target sh4-linux -enable-languages=c,c++ > > > > It seems to have created the Makefile ok, but I did get the following > messages: > > > > checking for ar... no > > checking for sh4-linux-ar... no > > checking for as... no > > checking for sh4-linux-as... no > > checking for dlltool... no > > checking for sh4-linux-dlltool... no > > checking for ld... no > > checking for sh4-linux-ld... no > > checking for lipo... no > > checking for sh4-linux-lipo... no > > checking for nm... no > > checking for sh4-linux-nm... no > > checking for objdump... no > > checking for sh4-linux-objdump... no > > checking for ranlib... no > > checking for sh4-linux-ranlib... no > > checking for strip... no > > checking for sh4-linux-strip... no > > checking for windres... no > > checking for sh4-linux-windres... no > > checking where to find the target ar... pre-installed > > checking where to find the target as... pre-installed > > > > Do I need to build the binutils for SH4-linux? I'm a bit confused about > this. Some sources seem to imply that this is the case. > > > > When I run the Makefile I get the following error: > > > > TARGET_CPU_DEFAULT="" \ > > HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \ > > /bin/sh ../../gcc-4.2.0/gcc/mkconfig.sh tconfig.h > > /cygdrive/c/work/sh4-linux-gcc/./gcc/xgcc > -B/cygdrive/c/work/sh4-linux-gcc/./gcc/ > -B/usr/local/sh4-linux/bin/ -B/usr/local/sh4-linux/lib/ -isystem > /usr/local/sh4-linux/include -isystem > /usr/local/sh4-linux/sys-include -O2 -O2 -g -O2 -DIN_GCC > -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. > -I../../gcc-4.2.0/gcc -I../../gcc-4.2.0/gcc/. > -I../../gcc-4.2.0/gcc/../include -I../../gcc-4.2.0/gcc/../libcpp/include > -I../../gcc-4.2.0/gcc/../libdecnumber -I../libdecnumber -g0 > -finhibit-size-directive -fno-inline-functions -fno-exceptions > -fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc \ > > -c ../../gcc-4.2.0/gcc/crtstuff.c -DCRT_BEGIN \ > > -o crtbegin.o > > make[2]: Leaving directory > `/cygdrive/c/work/sh4-linux-gcc/gcc' > > make[1]: Leaving directory `/cygdrive/c/work/sh4-linux-gcc' > > /cygdrive/c/work/sh4-linux-gcc/.gcc/as: unrecognized option > '-little' > > make[2]: *** [crtbegin.o] Error 1 > > make[1]: *** [all-gcc] Error 2 > > make: *** [all] Error 2 > > > > Also, I have tried using your crosstool, but the script doesn't seem to run > on cygwin. When I run the script I get the following error: > > : invalid optionine 6: set: - > > > > When I comment out this line I get further errors. > > > > Please can you advise me the best way forward to build a gcc compiler for > sh4-linux using cygwin. > > > > Kind Regards, > > > > Sam. ########################################### > Any opinions expressed in the email are those of the individual and not > necessarily of the Company. > > This email and any files transmitted with it are confidential and solely for > the use of the intended recipient. It may contain material protected by > lawyer-client privilege. If you are not the intended recipient or the person > responsible for delivering to the intended recipient, be advised that you > have received this email in error and that any use is strictly prohibited. > > If you have received this email in error please notify the Security Manager > by telephone on +44 (0)114 2541271 or by email to security@ncapsa.com > > This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. > For more information, connect to http://www.f-secure.com/
-- Wine for Windows ISVs: http://kegel.com/wine/isv
-- For unsubscribe information see http://sourceware.org/lists.html#faq
###########################################
Any opinions expressed in the email are those of the individual and not necessarily of the Company.
This email and any files transmitted with it are confidential and solely for the use of the intended recipient. It may contain material protected by lawyer-client privilege. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited.
If you have received this email in error please notify the Security Manager by telephone on +44 (0)114 2541271 or by email to security@ncapsa.com
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |