Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570766 - app-admin/collectd-5.5.0 - Parallel build issue: cannot find the library 'libcommon.la' or unhandled argument 'libcommon.la'
Summary: app-admin/collectd-5.5.0 - Parallel build issue: cannot find the library 'li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Proxy Maintainers
URL:
Whiteboard:
Keywords:
: 573240 (view as bug list)
Depends on: 570772
Blocks:
  Show dependency tree
 
Reported: 2016-01-03 18:33 UTC by Thomas Deutschmann (RETIRED)
Modified: 2016-02-29 16:20 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Parallel Make Patch (collectd-parallel-make.patch,448 bytes, patch)
2016-01-03 21:14 UTC, Malcolm Lashley
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2016-01-03 18:33:29 UTC
Hi,

one one of my systems I run into a parallel build issue with app-admin/collectd-5.5.0:

[...]
ibtool: link: x86_64-pc-linux-gnu-ranlib .libs/libavltree.a
libtool: link: ( cd ".libs" && rm -f "libavltree.la" && ln -s "../libavltree.la" "libavltree.la" )
libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libheap.a .libs/utils_heap.o
libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libheap.a
libtool: link: ( cd ".libs" && rm -f "libheap.la" && ln -s "../libheap.la" "libheap.la" )
libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libplugin_mock.a .libs/plugin_mock.o .libs/utils_cache_mock.o .libs/utils_time_mock.o
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -Werror -O2 -pipe -march=ivybridge -mtune=ivybridge  -Wl,-O1 -Wl,--as-needed -o libcommon.la  common.lo
libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libplugin_mock.a
libtool: link: ( cd ".libs" && rm -f "libplugin_mock.la" && ln -s "../libplugin_mock.la" "libplugin_mock.la" )
libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libcommon.a .libs/common.o
libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libcommon.a
libtool:   error^O: cannot find the library 'libcommon.la' or unhandled argument 'libcommon.la'^O
Makefile:889: recipe for target 'collectd' failed
make[3]: *** [collectd] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: link: ( cd ".libs" && rm -f "libcommon.la" && ln -s "../libcommon.la" "libcommon.la" )
make[3]: Leaving directory '/var/tmp/portage/app-admin/collectd-5.5.0/work/collectd-5.5.0/src/daemon'
Makefile:4720: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-admin/collectd-5.5.0/work/collectd-5.5.0/src'
Makefile:3114: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-admin/collectd-5.5.0/work/collectd-5.5.0/src'
Makefile:552: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1



This is upstream issue 1146 (https://github.com/collectd/collectd/issues/1146).

Upstream fix: https://github.com/collectd/collectd/commit/780e6a76021a240e95007a04b723d827120afa95.patch

Reproducible: Always
Comment 1 Malcolm Lashley 2016-01-03 21:14:33 UTC
Created attachment 421812 [details, diff]
Parallel Make Patch

Same issue here. Dropping the attached into /etc/portage/patches/app-admin/collectd fixes it for me.
Comment 2 PetaMem R&D 2016-01-19 16:43:03 UTC
Same here (after a sync today). Maybe a version bump would be in order.

upstream knows and there is a fix already
https://github.com/collectd/collectd/issues/1146
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-02-04 08:23:08 UTC
I run into this or bug #573240 all the time so I could not upgrade to 5.5.0 yet.
Comment 4 Mihai Moldovan 2016-02-16 04:01:57 UTC
(In reply to Thomas D. from comment #0)
> This is upstream issue 1146
> (https://github.com/collectd/collectd/issues/1146).
> 
> Upstream fix:
> https://github.com/collectd/collectd/commit/780e6a76021a240e95007a04b723d827120afa95.patch

Proxy maintainer(s), please apply the patch as provided in the original bug report.

As a quick workaround, you might also force non-parallel builds by giving emake the additional argument "-j1", although that's less clean.
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2016-02-18 06:55:49 UTC
*** Bug 573240 has been marked as a duplicate of this bug. ***
Comment 6 Patrice Clement gentoo-dev 2016-02-29 16:20:20 UTC
commit 0351034075163e36645165d2b1e5683fd7511015 (HEAD -> master)
Merge: a0b7390 3b459b6
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Mon Feb 29 15:31:16 2016 +0000

Merge github#887: app-admin/collectd: Version bump to v5.5.1

This PR bumps collectd to version 5.5.1 and fixes a raft of bugs.

See commit 3b459b6d37f22f9da2c070173756bf12de2591f0 for a lengthy explanation
concerning the changes involved.

Pull-Request: https://github.com/gentoo/gentoo/pull/887
Gentoo-Bug: https://bugs.gentoo.org/570766
Gentoo-Bug: https://bugs.gentoo.org/517060
Gentoo-Bug: https://bugs.gentoo.org/524400
Gentoo-Bug: https://bugs.gentoo.org/570778
Reporter: Thomas D <whissi@whissi.de>
Acked-by: Johan Bergström <bugs@bergstroem.nu>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>