When using several make jobs to build gnome-base/orbit-2.14.16, the application fails to link, as the library libname-server-2.a is not yet present when needed.
Steps to Reproduce:
1. set MAKEOPTS="-j3 -l 1.5" in /etc/make.conf
2. run emerge -1 =gnome-base/orbit-2.14.16
3. wait for build to fail
setting MAKEOPTS="-j1 -l 1.5" fixes the problem. I suggest to filter the MAKEOPTS in the ebuild or to patch the Makefile to correctly include all dependencies.
Created attachment 193798 [details]
build log for failing build
Same error also applies to gnome-base/orbit-2.14.17
also encoubtered this and64 the -j1 got by the issue
Same error also applies to gnome-base/orbit-2.14.18 on amd64
(In reply to comment #4)
> Same error also applies to gnome-base/orbit-2.14.18 on amd64
Are you able to reproduce this? I have never suffered it. Please also provide a new build.log in that case
Created attachment 245684 [details]
Created attachment 245685 [details]
Can you try disabling ccache?
(In reply to comment #9)
> Can you try disabling ccache?
Sorry, should have tested that. Same build failure without ccache
(In reply to comment #10)
> (In reply to comment #9)
> > Can you try disabling ccache?
> Sorry, should have tested that. Same build failure without ccache
Incidentally, this only affects one of my two amd64 machines; on the other, it works with -j5 (on the non-building machine, only -j1 works)
+ 07 Sep 2010; Pacho Ramos <firstname.lastname@example.org> orbit-2.14.18.ebuild:
+ Set MAKEOPTS to -j1 since parallel build fails from time to time, bug
As this is no longer developer by upstream, a patch for fixing this would be nice
This patch seems to fix it:
@@ -68,7 +68,7 @@ libname_server_2_a_DEPENDENCIES = $(DEPS) CosNaming.h
orbit_name_server_2_SOURCES = boot.c
orbit_name_server_2_LDFLAGS = $(FLAGS)
-orbit_name_server_2_DEPENDENCIES = $(DEPS) CosNaming.h
+orbit_name_server_2_DEPENDENCIES = $(DEPS) CosNaming.h libname-server-2.a
orbit_name_server_2_LDADD = libname-server-2.a $(LDADDS)
$(libname_server_2_a_OBJECTS) $(name_client_2_OBJECTS) $(orbit_name_server_2_OBJECTS) : CosNaming.h
I am unsure if we should simply kill static-libs and always build with --disable-static :/
libname-server-2.a is not built with libtool, so --disable-static has no influence here.
Fixed in orbit-2.14.19-r4.