2008-02-26 10:23:37     in trunk compiling 'ethtool' issue an error

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-02-26 10:23:37     in trunk compiling 'ethtool' issue an error

Andrea Federico Grisotto (ITALY)

Message: 51663    I compiled ethtool in svn trunk but there is an error:


this is the compiler message:


(cd build; CC="bfin-linux-uclibc-gcc -pipe -Wall -O2      -mcpu=bf537-0.2" LDFLAGS="    -mcpu=bf537-0.2" LIBS="" ../configure)

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking whether make sets $(MAKE)... yes

checking for working aclocal-1.4... found

checking for working autoconf... found

checking for working automake-1.4... found

checking for working autoheader... found

checking for working makeinfo... found

checking for gcc... bfin-linux-uclibc-gcc -pipe -Wall -O2      -mcpu=bf537-0.2

checking for C compiler default output file name... a.out

checking whether the C compiler works... configure: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.



This patch resolve the problem:


--- Makefile    (revision 6302)

+++ Makefile    (working copy)

@@ -5,7 +5,7 @@

build: Makefile

        rm -rf build

        mkdir build

-       (cd build; CC="$(CC) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LDLIBS)" ../configure)

+       (cd build; CC="$(CC) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LDLIBS)" ../configure --host=$(CONFIGURE_HOST))



        $(ROMFSINST) build/ethtool /bin/ethtool




2008-02-26 12:45:11     Re: in trunk compiling 'ethtool' issue an error

Mike Frysinger (UNITED STATES)

Message: 51668    ethtool doesnt work with the BF537 MAC, so dont bother compiling it


i'll still fix the build though