[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 08:41:20 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=44584

--- Comment #6 from Andrea Canciani <ranma42 at gmail.com> 2012-01-09 08:41:20 PST ---
(In reply to comment #3)
> From *your* config file: 
> >checking for gcc... gcc

And from *my* shell (and probably yours, too):

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658)
(LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'm using the default compiler with XCode 4.2.1.

> 
> What part of "llvm-gcc-4.2" do you not understand?

I'm already using llvm-gcc-4.2, but through the standard alias "gcc" (as
provided by Xcode).
This also shows that your patch does not actually solve the issue.

(In reply to comment #4)
> Created attachment 55339 [details]
> Config.log (without the patch)

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

(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.

-- 
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