[CRIU] failing to build in launchpad upload environment

Cyrill Gorcunov gorcunov at gmail.com
Thu Jun 30 07:20:37 PDT 2016


On Thu, Jun 30, 2016 at 08:08:55AM -0600, Tycho Andersen wrote:
> > 
> > Hi Tycho, I somehow missing -- the build system passes additional LDFLAGS?
> > It seems so from your log (which happens when we build library and final criu
> > executable -- gcc called and it executes ld underneath). So I would simply
> > 
> > LDFLAGS=$(filter-out -Bsymbolic-functions, $(LDFLAGS))
> > 
> > in your script. Or you really need it? Or maybe I miss something obvious?
> 
> Well, we'd like to avoid any build-script specific hacks to keep in
> line with debian.
> 
> The build system passes its own LDFLAGS, but it passes them with the
> gcc wrappers "-Wl". The problem is that CRIU's makefiles use ld
> directly, and don't invoke it through gcc, and ld doesn't recognize
> the -Wl bits.

That's criu specifics, taken from linux kernel build procedure.
I can actually update criu build to filter out any -Wl argument
from ld invocation (hopefully it wont be hard).

> I'm not sure how/why this works in the debian builds, because
> presumably they're passing the same flags. Perhaps Salvatore can
> elaborate?
> 
> Tycho
> 

	Cyrill


More information about the CRIU mailing list