pvk7 / vim

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

Syntax error in src/ops.c after 7.4.242? #216

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Cloning the current Vim repository using:

hg -v clone https://vim.googlecode.com/hg/ vim 
hg -v update default 

./configure --prefix=${DMG_SANDBOX} 
--with-compiledby="swiv@users.sourceforge.net" --enable-gui=carbon 
--enable-multibyte

make -j 2

The error is:

/Developer-old/usr/bin/gcc-4.0 -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC 
-fno-common -fpascal-strings -Wall -Wno-unknown-pragmas -mdynamic-no-pic -pipe 
-I. -Iproto -I/Developer-old/Headers/FlatCarbon -DMACOS_X_UNIX 
-I/Developer/Headers/FlatCarbon  -isysroot /Developer-old/SDKs/MacOSX10.4u.sdk  
     -arch ppc -arch i386 -mmacosx-version-min=10.4 -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=1       -o objects/ops.o ops.c
/Developer-old/usr/bin/gcc-4.0 -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC 
-fno-common -fpascal-strings -Wall -Wno-unknown-pragmas -mdynamic-no-pic -pipe 
-I. -Iproto -I/Developer-old/Headers/FlatCarbon -DMACOS_X_UNIX 
-I/Developer/Headers/FlatCarbon  -isysroot /Developer-old/SDKs/MacOSX10.4u.sdk  
     -arch ppc -arch i386 -mmacosx-version-min=10.4 -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=1       -o objects/option.o option.c
ops.c:6478: error: syntax error before 'str_list'
ops.c: In function 'str_to_reg':
ops.c:6484: error: declaration for parameter 'str_list' but no such parameter
ops.c:6483: error: declaration for parameter 'blocklen' but no such parameter
ops.c:6482: error: declaration for parameter 'len' but no such parameter
ops.c:6481: error: declaration for parameter 'str' but no such parameter
ops.c:6480: error: declaration for parameter 'yank_type' but no such parameter
ops.c:6479: error: declaration for parameter 'y_ptr' but no such parameter
ops.c:6485: error: argument 'str_list' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'blocklen' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'len' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'str' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'yank_type' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'y_ptr' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6478: error: syntax error before 'str_list'
ops.c: In function 'str_to_reg':
ops.c:6484: error: declaration for parameter 'str_list' but no such parameter
ops.c:6483: error: declaration for parameter 'blocklen' but no such parameter
ops.c:6482: error: declaration for parameter 'len' but no such parameter
ops.c:6481: error: declaration for parameter 'str' but no such parameter
ops.c:6480: error: declaration for parameter 'yank_type' but no such parameter
ops.c:6479: error: declaration for parameter 'y_ptr' but no such parameter
ops.c:6485: error: argument 'str_list' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'blocklen' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'len' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'str' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'yank_type' doesn't match prototype
ops.c:116: error: prototype declaration
ops.c:6485: error: argument 'y_ptr' doesn't match prototype
ops.c:116: error: prototype declaration
lipo: can't open input file: 
/var/folders/1y/k5d3373n09l40vl23r7v7kjm0000gn/T//ccv96FUs.out (No such file or 
directory)
make: *** [objects/ops.o] Error 1
make: *** Waiting for unfinished jobs....

The build system is:

osxdevbox:buildvim snowy$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.7.5
BuildVersion:   11G63b

osxdevbox:buildvim snowy$ /Developer-old/usr/bin/gcc-4.0  --version
i686-apple-darwin10-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5494)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

osxdevbox:buildvim snowy$ 

The last successful build of Vim was this one:

snowy@snowcrash(~) $ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr  2 2014 20:02:41)
MacOS X (unix) version
Included patches: 1-242
Compiled by swiv@users.sourceforge.net
Normal version with Carbon GUI.  Features included (+) or not (-):
+acl             -farsi           -mouse_netterm   +syntax
-arabic          +file_in_path    -mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           -mouse_urxvt     -tag_any_white
+browse          +folding         +mouse_xterm     -tcl
+builtin_terms   -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         -gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
+clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    -keymap          +postscript      +virtualedit
+comments        -langmap         +printer         +visual
-conceal         +libcall         -profile         +visualextra
+cryptv          +linebreak       -python          +viminfo
-cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con_gui  -lua             -rightleft       +windows
+diff            +menu            -ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
-emacs_tags      -mouseshape      -sniff           -xsmp
+eval            -mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        -mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Volumes/Ramdisk/release/Vim.app/Contents/Resources/vim
"
Compilation: /Developer-old/usr/bin/gcc-4.0 -c -I. -Iproto -DHAVE_CONFIG_H 
-DFEAT_GUI_MAC -fno-common -fpascal-strings -Wall -Wno-unknown-pragmas 
-mdynamic-no-pic -pipe -I. -Iproto -I/Developer-old/Headers/FlatCarbon 
-DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon  -isysroot 
/Developer-old/SDKs/MacOSX10.4u.sdk       -arch ppc -arch i386 
-mmacosx-version-min=10.4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: /Developer-old/usr/bin/gcc-4.0   
-Wl,-syslibroot,/Developer-old/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 
-mmacosx-version-min=10.4 -o Vim -framework Carbon       -lm -lncurses  -liconv 
-framework Cocoa          
snowy@snowcrash(~) $ 

Original issue reported on code.google.com by goo...@netphile.de on 7 Apr 2014 at 8:55

GoogleCodeExporter commented 9 years ago
It is still broken for 7.4.256  :/    Is there really no solution? I have no 
idea where the syntax error is coming from..

Original comment by goo...@netphile.de on 11 Apr 2014 at 10:49

GoogleCodeExporter commented 9 years ago
You can close this issue.

The solution was to use gcc-4.2 and drop 10.4.x/10.5.x support using the 
10.6.sdk
This will produce a working i386 binary 

Original comment by goo...@netphile.de on 14 May 2014 at 11:56

GoogleCodeExporter commented 9 years ago
Closed on requestors suggestion.

Original comment by brammool...@gmail.com on 14 May 2014 at 2:22