* [Buildroot] nfs-utils build failed
@ 2011-02-20 13:03 Zdeněk Materna
2011-02-20 14:20 ` Martin Hicks
0 siblings, 1 reply; 4+ messages in thread
From: Zdeněk Materna @ 2011-02-20 13:03 UTC (permalink / raw)
To: buildroot
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?
Thanks a lot!
Regards,
Zdenek Materna
....
In file included from auth.c:20:0:
mountd.h:16:19: fatal error: mount.h: No such file or directory
compilation terminated.
make[3]: *** [mountd-auth.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from mount_dispatch.c:15:0:
mountd.h:16:19: fatal error: mount.h: No such file or directory
compilation terminated.
make[3]: *** [mountd-mount_dispatch.o] Error 1
In file included from mountd.c:27:0:
mountd.h:16:19: fatal error: mount.h: No such file or directory
compilation terminated.
make[3]: *** [mountd-mountd.o] Error 1
......
showmount.c:35:19: fatal error: mount.h: No such file or directory
compilation terminated.
make[3]: *** [showmount-showmount.o] Error 1
.......
/bin/bash: ../../tools/rpcgen/rpcgen: cannot execute binary file
make[3]: *** [sm_inter_xdr.c] Error 126
make[3]: *** Waiting for unfinished jobs....
/bin/bash: ../../tools/rpcgen/rpcgen: cannot execute binary file
/bin/bash: ../../tools/rpcgen/rpcgen: cannot execute binary file
make[3]: *** [sm_inter_clnt.c] Error 126
make[3]: *** [sm_inter_svc.c] Error 126
.......
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110220/96228256/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] nfs-utils build failed
2011-02-20 13:03 [Buildroot] nfs-utils build failed Zdeněk Materna
@ 2011-02-20 14:20 ` Martin Hicks
2011-02-20 21:41 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Martin Hicks @ 2011-02-20 14:20 UTC (permalink / raw)
To: buildroot
2011/2/20 Zden?k Materna <zdenek.materna@gmail.com>:
> 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?
I fought with this in a non buildroot environment this week. The
reason is that rpcgen is compiled with your cross compiler and not
your build host's CC. I couldn't figure out how to make automake use
my host's compiler, but did eventually figure out that if you install
the rpcgen program from your build server's package manager into
/usr/bin you can specify RPCGEN=/usr/bin/rpcgen and nfs-utils will
stop trying to compile this tool and just use the one you've
specified.
mh
--
Martin Hicks P.Eng. ?? ? | ? ? ? ? mort at bork.org
Bork Consulting Inc. ? ? | ? +1 (613) 266-2296
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] nfs-utils build failed
2011-02-20 14:20 ` Martin Hicks
@ 2011-02-20 21:41 ` Peter Korsgaard
2011-02-21 20:21 ` Zdeněk Materna
0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2011-02-20 21:41 UTC (permalink / raw)
To: buildroot
>>>>> "Martin" == Martin Hicks <mort@bork.org> writes:
Martin> 2011/2/20 Zden?k Materna <zdenek.materna@gmail.com>:
>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] nfs-utils build failed
2011-02-20 21:41 ` Peter Korsgaard
@ 2011-02-21 20:21 ` Zdeněk Materna
0 siblings, 0 replies; 4+ messages in thread
From: Zdeněk Materna @ 2011-02-21 20:21 UTC (permalink / raw)
To: buildroot
Hello,
thanks for fix, it's ok now!
Zdenek
2011/2/20 Peter Korsgaard <jacmet@uclibc.org>
> >>>>> "Martin" == Martin Hicks <mort@bork.org> writes:
>
> Martin> 2011/2/20 Zden?k Materna <zdenek.materna@gmail.com>:
> >> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110221/4086a313/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-02-21 20:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-20 13:03 [Buildroot] nfs-utils build failed Zdeněk Materna
2011-02-20 14:20 ` Martin Hicks
2011-02-20 21:41 ` Peter Korsgaard
2011-02-21 20:21 ` Zdeněk Materna
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.