|
From: Florian K. <br...@ac...> - 2008-01-31 02:23:06
|
You get compile errors because config.h is not there. Which implies that the "configure" step had errors and did not succeed. I see warnings in the output below which should not be there.. Perhaps this is a problem related to autoconf/make versions. I'm using autoconf 2.61 and automake 1.7 which work fine for me and I'm cross-compiling to, although for a different target. Florian On Tuesday 29 January 2008 11:08:45 am w112318 wrote: > Hi, > I am trying to cross compile the valgrind for ppc-82xx target version, I > got some compile errors, please help me. Thanks. > > configure like this: > > CC=/opt/montavista/pro/devkit/ppc/82xx/bin/ppc_82xx-gcc ../configure > --host=powerpc-linux --disable-tls > ... > checking for a supported version of gcc... ok (ppc_82xx-gcc (GCC) 3.4.3 > (MontaVista 3.4.3-25.0.70.0501961 2005-12-18)) > > checking endian.h presence... yes > configure: WARNING: endian.h: present but cannot be compiled > configure: WARNING: endian.h: check for missing prerequisite headers? > configure: WARNING: endian.h: see the Autoconf documentation > configure: WARNING: endian.h: section "Present But Cannot Be Compiled" > configure: WARNING: endian.h: proceeding with the preprocessor's result > configure: WARNING: endian.h: in the future, the compiler will take > precedence > configure: WARNING: ## > --------------------------------------------------- ## > configure: WARNING: ## Report this to > val...@li... ## > configure: WARNING: ## > --------------------------------------------------- ## > checking for endian.h... yes > checking mqueue.h usability... no > checking mqueue.h presence... yes > configure: WARNING: mqueue.h: present but cannot be compiled > configure: WARNING: mqueue.h: check for missing prerequisite headers? > configure: WARNING: mqueue.h: see the Autoconf documentation > configure: WARNING: mqueue.h: section "Present But Cannot Be Compiled" > configure: WARNING: mqueue.h: proceeding with the preprocessor's result > configure: WARNING: mqueue.h: in the future, the compiler will take > precedence > configure: WARNING: ## > --------------------------------------------------- ## > configure: WARNING: ## Report this to > val...@li... ## > configure: WARNING: ## > --------------------------------------------------- ## > checking for mqueue.h... yes > checking for uid_t in sys/types.h... yes > checking for off_t... no > checking for size_t... no > checking whether time.h and sys/time.h may both be included... no > checking for working memcmp... no > checking for stdlib.h... (cached) no > > > Make error: > [root@sbuild1 build]# make > /opt/montavista/pro/devkit/ppc/82xx/bin/ppc_82xx-gcc -m32 -Wl,--verbose > -nostdlib 2>&1 | sed \ > -e '1,/^=====\+$/d' \ > -e '/^=====\+$/d' \ > -e '/\. = 0x[0-9A-Fa-f]\+ + > SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > > valt_load_address_ppc32_linux.lds \ > > || rm -f valt_load_address_ppc32_linux.lds > > make all-recursive > make[1]: Entering directory `/home/vwen/tools/valgrind-3.2.3/build' > Making all in include > make[2]: Entering directory `/home/vwen/tools/valgrind-3.2.3/build/include' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/vwen/tools/valgrind-3.2.3/build/include' > Making all in coregrind > make[2]: Entering directory > `/home/vwen/tools/valgrind-3.2.3/build/coregrind' > make all-am > make[3]: Entering directory > `/home/vwen/tools/valgrind-3.2.3/build/coregrind' > if /opt/montavista/pro/devkit/ppc/82xx/bin/ppc_82xx-gcc -DHAVE_CONFIG_H -I. > -I../../coregrind -I.. -I../../coregrind -I../.. -I../../coregrind/ppc32 > -I../../coregrind/linux -I../../coregrind/ppc32-linux -I../../include > -I../../VEX/pub -DVG_PLATFORM="\"ppc32-linux\"" -DVGA_ppc32=1 -DVGO_linux=1 > -DVGP_ppc32_linux=1 -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -I > /opt/montavista/pro/devkit/ppc/82xx/target/usr/src/linux/include/linux > -m32 -O -g -Wmissing-prototypes -Winline -Wall -Wshadow -Wpointer-arith > -Wstrict-prototypes -Wmissing-declarations -Wno-long-long > -Wdeclaration-after-statement -MT > libcoregrind_ppc32_linux_a-m_commandline.o -MD -MP -MF > ".deps/libcoregrind_ppc32_linux_a-m_commandline.Tpo" -c -o > libcoregrind_ppc32_linux_a-m_commandline.o `test -f 'm_commandline.c' || > echo '../../coregrind/'`m_commandline.c; \ > then mv -f ".deps/libcoregrind_ppc32_linux_a-m_commandline.Tpo" > ".deps/libcoregrind_ppc32_linux_a-m_commandline.Po"; else rm -f > ".deps/libcoregrind_ppc32_linux_a-m_commandline.Tpo"; exit 1; fi > /opt/montavista/pro/devkit/ppc/82xx/bin/ppc_82xx-gcc -I../../coregrind > -I../.. -I../../coregrind/ppc32 -I../../coregrind/linux > -I../../coregrind/ppc32-linux -I../../include -I../../VEX/pub > -DVG_PLATFORM="\"ppc32-linux\"" -DVGA_ppc32=1 -DVGO_linux=1 > -DVGP_ppc32_linux=1 -Wa,-maltivec -m32 -g -Wno-long-long -c -o > libcoregrind_ppc32_linux_a-m_cpuid.o `test -f 'm_cpuid.S' || echo > '../../coregrind/'`m_cpuid.S > In file included from ../../coregrind/m_cpuid.S:31: > ../../coregrind/pub_core_basics_asm.h:46:20: config.h: No such file or > directory > make[3]: *** [libcoregrind_ppc32_linux_a-m_cpuid.o] Error 1 > make[3]: Leaving directory > `/home/vwen/tools/valgrind-3.2.3/build/coregrind' make[2]: *** [all] Error > 2 > make[2]: Leaving directory > `/home/vwen/tools/valgrind-3.2.3/build/coregrind' make[1]: *** > [all-recursive] Error 1 > make[1]: Leaving directory `/home/vwen/tools/valgrind-3.2.3/build' > make: *** [all] Error 2 |