From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] bpfilter: fix user mode helper cross compilation Date: Wed, 27 Jun 2018 23:17:09 -0700 Message-ID: <20180627231709.01709545812b669e29e797f7@linux-foundation.org> References: <20180620140434.18139-1-mcroce@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Matteo Croce Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:50682 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031AbeF1GRL (ORCPT ); Thu, 28 Jun 2018 02:17:11 -0400 In-Reply-To: <20180620140434.18139-1-mcroce@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 20 Jun 2018 16:04:34 +0200 Matteo Croce wrote: > Use $(OBJDUMP) instead of literal 'objdump' to avoid > using host toolchain when cross compiling. > I'm still having issues here, with ld. x86_64 machine, ARCH=i386: y:/usr/src/25> make V=1 M=net/bpfilter test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) mkdir -p net/bpfilter/.tmp_versions ; rm -f net/bpfilter/.tmp_versions/* make -f ./scripts/Makefile.build obj=net/bpfilter (cat /dev/null; echo kernel/net/bpfilter/bpfilter.ko;) > net/bpfilter/modules.order ld -m elf_i386 -r -o net/bpfilter/bpfilter.o net/bpfilter/bpfilter_kern.o net/bpfilter/bpfilter_umh.o ; scripts/mod/modpost net/bpfilter/bpfilter.o ld: i386:x86-64 architecture of input file `net/bpfilter/bpfilter_umh.o' is incompatible with i386 output scripts/Makefile.build:530: recipe for target 'net/bpfilter/bpfilter.o' failed make[1]: *** [net/bpfilter/bpfilter.o] Error 1 Makefile:1518: recipe for target '_module_net/bpfilter' failed make: *** [_module_net/bpfilter] Error 2 y:/usr/src/25> ld --version GNU ld (GNU Binutils for Ubuntu) 2.29.1