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] |
because the configury does not know about your build system it thinks that the native build it being done on a powerpc machine and tries to run the a.out which is to be run on powerpc machine on your host machine which I guess is a x86 machine. Thats the problem you are seeing. If you add --build option to the configure call it should be able to find out that the build machine is not same as host machine.
Using crosstools, I've build a powerpc cross compiler, glibc, gdbserver, etc. Now I try to build gdb for the target:
# Build target termcap libary (target gdb requires it)
cd $BUILD_TMP_DIR/build-termcap CC=$TARGET-gcc $BUILD_TMP_DIR/$TERMCAP_DIR/configure \ --host=$TARGET --prefix=$PREFIX/$TARGET make make oldincludedir="" install
# Build target gdb (i.e. gdb that runs on target)
cd $BUILD_TMP_DIR/build-gdb CC=$TARGET-gcc $BUILD_TMP_DIR/$GDB_DIR/configure \ --host=$TARGET --prefix=$PREFIX/$TARGET make BUILD_SUBDIR="" make install
And I get:
checking whether to enable maintainer-specific portions of Makefiles... no checking for makeinfo... makeinfo checking for perl... perl checking build system type... powerpc-unknown-linux-gnu checking host system type... powerpc-unknown-linux-gnu checking for powerpc-linux-ar... powerpc-linux-ar checking for powerpc-linux-ranlib... powerpc-linux-ranlib checking for powerpc-linux-gcc... powerpc-linux-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make: *** [configure-libiberty] Error 1
Any ideas?
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |