#34137 closed defect (fixed)
cairo: clang: error: unable to execute command: Segmentation fault: 11
Reported by: | nooneofconsequence@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | lion clang | Cc: | skymoo (Adam Mercer), mf2k (Frank Schima) |
Port: | cairo |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
$ sudo port upgrade cairo ---> Computing dependencies for cairo ---> Fetching archive for cairo ---> Attempting to fetch cairo-1.12.0_0+x11.darwin_11.x86_64.tgz from http://packages.macports.org/cairo ---> Fetching cairo ---> Verifying checksum(s) for cairo ---> Extracting cairo ---> Applying patches to cairo ---> Configuring cairo ---> Building cairo Error: Target org.macports.build returned: shell command failed (see log for details) Log for cairo is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets>
Attachments (1)
Change History (20)
Changed 13 years ago by nooneofconsequence@…
comment:1 follow-up: 5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | lion clang added |
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | cairo added |
Summary: | port upgrade cairo on OS X Lion 10.7.3 with XCode 4.3.2 (1177) and MacPorts 2.0.4 fails → cairo: clang: error: unable to execute command: Segmentation fault: 11 |
The log says:
:info:build clang: error: unable to execute command: Segmentation fault: 11 :info:build clang: error: linker command failed due to signal 2 (use -v to see invocation) :info:build clang: note: diagnostic msg: Please submit a bug report to http://developer.apple.com/bugreporter/ and include command line arguments and all diagnostic information. :info:build clang: note: diagnostic msg: Error generating preprocessed source(s) - cannot generate preprocessed source with multiple -arch options.
Please do that. I don't have Lion or Xcode 4 and I haven't seen this problem before so I can't assist further.
comment:3 follow-up: 4 Changed 13 years ago by skymoo (Adam Mercer)
Forcing the use of llvm-gcc-4.2 allows me to build
comment:4 follow-up: 6 Changed 13 years ago by nooneofconsequence@…
Replying to ram@…:
Forcing the use of llvm-gcc-4.2 allows me to build
Are you going to give any tips on forcing the use of llvm-gcc-4.2 or is this a note for developers to use to fix the build?
comment:5 Changed 13 years ago by nooneofconsequence@…
Replying to ryandesign@…:
The log says:
:info:build clang: error: unable to execute command: Segmentation fault: 11 :info:build clang: error: linker command failed due to signal 2 (use -v to see invocation) :info:build clang: note: diagnostic msg: Please submit a bug report to http://developer.apple.com/bugreporter/ and include command line arguments and all diagnostic information. :info:build clang: note: diagnostic msg: Error generating preprocessed source(s) - cannot generate preprocessed source with multiple -arch options.
Please do that. I don't have Lion or Xcode 4 and I haven't seen this problem before so I can't assist further.
If you've got an Apple Dev account, its Problem ID: 11286503
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to nooneofconsequence@…:
Replying to ram@…:
Forcing the use of llvm-gcc-4.2 allows me to build
Are you going to give any tips on forcing the use of llvm-gcc-4.2 or is this a note for developers to use to fix the build?
comment:8 Changed 13 years ago by mf2k (Frank Schima)
@ryandesign: I see the same problem with Xcode 4.3.2 and Lion. This problem prevents the building of wine on Lion. Can I please commit the temporary fix as suggested by ram, namely switching to llvm-gcc-4.2 in place of clang?
comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Please commit the same change to cairo-devel simultaneously.
comment:11 Changed 13 years ago by mf2k (Frank Schima)
comment:12 follow-up: 13 Changed 13 years ago by jmroot (Joshua Root)
I actually can't reproduce this. Are everyone's command line tools up to date?
comment:13 Changed 13 years ago by mf2k (Frank Schima)
Replying to jmr@…:
I actually can't reproduce this. Are everyone's command line tools up to date?
Yes, mine are. I'm not sure this proves it but here is the version info:
$ xcodebuild -version Xcode 4.3.2 Build version 4E2002
comment:14 Changed 13 years ago by jmroot (Joshua Root)
No, that doesn't prove anything about the command line tools. Try this:
% /usr/bin/clang -v Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix
comment:15 Changed 13 years ago by nooneofconsequence@…
I'm the OP and since I didn't post it explicitly, my clang shows the following:
$ clang -v Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix
and
$ xcodebuild -version Xcode 4.3.2 Build version 4E2002
comment:16 Changed 13 years ago by mf2k (Frank Schima)
$ /usr/bin/clang -v Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix
comment:17 Changed 13 years ago by nooneofconsequence@…
The new source compiles and installs. Thanks!!
cairo @1.12.2_0+x11 (active)
port info cairo cairo @1.12.2 (graphics) Variants: no_x11, opengl, quartz, universal, [+]x11, x11_xcb Description: Cairo is a vector graphics library with cross-device output support. It is designed to produce identical output on all output media while taking advantage of display hardware acceleration when available (e.g. through the X Render Extension). Homepage: http://cairographics.org/ Extract Dependencies: xz Build Dependencies: pkgconfig Library Dependencies: libpixman, glib2, fontconfig, freetype, libpng, zlib, expat, xrender, xorg-xcb-util Conflicts with: cairo-devel Platforms: darwin, macosx License: LGPL-2.1 MPL-1.1 Maintainers: ryandesign@macports.org
comment:18 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I'm not able to reproduce this with Xcode 4.3.3(?) with clang-318.0.61 so in r99503 I changed the port to only blacklist older versions of clang.
comment:19 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
port lint failure addressed in r99782 ... we can just check the version of Xcode.
MacPorts build log