#31469 closed defect (fixed)
Cairo build problem : Unknown instruction for architecture x86_64
Reported by: | madduluri@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | x86_64 | Cc: | andrew@… |
Port: | cairo |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
While installing cairo on Lion, the build broke with the following error:
:info:build ld: lto: could not merge in .libs/cairo-analysis-surface.o because Unknown instruction for architecture x86_64
The whole log file is attached.
Attachments (2)
Change History (18)
Changed 13 years ago by madduluri@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | architecture removed |
Owner: | changed from macports-tickets@… to ryandesign@… |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Changed 13 years ago by andrew@…
Attachment: | main.2.log added |
---|
comment:3 follow-up: 5 Changed 13 years ago by andrew@…
With both llvm-gcc-4.2 and gcc-4.2 I receive the same error.
comment:5 Changed 13 years ago by andrew@…
Replying to andrew@…:
With both llvm-gcc-4.2 and gcc-4.2 I receive the same error.
(see attached main.2.log)
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Andrew, can you show me the log with gcc-4.2?
comment:7 Changed 13 years ago by andrew@…
Actually, looks like I was wrong. I only have llvm-gcc-4.2, and not straight gcc-4.2. Currently running Xcode 4.2 Developer Preview 7.
comment:8 follow-up: 9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
In that case, please try:
sudo port clean cairo sudo port install apple-gcc42 sudo port install cairo configure.compiler=apple-gcc-4.2
comment:9 Changed 13 years ago by andrew@…
Replying to ryandesign@…:
In that case, please try:
sudo port clean cairo sudo port install apple-gcc42 sudo port install cairo configure.compiler=apple-gcc-4.2
Works perfectly. Thank you.
comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:11 Changed 13 years ago by jmroot (Joshua Root)
Someone's going to file a radar about this, I hope?
comment:12 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
I would recommend that the person using the developer preview of Xcode 4.2 do so, since I would be nothing more than a middleman. The address to report bugs to Apple is http://bugreport.apple.com/
comment:13 Changed 13 years ago by andrew@…
I'm happy to - as I'm not overly familiar with what Apple requires for these sorts of things, do I just include the output log and suggest that the llvm-gcc-4.2 compiler is broken?
comment:14 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
When you create a new problem report on their site, there will be a number of fields to fill out. You'll probably also want to attach a log of the problem and your system profile, so they know what version of OS X and Xcode you're using.
As a workaround, use: