edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Build fails if Build Products is not in the project directory #257

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Clone the git repo
2. cd MacVim/src
2. ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp 
--enable-
perlinterp
3. make

What is the expected output? What do you see instead?
Expected: ** BUILD SUCCEEDED **
Got: ** BUILD FAILED **

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 10.5.6
Intel")?
MacVim from source, commit 10ff4c8d6f1dcdf7a9450c1bf2cacc4a48199052 Mac OS X 
10.6.2

Please provide any additional information below.

I had the Place Build Products in: set to Customized location under the 
building tab in the Xcode Preferences (Xcode 3.2.1). Changing this back to: 
Project Directory allowed MacVim to build 
successfully 

Possible Fixes:
Use available Xcode variables to find the build path
Override the Cusomized location in the Project settings: See Build Products 
Path in the project 
inspector

Errors:
=== BUILD NATIVE TARGET MacVim OF PROJECT MacVim WITH THE DEFAULT CONFIGURATION 
(Release) ===
Check dependencies
CompileC /Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMWindowController.o MMWindowController.m normal x86_64 
objective-c 
com.apple.compilers.gcc.4_2
    cd /Users/wmoore/Source/MacVim/src/MacVim
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type 
-Wunused-
variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -fvisibility=hidden 
-mmacosx-version-
min=10.6 
-I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/MacVim.hmap -
F/Users/wmoore/Source/Builds/Release -F/Users/wmoore/Source/MacVim/src/MacVim -
I/Users/wmoore/Source/Builds/Release/include -
I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/DerivedSources/x8
6_64 -
I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/DerivedSources 
-c 
/Users/wmoore/Source/MacVim/src/MacVim/MMWindowController.m -o 
/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMWindowController.o

/Users/wmoore/Source/MacVim/src/MacVim/MMWindowController.m:69:46: error: 
PSMTabBarControl/PSMTabBarControl.h: No such file or directory
CompileC /Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMVimView.o MMVimView.m normal x86_64 objective-c 
com.apple.compilers.gcc.4_2
    cd /Users/wmoore/Source/MacVim/src/MacVim
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type 
-Wunused-
variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -fvisibility=hidden 
-mmacosx-version-
min=10.6 
-I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/MacVim.hmap -
F/Users/wmoore/Source/Builds/Release -F/Users/wmoore/Source/MacVim/src/MacVim -
I/Users/wmoore/Source/Builds/Release/include -
I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/DerivedSources/x8
6_64 -
I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/DerivedSources 
-c 
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m -o 
/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMVimView.o

/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:32:46: error: 
PSMTabBarControl/PSMTabBarControl.h: No such file or directory
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m: In function ‘-[MMVimView 
initWithFrame:vimController:]’:
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:134: warning: receiver 
‘PSMTabBarControl’ is a forward class and corresponding @interface may not 
exist
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:136: warning: type 
'PSMTabBarControl *' does not conform to the 'NSTabViewDelegate' protocol
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:138: warning: no 
‘-setTabView:’ 
method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:138: warning: (Messages 
without a 
matching method signature
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:138: warning: will be 
assumed to 
return ‘id’ and accept
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:138: warning: ‘...’ as 
arguments.)
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:142: warning: no 
‘-setCellMinWidth:’ 
method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:143: warning: no ‘-
setCellMaxWidth:’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:145: warning: no ‘-
setCellOptimumWidth:’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:147: warning: no ‘-
setShowAddTabButton:’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:148: warning: no 
‘-addTabButton’ 
method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:149: warning: no 
‘-addTabButton’ 
method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:150: warning: no ‘-
setAllowsDragBetweenWindows:’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:154: warning: multiple 
methods 
named ‘-setAutoresizingMask:’ found
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Header
s/NSVi
ew.h:192: warning: using ‘-(void)setAutoresizingMask:(NSUInteger)mask’
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/QuartzCore.framework/He
aders/
CALayer.h:680: warning: also found ‘-(void)setAutoresizingMask:(unsigned 
int)_value’
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:163: warning: incompatible 
Objective-C types ‘struct PSMTabBarControl *’, expected ‘struct NSView 
*’ when passing 
argument 1 of ‘addSubview:’ from distinct Objective-C type
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m: In function ‘-[MMVimView 
cleanup]’:
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:263: warning: no 
‘-setTabView:’ 
method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m: In function ‘-[MMVimView 
updateTabsWithData:]’:
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:321: warning: no ‘-
representedTabViewItems’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:351: warning: no ‘-
setToolTip:forTabViewItem:’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m: In function ‘-[MMVimView 
selectTabWithIndex:]’:
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:378: warning: no ‘-
representedTabViewItems’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m: In function 
‘-[MMVimView(Private) 
representedIndexOfTabViewItem:]’:
/Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m:799: warning: no ‘-
representedTabViewItems’ method found
CompileC /Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMFullscreenWindow.o MMFullscreenWindow.m normal x86_64 
objective-c 
com.apple.compilers.gcc.4_2
    cd /Users/wmoore/Source/MacVim/src/MacVim
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type 
-Wunused-
variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -fvisibility=hidden 
-mmacosx-version-
min=10.6 
-I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/MacVim.hmap -
F/Users/wmoore/Source/Builds/Release -F/Users/wmoore/Source/MacVim/src/MacVim -
I/Users/wmoore/Source/Builds/Release/include -
I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/DerivedSources/x8
6_64 -
I/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/DerivedSources 
-c 
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m -o 
/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMFullscreenWindow.o

