Skip to content
This repository has been archived by the owner. It is now read-only.

brew install vim --with-python3 failed #32587

Closed
vuleetu opened this issue Sep 24, 2014 · 7 comments

Comments

@vuleetu
Copy link

@vuleetu vuleetu commented Sep 24, 2014

I have old version vim installed with brew. Old one does not have python3 support. I do brew unlink vim before brew install vim --with-python3. But always fail with the following error messages:

brew -v install vim --with-python3                                                                                                                                 1 ↵
Homebrew 0.9.5
==> Downloading http://ftp.debian.org/debian/pool/main/v/vim/vim_7.4.430.orig.tar.gz
Already downloaded: /Library/Caches/Homebrew/vim-7.4.430.tar.gz
==> Verifying vim-7.4.430.tar.gz checksum
tar xf /Library/Caches/Homebrew/vim-7.4.430.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/7.4.430_1/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-features=huge --with-compiledby=Homebrew   --enable-python3interp  --enable-perlinterp --enable-rubyinterp --enable-gui=no --without-x
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
.....
.....
==> 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     " srcdir=. sh ./osdef.sh
/usr/bin/perl -e 'unless ( $] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$_ $_\n" }}' > 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       -o objects/os_macosx.o os_macosx.m
creating auto/pathdef.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       -o objects/os_mac_conv.o os_mac_conv.c
cd xxd; CC="/usr/bin/clang" CFLAGS="-F/usr/local/Frameworks -DMACOS_X_UNIX -Os -w -pipe -march=native -mmacosx-version-min=10.9 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" LDFLAGS="-L. -L/usr/local/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names" \
        /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
/usr/bin/clang -F/usr/local/Frameworks -DMACOS_X_UNIX -Os -w -pipe -march=native -mmacosx-version-min=10.9 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -L. -L/usr/local/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -DUNIX -o xxd xxd.c
In file included from os_mac_conv.c:21:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:782:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
        uuid_string_t   ext_jnl_uuid;
        ^
/usr/include/device/device_types.h:87:16: note: 'io_string_t' declared here
typedef char                    io_string_t[512];       
                                ^
In file included from os_mac_conv.c:21:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:784:20: error: use of undeclared identifier 'uuid_string_t'; did you mean 'io_string_t'?
        char            reserved[JIB_RESERVED_SIZE];
                                 ^
/usr/include/hfs/hfs_format.h:775:61: note: expanded from macro 'JIB_RESERVED_SIZE'
#define JIB_RESERVED_SIZE  ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
                                                            ^
/usr/include/device/device_types.h:87:16: note: 'io_string_t' declared here
typedef char                    io_string_t[512];       
                                ^
In file included from os_macosx.m:24:
In file included from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:76:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:12:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:782:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
        uuid_string_t   ext_jnl_uuid;
        ^
/usr/include/device/device_types.h:87:16: note: 'io_string_t' declared here
typedef char                    io_string_t[512];       
                                ^
In file included from os_macosx.m:24:
In file included from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:76:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:12:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:784:20: error: use of undeclared identifier 'uuid_string_t'; did you mean 'io_string_t'?
        char            reserved[JIB_RESERVED_SIZE];
                                 ^
/usr/include/hfs/hfs_format.h:775:61: note: expanded from macro 'JIB_RESERVED_SIZE'
#define JIB_RESERVED_SIZE  ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
                                                            ^
/usr/include/device/device_types.h:87:16: note: 'io_string_t' declared here
typedef char                    io_string_t[512];       
                                ^
2 errors generated.
make[1]: *** [objects/os_mac_conv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
2 errors generated.
make[1]: *** [objects/os_macosx.o] Error 1
make: *** [first] Error 2

# brew config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: a9552bc502aba03dd8a275e1e0b1d5b62b18e7d5
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.9.5-x86_64
Xcode: 5.1.1
CLT: 6.0.0.0.1.1410400753
Clang: 5.1 build 503
X11: N/A
System Ruby: 2.0.0-481
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
@jacknagel

This comment has been minimized.

Copy link
Contributor

@jacknagel jacknagel commented Sep 24, 2014

Please post brew gist-logs vim (see https://github.com/Homebrew/homebrew/wiki/troubleshooting)

@vuleetu

This comment has been minimized.

@jacknagel

This comment has been minimized.

Copy link
Contributor

@jacknagel jacknagel commented Sep 24, 2014

Xcode: 5.1.1
CLT: 6.0.0.0.1.1410400753
Clang: 5.1 build 503

Your Xcode and CLT are out of sync. Since the CLT is newer, you can try sudo xcode-select -switch /Library/Developer/CommandLineTools to activate it (at that point, brew --config should return "Clang: 6.0 build 600"). Otherwise you will want to update Xcode.

@vuleetu

This comment has been minimized.

Copy link
Author

@vuleetu vuleetu commented Sep 24, 2014

Thanks you. Will see if it works after updating Xcode

@vuleetu

This comment has been minimized.

Copy link
Author

@vuleetu vuleetu commented Sep 24, 2014

@jacknagel
still not work after Xcode updated.
https://gist.github.com/7a5fd70f228d95c0e908

@jacknagel

This comment has been minimized.

Copy link
Contributor

@jacknagel jacknagel commented Sep 24, 2014

brew doctor shows a non-Homebrew /usr/local/lib/pkgconfig/uuid.pc, do you also have a uuid.h or uuid/uuid.h in /usr/local/include?

Given error: use of undeclared identifier 'uuid_string_t', it stands to reason there is a uuid.h getting picked up that doesn't define this (whereas the system header does).

@vuleetu

This comment has been minimized.

Copy link
Author

@vuleetu vuleetu commented Sep 25, 2014

It works after removed a duplicated uuid.h under /usr/local/include, thank you.

@vuleetu vuleetu closed this Sep 25, 2014
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.