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)

main.log (80.8 KB) - added by jk@… 13 years ago.
patch-MacVim-GCC-VERSION.diff (701 bytes) - added by benedikt.meurer@… 13 years ago.
patch-PSMTabBarControl-GCC-VERSION.diff (984 bytes) - added by benedikt.meurer@… 13 years ago.
MacVim-Portfile.diff (625 bytes) - added by benedikt.meurer@… 13 years ago.

Download all attachments as: .zip

Change History (27)

Changed 13 years ago by jk@…

Attachment: main.log added

comment:1 Changed 13 years ago by jk@…

Cc: jk@… added

Cc Me!

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: newassigned

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 failureMacVim @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:7 Changed 13 years ago by juliushuang@…

Cc: juliushuang@… added

Cc Me!

comment:8 Changed 13 years ago by guygurari@…

Cc: guygurari@… added

Cc Me!

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@…

Changed 13 years ago by benedikt.meurer@…

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:11 Changed 13 years ago by benedikt.meurer@…

Cc: benedikt.meurer@… added

Cc Me!

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: assignedclosed

Thank you for the patch!

Committed in r86143 in addition with switching to llvm-gcc-4.2 if clang is selected.

comment:14 Changed 13 years ago by juliushuang@…

Cc: juliushuang@… removed

Cc Me!

comment:15 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: closedreopened

Reopening. We need to figure out *why* it's failing with clang and fix/report the underlying issue.

comment:16 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Does it still happen with the clang in XCode 4.3?

comment:17 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: jeremyhu@… added

Cc Me!

comment:18 Changed 12 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:19 Changed 12 years ago by skymoo (Adam Mercer)

MacVim @7.3.snapshot64_0 builds without issue using Xcode-4.3.x for me.

comment:20 Changed 12 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 Changed 12 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 in reply to:  21 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Summary: MacVim @7.3.snapshot61 build failure with Xcode 4.2 Preview 6MacVim 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: reopenedclosed

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.

Note: See TracTickets for help on using tickets.