/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m:33:46: error: 
PSMTabBarControl/PSMTabBarControl.h: No such file or directory
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m: In function ‘-
[MMFullscreenWindow enterFullscreen:]’:
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m:125: warning: no 
‘-
styleName’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m:125: warning: 
(Messages 
without a matching method signature
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m:125: warning: will 
be 
assumed to return ‘id’ and accept
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m:125: warning: 
‘...’ as 
arguments.)
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m:126: warning: no 
‘-
setStyleNamed:’ method found
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m: In function ‘-
[MMFullscreenWindow leaveFullscreen]’:
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m:258: warning: no 
‘-
setStyleNamed:’ method found
PhaseScriptExecution "Make Document Icons" 
/Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Script-
1D1C31F00EFFBFD6003FE9A5.sh
    cd /Users/wmoore/Source/MacVim/src/MacVim
    /bin/sh -c /Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Script-
1D1C31F00EFFBFD6003FE9A5.sh

make[1]: 
`/Users/wmoore/Source/Builds/Release/MacVim.app/Contents/Resources/MacVim-
generic.icns' is up to date.
** BUILD FAILED **

The following build commands failed:
MacVim:
    CompileC /Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMVimView.o /Users/wmoore/Source/MacVim/src/MacVim/MMVimView.m 
normal x86_64 objective-c com.apple.compilers.gcc.4_2
    CompileC /Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMWindowController.o 
/Users/wmoore/Source/MacVim/src/MacVim/MMWindowController.m normal x86_64 
objective-c 
com.apple.compilers.gcc.4_2
    CompileC /Users/wmoore/Source/Builds/MacVim.build/Release/MacVim.build/Objects-
normal/x86_64/MMFullscreenWindow.o 
/Users/wmoore/Source/MacVim/src/MacVim/MMFullscreenWindow.m normal x86_64 
objective-c 
com.apple.compilers.gcc.4_2
(3 failures)

Original issue reported on code.google.com by wjmo...@gmail.com on 18 Feb 2010 at 1:30

GoogleCodeExporter commented 9 years ago
Thanks for the report.  Do you think you can write a patch for this?  (It would 
take me quite some time to fix this 
and I'm guessing not too many people are suffering from it, so I'd appreciate 
some help.)

Original comment by bjorn.winckler@gmail.com on 18 Feb 2010 at 4:21

GoogleCodeExporter commented 9 years ago
I'll have a go at working out the fix

Original comment by wjmo...@gmail.com on 18 Feb 2010 at 8:53

GoogleCodeExporter commented 9 years ago
Well that turned out to be easier than expected. You can grab the commit from 
my repo 
or use the attached patch.

http://github.com/wezm/MacVim/commit/d5bd9a656cc23095e51c528bd81af56a7be8
50db

Original comment by wjmo...@gmail.com on 18 Feb 2010 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks!  One question: does the patch fix the build setting for all build 
configurations (Debug/Release)?  It looks 
like it only affects the Release configuration from the patch (but it is hard 
to tell).

Original comment by bjorn.winckler@gmail.com on 18 Feb 2010 at 9:11

GoogleCodeExporter commented 9 years ago
Ahh excellent point. Revised patch attached

Original comment by wjmo...@gmail.com on 18 Feb 2010 at 9:24

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, I'll merge it.

Original comment by bjorn.winckler@gmail.com on 18 Feb 2010 at 9:34

GoogleCodeExporter commented 9 years ago

Original comment by bjorn.winckler@gmail.com on 1 Mar 2010 at 7:18