Ticket #31469 (closed defect: fixed)
Cairo build problem : Unknown instruction for architecture x86_64
| Reported by: | madduluri@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | x86_64 | Cc: | andrew@… |
| Port: | cairo |
Description (last modified by ryandesign@…) (diff)
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
Change History
comment:1 Changed 20 months ago by ryandesign@…
- Owner changed from macports-tickets@… to ryandesign@…
- Keywords architecture removed
- Description modified (diff)
comment:2 Changed 20 months ago by ryandesign@…
As a workaround, use:
sudo port clean cairo sudo port install cairo configure.compiler=gcc-4.2
comment:3 follow-up: ↓ 5 Changed 20 months ago by andrew@…
With both llvm-gcc-4.2 and gcc-4.2 I receive the same error.
comment:5 in reply to: ↑ 3 Changed 20 months 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:7 Changed 20 months 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 20 months ago by 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
comment:9 in reply to: ↑ 8 Changed 20 months 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 20 months ago by ryandesign@…
- Status changed from new to closed
- Resolution set to fixed
comment:11 Changed 20 months ago by jmr@…
Someone's going to file a radar about this, I hope?
comment:12 Changed 20 months ago by ryandesign@…
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 20 months 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 20 months ago by ryandesign@…
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.
comment:15 Changed 20 months ago by andrew@…
Bug filed, radar # 10222197
comment:16 Changed 17 months ago by raimue@…
See follow-up in comment:ticket:32811:3

