I'm on an x86_64 workstation (Linux 2.6) trying to cross compile
for ppc (Linux 2.4). I can't even get past the configure, it fails
with the error:

checking for /proc/self/fd... configure: error: cannot check for file
existence when cross compiling

The complete configure output is as follows:

% ./configure --prefix=/valgrind CC=ppc_4xx-gcc --host=ppc-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/X11/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for ppc-linux-strip... ppc-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for ppc-linux-gcc... ppc_4xx-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ppc_4xx-gcc accepts -g... yes
checking for ppc_4xx-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of ppc_4xx-gcc... gcc3
checking whether ppc_4xx-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... ppc_4xx-gcc -E
checking for ppc-linux-g++... ppc-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether ppc-linux-g++ accepts -g... yes
checking dependency style of ppc-linux-g++... gcc3
checking for ppc-linux-ranlib... ppc-linux-ranlib
checking for ar... /usr/bin/X11/ar
checking for perl... /usr/bin/X11/perl
checking for gdb... /usr/bin/X11/gdb
checking for diff -u... yes
checking for a supported version of gcc... ok (4)
checking build system type... x86_64-suse-linux
checking host system type... powerpc-unknown-linux
checking for a supported CPU... ok (powerpc)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... ok (linux)
checking for the kernel version... 2.6 family (2.6.22.19-0.4-default)
checking for a supported CPU/OS combination... ok (ppc32-linux)
checking for use as an inner Valgrind... no
checking for egrep... grep -E
checking the GLIBC_VERSION version... 2.3 family
checking for CLOCK_MONOTONIC... no
checking for PTHREAD_MUTEX_ADAPTIVE_NP... yes
checking for PTHREAD_MUTEX_ERRORCHECK_NP... yes
checking for PTHREAD_MUTEX_RECURSIVE_NP... yes
checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... yes
checking for pthread_mutex_t::__m_kind... yes
checking for pthread_mutex_t::__data.__kind... no
checking for Altivec... yes
checking for [email protected]()... no
checking for eventfd()... no
checking if gcc accepts -m32... no
checking if gcc accepts -maix32... no
checking if gcc accepts -m64... no
checking if gcc accepts -maix64... no
checking if gcc accepts -mmmx... no
checking if gcc accepts -msse... no
checking if gcc accepts -mpreferred-stack-boundary... no
checking if gcc accepts -Wno-pointer-sign... no
checking if gcc accepts -Wdeclaration-after-statement... no
checking if gcc accepts -Wno-empty-body... no
checking if gcc accepts -Wno-format-zero-length... yes
checking if gcc accepts -Wno-uninitialized... yes
checking if gcc accepts -Wextra or -W... -W
checking if gcc accepts -fno-stack-protector... no
checking if gcc accepts --param inline-unit-growth... no
checking if gcc supports __builtin_expect... yes
checking if ppc32/64 as supports mtocrf/mfocrf... no
checking if x86/amd64 assembler speaks SSE3... no
checking if x86/amd64 assembler speaks SSSE3... no
checking for TLS support... no
checking for /proc/self/fd... configure: error: cannot check for file
existence when cross compiling

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
http://www.icarus.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to