Kashyap Chamarthy
2013-Dec-31 15:29 UTC
[Libguestfs] libguestfs build fails with: /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a -- no such file
I'm on libguestfs Fedora git master branch: $ git log | head -1 commit 8eb1aa2406632eb4202bbd976459334854295a77 $ yum-builddep libguestfs $ fedpkg local Results in: =========. . . make[4]: Leaving directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18/gobject' Making all in docs make[4]: Entering directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18/gobject/docs' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18/gobject/docs' make[3]: Leaving directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18/gobject' make[2]: Leaving directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18/gobject' Making all in golang make[2]: Entering directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18/golang' ../run go install libguestfs.org/guestfs go install libguestfs.org/guestfs: open /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a: permission denied make[2]: *** [pkg/linux_amd64/libguestfs.org/guestfs.a] Error 1 make[2]: Leaving directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18/golang' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.wnFopm (%build) ========= There's no such file as guestfs.a in the above said directory: ========= $ tree /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/ /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/ └── guestfs 1 directory, 0 files ========= What am I missing? Thanks in advance. -- /kashyap
Richard W.M. Jones
2014-Jan-01 17:00 UTC
[Libguestfs] libguestfs build fails with: /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a -- no such file
On Tue, Dec 31, 2013 at 04:29:37PM +0100, Kashyap Chamarthy wrote:> I'm on libguestfs Fedora git master branch:[...]> go install libguestfs.org/guestfs: open > /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a: permission deniedI believe this happens if you have golang-guestfs installed at the same time that you try to compile things locally. It's a serious design flaw in golang that the language is resistant to being properly packaged. (There is a bugzilla thread on this topic, but I can't find it at the moment ...) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Kashyap Chamarthy
2014-Jan-02 16:28 UTC
Re: [Libguestfs] libguestfs build fails with: /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a -- no such file
On 01/01/2014 06:00 PM, Richard W.M. Jones wrote:> On Tue, Dec 31, 2013 at 04:29:37PM +0100, Kashyap Chamarthy wrote: >> I'm on libguestfs Fedora git master branch: > [...] >> go install libguestfs.org/guestfs: open >> /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a: permission denied > > I believe this happens if you have golang-guestfs installed at the > same time that you try to compile things locally.Indeed -- once I removed the golang-guestfs package, and re-issued a local build, it goes through just fine: $ git log | head -1 commit 8eb1aa2406632eb4202bbd976459334854295a77 $ fedpkg local [. . .] Wrote: /home/kashyap/fedora-packaging/libguestfs/master/libguestfs-1.25.18-1.fc21.src.rpm Wrote: /home/kashyap/fedora-packaging/libguestfs/master/x86_64/libguestfs-1.25.18-1.fc21.x86_64.rpm [. . .] $ echo $? 0 Thanks.> It's a serious > design flaw in golang that the language is resistant to being properly > packaged. (There is a bugzilla thread on this topic, but I can't find > it at the moment ...) > > Rich. >-- /kashyap
Possibly Parallel Threads
- libguestfs build fails with: /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a -- no such file
- Re: [PATCH] guestfs.pod: Update reference to libguestfs internals
- Re: [virt-builder] symbol lookup error: /lib64/libgnutls.so.28 - undefined symbol: nettle_secp_256r1
- Re: [virt-builder] symbol lookup error: /lib64/libgnutls.so.28 - undefined symbol: nettle_secp_256r1
- Re: issue regarding libguestfs-golang