Thanks Hamish. I'm actually working with Bernhard's repo but this is a useful patch.
Regards, Liran. On Nov 2, 2007 1:31 AM, Hamish Moffatt <[EMAIL PROTECTED]> wrote: > > On Thu, Nov 01, 2007 at 09:42:27AM +0200, liran tal wrote: > > Hey Bernhard, > > > > I will update you as well as the mailing list on issues I stumble while > > working with your git repository. > > > > When working with gcc-4.1.2, the compilation breaks with an error of a > > missing file > > 'execinfo.h' which is referenced from > > toolchain_build_mipsel/gcc-4.1.2/libmudflap/mf-runtime.c > > (that's on my mipsel build). By commenting out line 56 for including > > execinfo.h > > the rest of the compilation process continues ok. > > This is fixed in buildroot's svn. The problem is that the libmudflap > configure uses the host's cpp rather than the target, which then finds > the host's execinfo.h at configure time, which doesn't exist at compile > time when the correct tools are used. > > Here's the patch I supplied. > > Hamish > > Index: gcc-uclibc-3.x.mk > =================================================================== > --- gcc-uclibc-3.x.mk (revision 20217) > +++ gcc-uclibc-3.x.mk (working copy) > @@ -242,6 +242,7 @@ > (cd $(GCC_BUILD_DIR2); rm -rf config.cache; \ > $(HOST_CONFIGURE_OPTS) \ > GCC=$(TARGET_CROSS)gcc \ > + CPP=$(TARGET_CROSS)cpp \ > LDFLAGS_FOR_TARGET="$(patsubst > %,LDFLAGS+=-Wl$(comma)%,$(TARGET_LDFLAGS)) -L$(STAGING_DIR)/lib > -L$(STAGING_DIR)/usr/lib" \ > $(GCC_DIR)/configure \ > --prefix=$(STAGING_DIR) \ > @@ -267,7 +268,7 @@ > touch $@ > > $(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured > - PATH=$(TARGET_PATH) $(MAKE) $(HOST_CONFIGURE_OPTS) -C > $(GCC_BUILD_DIR2) all > + PATH=$(TARGET_PATH) $(MAKE) $(HOST_CONFIGURE_OPTS) > CPP=$(TARGET_CROSS)cpp -C $(GCC_BUILD_DIR2) all > touch $@ > > $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled > -- > Hamish Moffatt VK3SB <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> > _______________________________________________ > uClibc mailing list > [email protected] > http://busybox.net/cgi-bin/mailman/listinfo/uclibc > _______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
