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] |
OK. So you can build your cross-toolchain with crosstool-NG, that'sI have just succeeded in building and installing "cross-native" GCC and its accompanying tools/libraries - the whole lot!!!
supported. But for building the cross-native compiler to run on your
PPC, you'll mostly be on your own; crostool-NG won't help you much...
ppl configure: configure: WARNING: CANNOT PROPAGATE EXCEPTIONS BACK FROM GMP: *** MEMORY EXHAUSTION MAY RESULT IN ABRUPT TERMINATION. *** This is OK, if you do not plan to use the bounded memory capabilities *** offered by the PPL. Otherwise, if you are using GCC or the Intel C/C++ *** compiler, please make sure you use a version of GMP compiled with the *** `-fexceptions' compiler option. *** To build such a version, you can configure GMP as follows: *** CPPFLAGS=-fexceptions ./configure --enable-cxx --prefix=/usr/local
That won't be needed, at least not in the way I expected - I would need to have the host tools (x86_64 in my case) + the cross GCC (with its associated libraries) so that when I do chroot I can execute them freely. They then will be used to build everything for the target image and prepare the whole staging area.As for the CFLAGS/LDFLAGS includes that is a given, although I am thinking if I run with chroot to /some/place/staging and then execute make install then I won't be needing this, right? I might be wrong though!
You can't use a chroot: the chroot you'd like to chroot into is a PPC
system, while the machine you're running on is an x86_64...
--- gcc-4.4.5.orig/configure 2010/10/06 10:10:14 165019 +++ gcc-4.4.5/configure 2010/10/06 10:29:55 165020 @@ -4596,7 +4596,7 @@ if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" - extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp' + extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" # Do not test the gmp version. Assume that it is sufficient, since # it is in the source tree, and the library has not been built yet # but it would be included on the link line in the version check below --- gcc-4.4.5.orig/configure.ac 2010/10/06 10:10:14 165019 +++ gcc-4.4.5/configure.ac 2010/10/06 10:29:55 165020 @@ -1250,7 +1250,7 @@ if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" - extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp' + extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" # Do not test the gmp version. Assume that it is sufficient, since # it is in the source tree, and the library has not been built yet # but it would be included on the link line in the version check below
--- gcc-4.4.5.orig/libstdc++-v3/include/Makefile.am 2009-05-13 01:24:16.000000000 +0100 +++ gcc-4.4.5/libstdc++-v3/include/Makefile.am 2011-04-02 02:34:57.228893755 +0100 @@ -850,7 +850,7 @@ ${pch1_output_builddir} ${pch2_output_builddir} ${pch3_output_builddir} pch_output_anchors = \ ${pch1_output_anchor} ${pch2_output_anchor} ${pch3_output_anchor} -PCHFLAGS=-x c++-header $(CXXFLAGS) +PCHFLAGS=-x c++-header -nostdinc++ $(CXXFLAGS) if GLIBCXX_BUILD_PCH pch_build = ${pch_output} else --- gcc-4.4.5.orig/libstdc++-v3/include/Makefile.in 2009-05-13 01:24:16.000000000 +0100 +++ gcc-4.4.5/libstdc++-v3/include/Makefile.in 2011-04-02 02:34:59.414525979 +0100 @@ -1096,7 +1096,7 @@ pch_output_anchors = \ ${pch1_output_anchor} ${pch2_output_anchor} ${pch3_output_anchor} -PCHFLAGS = -x c++-header $(CXXFLAGS) +PCHFLAGS = -x c++-header -nostdinc++ $(CXXFLAGS) @GLIBCXX_BUILD_PCH_FALSE@pch_build = @GLIBCXX_BUILD_PCH_TRUE@pch_build = ${pch_output}
-- 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] |