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] |
Hi, This is my first attempt at building a gcc cross compiler, so please bear with me. I'm trying to build a gcc cross compiler for a sh4 linux target using cygwin. I run the configure script with the following options: ../gcc-4.2.0/configure -target sh4-linux -enable-languages=c,c++ Running this script gives the following output: loading cache ./config.cache checking host system type... i686-pc-cygwin checking target system type... sh4-unknown-linux-gnu checking build system type... i686-pc-cygwin checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether ln works... (cached) yes checking whether ln -s works... (cached) yes checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gnatbind... (cached) gnatbind checking whether compiler driver understands Ada... (cached) yes checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2 checking for correct version of gmp.h... no checking for bison... (cached) bison -y checking for bison... (cached) bison checking for gm4... (cached) m4 checking for flex... (cached) flex checking for flex... (cached) flex checking for makeinfo... (cached) makeinfo checking for expect... (cached) expect checking for runtest... (cached) runtest checking for i686-pc-cygwin-ar... (cached) ar checking for i686-pc-cygwin-as... (cached) as checking for i686-pc-cygwin-dlltool... (cached) dlltool checking for i686-pc-cygwin-ld... (cached) /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld.exe checking for i686-pc-cygwin-lipo... no checking for lipo... no checking for i686-pc-cygwin-nm... (cached) nm checking for i686-pc-cygwin-ranlib... (cached) ranlib checking for i686-pc-cygwin-strip... (cached) strip checking for i686-pc-cygwin-windres... (cached) windres checking for i686-pc-cygwin-objcopy... (cached) objcopy checking for i686-pc-cygwin-objdump... (cached) objdump checking for sh4-linux-gfortran... no checking for dlltool... no checking for lipo... no checking for sh4-linux-lipo... no checking for windres... no checking where to find the target ar... pre-installed in /usr/local/sh4-linux/bin checking where to find the target as... pre-installed in /usr/local/sh4-linux/bin checking where to find the target cc... just compiled checking where to find the target c++... just compiled checking where to find the target c++ for libstdc++... just compiled checking where to find the target dlltool... pre-installed checking where to find the target gcc... just compiled checking where to find the target gcj... pre-installed checking where to find the target gfortran... pre-installed checking where to find the target ld... pre-installed in /usr/local/sh4-linux/bin checking where to find the target lipo... pre-installed checking where to find the target nm... pre-installed in /usr/local/sh4-linux/bin checking where to find the target objdump... pre-installed in /usr/local/sh4-linux/bin checking where to find the target ranlib... pre-installed in /usr/local/sh4-linux/bin checking where to find the target strip... pre-installed in /usr/local/sh4-linux/bin checking where to find the target windres... pre-installed checking whether to enable maintainer-specific portions of Makefiles... no checking whether -fkeep-inline-functions is supported... yes updating cache ./config.cache creating ./config.status creating Makefile This report suggests gmp is not correct. The instructions imply that this is necessary. The cygwin setup tool says that it has been installed, but when I search for it I cannot find it. Is this a problem? 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 /cygdrive/c/work/sh4-linux-gcc/.gcc/as: unrecognized option '-little' make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory `/cygdrive/c/work/sh4-linux-gcc/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/cygdrive/c/work/sh4-linux-gcc' make: *** [all] Error 2 I am still unsure about the glibc libraries. Are these part of the gcc source, and do they get built with the gcc or do I need to build them separately? Please can you advise me on the best way forward. 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/ -- 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] |