Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

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

main.log (89.0 KB) - added by madduluri@… 13 years ago.
main.2.log (420.5 KB) - added by andrew@… 13 years ago.

Download all attachments as: .zip

Change History (18)

Changed 13 years ago by madduluri@…

Attachment: main.log added

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)

As a workaround, use:

sudo port clean cairo
sudo port install cairo configure.compiler=gcc-4.2

Changed 13 years ago by andrew@…

Attachment: main.2.log added

comment:3 Changed 13 years ago by andrew@…

With both llvm-gcc-4.2 and gcc-4.2 I receive the same error.

comment:4 Changed 13 years ago by andrew@…

Cc: andrew@… added

Cc Me!

comment:5 in reply to:  3 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 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 in reply to:  8 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: newclosed

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.

comment:15 Changed 13 years ago by andrew@…

Bug filed, radar # 10222197

comment:16 Changed 13 years ago by raimue (Rainer Müller)

See follow-up in comment:ticket:32811:3

Note: See TracTickets for help on using tickets.