From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Sun, 20 Feb 2011 22:41:44 +0100 Subject: [Buildroot] nfs-utils build failed In-Reply-To: (Martin Hicks's message of "Sun, 20 Feb 2011 09:20:01 -0500") References: Message-ID: <87aahqe63r.fsf@macbook.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Martin" == Martin Hicks writes: Martin> 2011/2/20 Zden?k Materna : >> Hello, >> >> I'm back with another problem which I can't solve. I'm using buildroot from >> git, uclibc 0.9.31 and there is some problem with building nfs-utils (build >> log at bottom). If I understand it right rpcgen is used to generate mount.h. >> But rpcgen is compiled for target and can't be run on host. Then it's little >> bit strange that mount.h missing error is produced before "rpcgen: cannot >> execute binary file" error. >> >> Can anybody explain it for me? I'm quite confused with it. And any tips what >> to do to compile nfs-utils? Martin> I fought with this in a non buildroot environment this week. The Martin> reason is that rpcgen is compiled with your cross compiler and not Martin> your build host's CC. I couldn't figure out how to make automake use Martin> my host's compiler, but did eventually figure out that if you install Martin> the rpcgen program from your build server's package manager into Martin> /usr/bin you can specify RPCGEN=/usr/bin/rpcgen and nfs-utils will Martin> stop trying to compile this tool and just use the one you've Martin> specified. FYI: I've fixed the nfs-utils package in git to build rpcgen itself, so you no longer need this. -- Bye, Peter Korsgaard