Hello,

After 7.4.242 I am unable to build a universal vim binary :(
--> http://sourceforge.net/projects/macosxvim/

An issue was opened on the issue tracker but no reply yet:
https://code.google.com/p/vim/issues/detail?id=216&sort=-id  

For me, that is a showstopper since I am unable to provide a newer build that 
7.3.242 :(
The idea behind the build is to provide a universal binary which should run
from 10.4.x up to 10.9.x).

To satisfy this the build environment needs to be Xcode 3.x with the latest
available gcc for this XCode release (and MacOSX 10.7.x as this was the
earliest MacOSX release Parallels allowed me (legally) to virtualise).
(The *10.4u.sdk is, as far as I know, only available in the XCode 3.x 
distribution)

So the build machine is a 10.7.5 with a copy of the XCode 3.x /Developer 
(renamed to /Developer-old)
This build setup has been used for quite some time to compile previous releases 
now so I believe this mot to be the fault here.

What I am actually doing:

 - building docutils
 - building mecurial 
 - using hg to check out the latest vim


The compilation step:


unset CFLAGS
unset CPPFLAGS
unset LDFLAGS
unset CC

export DEVELOPER_DIR="/Developer-old"
export       CC="$DEVELOPER_DIR/usr/bin/gcc-4.0"
export   CFLAGS="-isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch ppc -arch 
i386 -mmacosx-version-min=10.4"
export  LDFLAGS="-Wl,-syslibroot,$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch ppc 
-arch i386 -mmacosx-version-min=10.4"
export CPPFLAGS="-I$DEVELOPER_DIR/Headers/FlatCarbon"

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

make

----
If I used gcc-4.2 things blow up straight away (but always have done, but just
to illustrate why using gcc-4.2 is not an option)


[...]
config.status: creating auto/config.h
mkdir objects
CC="/Developer-old/usr/bin/gcc-4.2 -Iproto -DHAVE_CONFIG_H   
-I/Developer-old/Headers/FlatCarbon -DMACOS_X_UNIX  -I/usr/X11/include    " 
srcdir=. sh ./osdef.sh
/Developer-old/usr/bin/gcc-4.2 -c -I. -Iproto -DHAVE_CONFIG_H   
-I/Developer-old/Headers/FlatCarbon -DMACOS_X_UNIX  -isysroot 
/Developer-old/SDKs/MacOSX10.4u.sdk       -arch ppc -arch i386 
-mmacosx-version-min=10.4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1   
-I/usr/X11/include     -o objects/buffer.o buffer.c
In file included from 
/Developer-old/SDKs/MacOSX10.4u.sdk/usr/include/curses.h:103,
                 from os_mac.h:55,
                 from vim.h:345,
                 from buffer.c:28:
/Developer-old/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: 
No such file or directory
In file included from 
/Developer-old/SDKs/MacOSX10.4u.sdk/usr/include/curses.h:103,
                 from os_mac.h:55,
                 from vim.h:345,
                 from buffer.c:28:
/Developer-old/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: 
No such file or directory
lipo: can't figure out the architecture type of: 
/var/folders/1y/k5d3373n09l40vl23r7v7kjm0000gn/T//cciHNOwe.out
make: *** [objects/buffer.o] Error 1



So when using the gcc-4.0 things "suddenly" blow up (at least for every release 
after 7.4.242):

/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
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//cc1D2eFI.out (No such file or 
directory)
make: *** [objects/ops.o] Error 1


Does anyone have an idea as to why gcc things there is a syntax error?
And if so, how can I fix it? 


Cu, Nicholas

-- 
-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_mac+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to