zhangyuting / vim

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

vim + mzscheme (racket) fails #246

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

1. Download and install racket (OS X 10.9)
2. export PLTHOME=/Applications/Racket\ v6.1
3. sudo cp -r /Applications/Racket\ v6.1/lib/Racket.framework 
/System/Library/Frameworks
4. brew edit vim # add mzscheme to the configuration step
5. brew install vim --verbose

> Output

Error: vim 7.4.335 did not build

I commented the line 854 (MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc")
and the installation looked like it got further, but ultimately fails:

$ grep -i mzs ~/Library/Logs/Homebrew/vim/01.configure
checking --enable-mzschemeinterp argument... yes
checking for mzscheme_base.c... needed
checking if compile and link flags for MzScheme are sane... yes

==> make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make first
mkdir objects
CC="/usr/bin/clang -Iproto -DHAVE_CONFIG_H   -F/usr/local/Frameworks 
-DMACOS_X_UNIX   -DMZ_PRECISE_GC -DINCLUDE_MZSCHEME_BASE 
-I/Users/emilrehnberg/Applications/racketv6.1/include       
-DMZSCHEME_COLLECTS='"/Users/emilrehnberg/Applications/racketv6.1/collects"' 
-I/System/Library/Frameworks/Tcl.framework/Headers  -D_REENTRANT=1  
-D_THREAD_SAFE=1  -D_DARWIN_C_SOURCE=1  " srcdir=. sh ./osdef.sh
/Users/emilrehnberg/Applications/racketv6.1/bin/mzc --c-mods mzscheme_base.c 
++lib scheme/base
creating auto/pathdef.c
/usr/bin/perl -e 'unless ( $] >= 5.005 ) { for (qw(na defgv errgv)) { print 
"#define PL_$_ $_\n" }}' > auto/if_perl.c
/usr/bin/perl /System/Library/Perl/5.16/ExtUtils/xsubpp -prototypes -typemap \
            /System/Library/Perl/5.16/ExtUtils/typemap if_perl.xs >> auto/if_perl.c
/usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H   -F/usr/local/Frameworks 
-DMACOS_X_UNIX  -Os -w -pipe -march=native -mmacosx-version-min=10.9 
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1    -DMZ_PRECISE_GC 
-DINCLUDE_MZSCHEME_BASE -I/Users/emilrehnberg/Applications/racketv6.1/include   

-DMZSCHEME_COLLECTS='"/Users/emilrehnberg/Applications/racketv6.1/collects"' 
-I/System/Library/Frameworks/Tcl.framework/Headers  -D_REENTRANT=1  
-D_THREAD_SAFE=1  -D_DARWIN_C_SOURCE=1   -o objects/os_macosx.o os_macosx.m
/usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H   -F/usr/local/Frameworks 
-DMACOS_X_UNIX  -Os -w -pipe -march=native -mmacosx-version-min=10.9 
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1    -DMZ_PRECISE_GC 
-DINCLUDE_MZSCHEME_BASE -I/Users/emilrehnberg/Applications/racketv6.1/include   

-DMZSCHEME_COLLECTS='"/Users/emilrehnberg/Applications/racketv6.1/collects"' 
-I/System/Library/Frameworks/Tcl.framework/Headers  -D_REENTRANT=1  
-D_THREAD_SAFE=1  -D_DARWIN_C_SOURCE=1   -o objects/os_mac_conv.o os_mac_conv.c
dynamic-require: name is not provided
  name: write-module-bundle
  module: #<resolved-module-path:"/Users/emilrehnberg/Applications/racketv6.1/collects/compiler/private/embed.rkt">
  context...:
   get-sym
   /Users/emilrehnberg/Applications/racketv6.1/collects/racket/promise.rkt:70:15
   /Users/emilrehnberg/Applications/racketv6.1/collects/racket/private/more-scheme.rkt:264:2: call-with-exception-handler
   /Users/emilrehnberg/Applications/racketv6.1/collects/racket/promise.rkt:38:2
   /Users/emilrehnberg/Applications/racketv6.1/collects/racket/lazy-require.rkt:102:6
   /Users/emilrehnberg/Applications/racketv6.1/share/pkgs/mzscheme-lib/compiler/main.rkt: [running body]
make[1]: *** [mzscheme_base.c] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [first] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 2c410607ce3afade28c23c876a519e2d2a41aa1e
CPU: quad-core 64-bit ivybridge
OS X: 10.9.4-x86_64
Xcode: 5.1.1
CLT: 6.0.0.0.1.1405597879
X11: 2.7.6 => /opt/X11
==> ENV
CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.9
CXXFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.9
CPPFLAGS: -F/usr/local/Frameworks
LDFLAGS: -L/usr/local/lib -F/usr/local/Frameworks 
-Wl,-headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.9
PKG_CONFIG_LIBDIR: 
/usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9:/usr/lib/pkgconfi
g
PATH: ... 
CPATH: /usr/local/include

I would appreciate any words of wisdom.
Best,
Emil

Original issue reported on code.google.com by emil.reh...@gmail.com on 6 Aug 2014 at 11:33