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]

Target gdb


 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]