- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Fri, 07 Jul 2006 16:07:26 +0100
On 07/07/06 13:53, Jesper Larsen wrote: > Ian Abbott wrote: > >> On 07/07/06 08:41, Jesper Larsen wrote: >> >>> My next (minor) problem is that the host strip command is used instead >>> of the target strip command. (In my case strip instead of >>> powerpc-linux-strip). >>> Because of this, "make install" fails. > Here is a part of the output for running configure for the kernel part: > > checking build system type... i686-pc-linux-gnu > checking host system type... powerpc-unknown-linux-gnu > checking target system type... powerpc-unknown-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for powerpc-linux-strip... powerpc-linux-strip > checking whether to enable maintainer-specific portions of Makefiles... no > checking for powerpc-linux-gcc... powerpc-linux-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 powerpc-linux-gcc accepts -g... yes > checking for powerpc-linux-gcc option to accept ANSI C... none needed > checking for style of include used by make... GNU > checking dependency style of powerpc-linux-gcc... gcc3 > checking for strip... /usr/bin/strip > > and further down: > > checking for strip... (cached) /usr/bin/strip > > So it is actually checking for powerpc-linux-strip, but when running > make install it uses strip: So there are three checks for strip altogether (or two checks if _not_ cross-compiling), all but the first of which are wrong. I think you can fix it as follows: In 'configure.ac', look for "AC_PATH_PROG(STRIP,strip)" (line 35). Change "AC_PATH_PROG" to "AC_PATH_TOOL". Also, you might as well change "STRIP" to "[STRIP]" and "strip" to "[strip]" for consistency. Do the same thing in 'm4/as-modtool.m4' (line 31). Then run ./autogen.sh again. Note to save time, you can run ./autogen.sh with the same command line parameters that you normally pass to ./configure, which saves running ./configure again. Let us know how you get on! -- -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Received on 2006-07-07Z14:07:26