[libvirt] libvirt-glib fails to compile with CLANG compiler

Jason Helfman jgh at FreeBSD.org
Fri Sep 27 19:09:43 UTC 2013


On Thu, Sep 26, 2013 at 6:06 AM, Christophe Fergeau <cfergeau at redhat.com>wrote:

> Hey,
>
> On Wed, Sep 25, 2013 at 09:31:52AM -0700, Jason Helfman wrote:
> > When compiling libvirt-glib with CLANG, I get the following error.
> >
> > 16 warnings generated.
> >   CCLD     libvirt-glib-1.0.la
> >   GEN      LibvirtGLib-1.0.gir
> > /usr/local/lib/libvirt.so: undefined reference to
> `__stack_chk_fail_local'
> > clang: error: linker command failed with exit code 1 (use -v to see
> > invocation)
>
> make V=1 would show more details about what it's attempting to do.
> I tried a compilation with clang-3.3-0.6.rc3.fc19.x86_64 here,
> using CC=clang ./autogen.sh --disable-introspection
> and hit some issues related to -fxxx -Wxxx flags clang did not like, but
> after disabling these (manually for now), compilation worked properly.
> I had errors with the .gir generation, hence the --disable-introspection,
> but the errors were not related to undefined __stack_chk_fail_local
> symbols.
>
> Can you give more details about your setup? Also, I assume the build tree
> was clean (ie there was no stray .o generated with gcc in it?)
>
> Christophe
>

http://people.freebsd.org/~jgh/files/libvirt-glib-make.log

It was clean, yes.

-jgh

-- 
Jason Helfman          | FreeBSD Committer
jgh at FreeBSD.org     | http://people.freebsd.org/~jgh  | The Power to Serve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130927/0095ff3f/attachment-0001.htm>


More information about the libvir-list mailing list