This is the mail archive of the crossgcc@sources.redhat.com 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] |
I'm not an experienced user, but it looks like you're missing a --build option. See below ----- Original Message ----- From: "bertrand marquis" <bertrand.marquis@sysgo.com> To: <crossgcc@sources.redhat.com> Sent: Tuesday, March 16, 2004 11:12 AM Subject: compiling on linux a crossgcc running on cygwin to build linux target > Hi > > I first make a cross compiler to build cygwin program under linux > binutils: > ../configure \ > --prefix=/bar --enable-libstdcxx_v3 \ > --target=i686-pc-cygwin --host=i686-pc-linux > gcc-3.2.3: > ../configure \ > --prefix=/bar \ > --target=i686-pc-cygwin --host=i686-pc-linux \ > --enable-haifa --enable-languages=c,c++ > that is working > > but after i try to recompile gcc+binutils with this > binutils: > ../configure \ > --prefix=/barcyg --enable-libstdcxx_v3 \ > --target=i686-pc-linux-gnu--host=i686-pc-cygwin > work well > gcc-3.2.3: > ../configure --prefix=/bar/cyg\ > --target=i686-pc-linux-gnu --host=i686-pc-cygwin \ > --enable-haifa --enable-languages=c,c++ this command will create an environment in which: target=linux host=cygwin build=cygwin But if I understand correctly, you are still building on linux, right? I believe you should add --build=i686-pc-linux. However, this would apply to both binutils and gcc. Maybe binutils doesn't need to compile tools for its own compilation as gcc does. Maybe one of the guru's can comment on this? > > and make cross give this error: > /bin/sh ../../gcc/mkconfig.sh hconfig.h > i686-pc-cygwin-gcc -c -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional > -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. > -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include > ../../gcc/gengenrtl.c -o gengenrtl.o > i686-pc-cygwin-gcc -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional > -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o > gengenrtl.exe \ > gengenrtl.o ../libiberty/libiberty.a > ./gengenrtl.exe -h > tmp-genrtl.h > /bin/sh: line 1: ./gengenrtl.exe: cannot execute binary file > make[1]: *** [s-genrtl] Erreur 126 > > > > Does anyone know how to fix that ? > > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com > > ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |