Opened 13 years ago
Closed 12 years ago
#30985 closed defect (fixed)
MacVim exits immediately when built with clang
Reported by: | jk@… | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.1 |
Keywords: | Cc: | guygurari@…, benedikt.meurer@…, jeremyhu (Jeremy Huddleston Sequoia), skymoo (Adam Mercer) | |
Port: | MacVim |
Description
Fails to build on OS X Lion 10.7.1 (x86_64) with XCode 4.2 Preview 6
Attachments (4)
Change History (27)
Changed 13 years ago by jk@…
comment:1 Changed 13 years ago by jk@…
Cc: | jk@… added |
---|
comment:2 Changed 13 years ago by jk@…
Sorry, forgot to CC maintainer and can't change it afterwards
comment:3 Changed 13 years ago by mf2k (Frank Schima)
Cc: | jk@… removed |
---|---|
Owner: | changed from macports-tickets@… to raimue@… |
comment:4 Changed 13 years ago by raimue (Rainer Müller)
Status: | new → assigned |
---|
comment:5 Changed 13 years ago by raimue (Rainer Müller)
I do not have access to Xcode 4.2 pre-releases and so far it should be considered unsupported as it is unreleased software.
I guess the upstream Xcode project is just not yet ready for this as it assumes gcc-4.2 to be available.
comment:6 Changed 13 years ago by raimue (Rainer Müller)
Summary: | MacVim @7.3.snapshot61 build failure → MacVim @7.3.snapshot61 build failure with Xcode 4.2 Preview 6 |
---|
I tried to build MacVim using clang but unfortunately I wasn't able to open any vim window with this build. I tried the troubleshooting instructions but couldn't find anything helpful in the logs. It just doesn't open any window.
comment:9 Changed 13 years ago by guygurari@…
Same problem occurs on Lion 10.7.2 with Xcode 4.2 (released version).
Changed 13 years ago by benedikt.meurer@…
Attachment: | patch-MacVim-GCC-VERSION.diff added |
---|
Changed 13 years ago by benedikt.meurer@…
Attachment: | patch-PSMTabBarControl-GCC-VERSION.diff added |
---|
Changed 13 years ago by benedikt.meurer@…
Attachment: | MacVim-Portfile.diff added |
---|
comment:10 Changed 13 years ago by benedikt.meurer@…
Attached Portfile diff and patches to fix the build issues with missing GCC 4.2 (based on upstream fix at https://github.com/b4winckler/macvim/commit/54b2b3cf5e39b12181d2ede9cc49f5601a5ffaba).
The problem with clang version not opening any windows remains, tho.
comment:12 Changed 13 years ago by benedikt.meurer@…
BTW. it works using llvm-gcc (and my patches), i.e.:
sudo port install MacVim configure.compiler=llvm-gcc-4.2
comment:13 Changed 13 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thank you for the patch!
Committed in r86143 in addition with switching to llvm-gcc-4.2 if clang is selected.
comment:15 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Reopening. We need to figure out *why* it's failing with clang and fix/report the underlying issue.
comment:16 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Does it still happen with the clang in XCode 4.3?
comment:19 Changed 13 years ago by skymoo (Adam Mercer)
MacVim @7.3.snapshot64_0 builds without issue using Xcode-4.3.x for me.
comment:20 Changed 13 years ago by skymoo (Adam Mercer)
Sorry, just to clarify, I commented out
if {${configure.compiler} == "clang"} { configure.compiler llvm-gcc-4.2 }
from the Portfile and it built fine using clang.
comment:21 follow-up: 22 Changed 13 years ago by raimue (Rainer Müller)
The compilation has always been working but the resulting MacVim does not work correctly in a way where it would not open new windows. Upstream also compiles using llvm-gcc. I just tried with Xcode 4.3 and although it builds, it still does not work correctly.
Upstream report: http://code.google.com/p/macvim/issues/detail?id=384
comment:22 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Summary: | MacVim @7.3.snapshot61 build failure with Xcode 4.2 Preview 6 → MacVim exits immediately when built with clang |
---|
Replying to raimue@…:
The compilation has always been working
Not according to the title nor the contents of this radar ;)
Unfortunately upstream doesn't really give much info... hmm...
comment:23 Changed 12 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
I just compiled snapshot 64 of MacVim with clang from Xcode 4.4 on Mac OS X 10.7 Lion. The build went fine and the resulting binary can open new windows just fine.
MacVim is now being built with clang when using Xcode >= 4.4 as of r95886.
Cc Me!