- From: Jesper Larsen <jla_at_iotech.dk>
- Date: Fri, 07 Jul 2006 14:53:59 +0200
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. >> >>I can work around it, but I guess it can be fixed in the configure script? >> >>Do you know how I can fix it? >> >> > >Is this for comedilib? > No, it is for comedi it self (the kernel part). Comedilib cross-compiles without problems. 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: /usr/bin/install -c -m644 ai_canioboard.ko /lib/modules/2.6.17-rc1-mm2/comedi/ai_canioboard.ko /usr/bin/strip: Unable to recognise the format of the input file /lib/modules/2.6.17-rc1-mm2/comedi/ai_canioboard.ko > I don't think comedi strips anything, although >it checks for the strip program twice, and looks for the host strip, >rather than the cross-compiled target strip. > >Assuming you are having problems with strip in comedilib, this is >supposed to be taken care of automatically. Do you have this line in >comedilib's aclocal.m4 file? : > >AC_CHECK_TOOL(STRIP, strip, :) > > aclocal.m4 for comedilib contains: AC_CHECK_TOOL(STRIP, strip, :) and AC_CHECK_TOOL([STRIP], [strip], :) aclocal.m4 for the kernel part contains: AC_CHECK_TOOL([STRIP], [strip], :) >(That's _not_ a smiley on the end!) > >Earlier versions of aclocal may emit a shorter version of the >AC_CHECK_TOOL macro without the third parameter, i.e. >AC_CHECK_TOOL(STRIP, strip). > >Also, what does "grep strip config.log" produce? > > > configure:1736: checking for powerpc-linux-strip configure:1762: result: powerpc-linux-strip configure:2977: checking for strip configure:2995: found /usr/bin/strip configure:3007: result: /usr/bin/strip configure:3865: checking for strip configure:3895: result: /usr/bin/strip ac_cv_path_STRIP=/usr/bin/strip ac_cv_prog_STRIP=powerpc-linux-strip STRIP='/usr/bin/strip' This is with comedi for CVS. Any hints? -- Med venlig hilsen / Kind regards Jesper Larsen, M.Sc., Software Engineer IO Technologies A/S, Gåseagervej 6, DK-8250 Egå Phone: +45 87438074 E-mail: jla_at_iotech.dk www: www.iotech.dk
Received on 2006-07-07Z11:53:59