[cairo-bugs] [Bug 44584] Build fails with Apple's llvm-gcc-4.2
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jan 9 12:26:12 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=44584
--- Comment #8 from John Ralls <jralls at ceridwen.us> 2012-01-09 12:26:12 PST ---
(In reply to comment #6)
> I think I found why I did not hit this bug.
> My CFLAGS are the default ones, hence they include -g.
> It looks like:
>
> gcc -o conftest -O2 -Werror -flto conftest.c
>
> completes successfully, while
>
> $ gcc -o conftest -g -O2 -Werror -flto conftest.c
> ld: in /var/folders/p2/lbn1bct52bq_1krlrp544t_c0000gn/T//ccHfXUes.o, could not
> parse object file /var/folders/p2/lbn1bct52bq_1krlrp544t_c0000gn/T//ccHfXUes.o:
> Malformed metadata record for architecture x86_64
Yes, if I pass a debug flag (-ggdb3 in this case) the flto link in configure
fails for me as well.
>
> (In reply to comment #5)
> > The obvious difference between configure's ac_fn_c_try_link test (which passes)
> > and the library linkage (which fails) is that the latter is called with
> > -dynamiclib and the former isn't.
>
> Then this is probably the correct thing to patch.
So add it to the CFLAGS in CAIRO_CC_TRY_LINK_WITH_ENV_SILENT -- or perhaps
where it's called at CAIRO_CC_FLAG_SILENT?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the cairo-bugs
mailing list