{"action":"created","issue":{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/85","repository_url":"https://api.github.com/repos/alexeyxo/protobuf-swift","labels_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/85/comments","events_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/85/events","html_url":"https://github.com/alexeyxo/protobuf-swift/issues/85","id":106898692,"number":85,"title":"Errors while trying to build protobuf-swift 2.2","user":{"login":"vyshane","id":305692,"avatar_url":"https://avatars.githubusercontent.com/u/305692?v=3","gravatar_id":"","url":"https://api.github.com/users/vyshane","html_url":"https://github.com/vyshane","followers_url":"https://api.github.com/users/vyshane/followers","following_url":"https://api.github.com/users/vyshane/following{/other_user}","gists_url":"https://api.github.com/users/vyshane/gists{/gist_id}","starred_url":"https://api.github.com/users/vyshane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyshane/subscriptions","organizations_url":"https://api.github.com/users/vyshane/orgs","repos_url":"https://api.github.com/users/vyshane/repos","events_url":"https://api.github.com/users/vyshane/events{/privacy}","received_events_url":"https://api.github.com/users/vyshane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-09-17T02:16:20Z","updated_at":"2016-09-14T07:08:13Z","closed_at":"2015-09-17T08:20:05Z","body":"I'm trying to install the Protobuf compiler but I am getting build errors.\r\n\r\nFirst I tried to install via Homebrew:\r\n\r\n```sh\r\nshane@rmbp > protoc --version\r\nlibprotoc 3.0.0\r\nshane@rmbp > brew install protobuf-swift\r\n==> Downloading https://github.com/alexeyxo/protobuf-swift/archive/2.2.tar.gz\r\nAlready downloaded: /Library/Caches/Homebrew/protobuf-swift-2.2.tar.gz\r\n==> ./autogen.sh\r\n==> ./configure --prefix=/usr/local/Cellar/protobuf-swift/2.2\r\n==> make\r\n ^\r\n3 errors generated.\r\nmake[2]: *** [swift_message_field.o] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all] Error 2\r\n```\r\n\r\nNext I checked out tag 2.2 from the repository and tried to build it:\r\n\r\n```sh\r\nshane@rmbp > git checkout tags/2.2\r\nHEAD is now at 4cfef1b... WatchOS deployment target\r\nshane@rmbp > git status\r\nHEAD detached at 2.2\r\nnothing to commit, working directory clean\r\nshane@rmbp > ./scripts/build.sh &> ~/Desktop/build.log\r\n```\r\n\r\nHere are the contents of build.log:\r\n\r\n```\r\n+ ./autogen.sh\r\n+ mkdir -p m4\r\n+ autoreconf -f -i -Wall\r\nglibtoolize: putting auxiliary files in '.'.\r\nglibtoolize: copying file './ltmain.sh'\r\nglibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.\r\nglibtoolize: copying file 'm4/libtool.m4'\r\nglibtoolize: copying file 'm4/ltoptions.m4'\r\nglibtoolize: copying file 'm4/ltsugar.m4'\r\nglibtoolize: copying file 'm4/ltversion.m4'\r\nglibtoolize: copying file 'm4/lt~obsolete.m4'\r\nconfigure.ac:13: installing './compile'\r\nconfigure.ac:10: installing './missing'\r\nsrc/compiler/Makefile.am: installing './depcomp'\r\n+ rm -rf autom4te.cache configure.ac~ config.h.in~\r\n+ ./configure CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib\r\nchecking build system type... x86_64-apple-darwin15.0.0\r\nchecking host system type... x86_64-apple-darwin15.0.0\r\nchecking target system type... x86_64-apple-darwin15.0.0\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... ./install-sh -c -d\r\nchecking for gawk... no\r\nchecking for mawk... no\r\nchecking for nawk... no\r\nchecking for awk... awk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether gcc understands -c and -o together... yes\r\nchecking for style of include used by make... GNU\r\nchecking dependency style of gcc... gcc3\r\nchecking for g++... g++\r\nchecking whether we are using the GNU C++ compiler... yes\r\nchecking whether g++ accepts -g... yes\r\nchecking dependency style of g++... gcc3\r\nchecking C++ compiler flags...... use user-supplied: -I/usr/local/include\r\nconfigure: WARNING: Libtool does not cope well with whitespace in `pwd`\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... /usr/bin/sed\r\nchecking for grep that handles long lines and -e... /usr/bin/grep\r\nchecking for egrep... /usr/bin/grep -E\r\nchecking for fgrep... /usr/bin/grep -F\r\nchecking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\r\nchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm\r\nchecking the name lister (/usr/bin/nm) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 196608\r\nchecking how to convert x86_64-apple-darwin15.0.0 file names to x86_64-apple-darwin15.0.0 format... func_convert_file_noop\r\nchecking how to convert x86_64-apple-darwin15.0.0 file names to toolchain format... func_convert_file_noop\r\nchecking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r\r\nchecking for objdump... no\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... no\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/bin/nm output from gcc object... ok\r\nchecking for sysroot... no\r\nchecking for a working dd... /bin/dd\r\nchecking how to truncate binary pipes... /bin/dd bs=4096 count=1\r\nchecking for mt... no\r\nchecking if : is a manifest tool... no\r\nchecking for dsymutil... dsymutil\r\nchecking for nmedit... nmedit\r\nchecking for lipo... lipo\r\nchecking for otool... otool\r\nchecking for otool64... no\r\nchecking for -single_module linker flag... yes\r\nchecking for -exported_symbols_list linker flag... yes\r\nchecking for -force_load linker flag... yes\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if gcc supports -fno-rtti -fno-exceptions... yes\r\nchecking for gcc option to produce PIC... -fno-common -DPIC\r\nchecking if gcc PIC flag -fno-common -DPIC works... yes\r\nchecking if gcc static flag -static works... no\r\nchecking if gcc supports -c -o file.o... yes\r\nchecking if gcc supports -c -o file.o... (cached) yes\r\nchecking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... darwin15.0.0 dyld\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... yes\r\nchecking how to run the C++ preprocessor... g++ -E\r\nchecking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\r\nchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no\r\nchecking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking for g++ option to produce PIC... -fno-common -DPIC\r\nchecking if g++ PIC flag -fno-common -DPIC works... yes\r\nchecking if g++ static flag -static works... no\r\nchecking if g++ supports -c -o file.o... yes\r\nchecking if g++ supports -c -o file.o... (cached) yes\r\nchecking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... darwin15.0.0 dyld\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking for ANSI C header files... (cached) yes\r\nchecking fcntl.h usability... yes\r\nchecking fcntl.h presence... yes\r\nchecking for fcntl.h... yes\r\nchecking for inttypes.h... (cached) yes\r\nchecking limits.h usability... yes\r\nchecking limits.h presence... yes\r\nchecking for limits.h... yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking for unistd.h... (cached) yes\r\nchecking for working memcmp... yes\r\nchecking for working strtod... yes\r\nchecking for ftruncate... yes\r\nchecking for memset... yes\r\nchecking for mkdir... yes\r\nchecking for strchr... yes\r\nchecking for strerror... yes\r\nchecking for strtol... yes\r\nchecking google/protobuf/stubs/common.h usability... yes\r\nchecking google/protobuf/stubs/common.h presence... no\r\nconfigure: WARNING: google/protobuf/stubs/common.h: accepted by the compiler, rejected by the preprocessor!\r\nconfigure: WARNING: google/protobuf/stubs/common.h: proceeding with the compiler's result\r\nchecking for google/protobuf/stubs/common.h... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating src/compiler/Makefile\r\nconfig.status: creating config.h\r\nconfig.status: config.h is unchanged\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\n+ make clean\r\nMaking clean in src/compiler\r\n rm -f protoc-gen-swift\r\nrm -rf .libs _libs\r\nrm -f *.o\r\nrm -f google/protobuf/*.o\r\nrm -f *.lo\r\nrm -rf .libs _libs\r\nrm -f *.lo\r\n+ make -j8\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive\r\nMaking all in src/compiler\r\ndepbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo swift_enum_field.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_enum_field.o -MD -MP -MF $depbase.Tpo -c -o swift_enum_field.o swift_enum_field.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo swift_map_field.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_map_field.o -MD -MP -MF $depbase.Tpo -c -o swift_map_field.o swift_map_field.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo swift_file.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_file.o -MD -MP -MF $depbase.Tpo -c -o swift_file.o swift_file.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo swift_message_field.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_message_field.o -MD -MP -MF $depbase.Tpo -c -o swift_message_field.o swift_message_field.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo swift_oneof.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_oneof.o -MD -MP -MF $depbase.Tpo -c -o swift_oneof.o swift_oneof.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo swift_enum.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_enum.o -MD -MP -MF $depbase.Tpo -c -o swift_enum.o swift_enum.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo swift_generator.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_generator.o -MD -MP -MF $depbase.Tpo -c -o swift_generator.o swift_generator.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\nIn file included from swift_generator.cc:22:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\nIn file included from swift_file.cc:23:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\nIn file included from swift_map_field.cc:25:\r\nIn file included from /usr/local/include/google/protobuf/wire_format.h:44:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\nIn file included from swift_oneof.cc:24:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\nIn file included from swift_enum.cc:24:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\nIn file included from swift_message_field.cc:24:\r\nIn file included from /usr/local/include/google/protobuf/wire_format.h:44:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\nIn file included from swift_enum_field.cc:25:\r\nIn file included from /usr/local/include/google/protobuf/wire_format.h:44:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\ndepbase=`echo swift_primitive_field.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n\tg++ -DHAVE_CONFIG_H -I. -I../..     -I/usr/local/include -MT swift_primitive_field.o -MD -MP -MF $depbase.Tpo -c -o swift_primitive_field.o swift_primitive_field.cc &&\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n3 errors generated.\r\nmake[2]: *** [swift_oneof.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\n3 errors generated.\r\nmake[2]: *** [swift_enum.o] Error 1\r\n3 errors generated.\r\nmake[2]: *** [swift_generator.o] Error 1\r\n3 errors generated.\r\n3 errors generated.\r\nmake[2]: *** [swift_enum_field.o] Error 1\r\nmake[2]: *** [swift_message_field.o] Error 1\r\n3 errors generated.\r\nmake[2]: *** [swift_map_field.o] Error 1\r\nIn file included from swift_primitive_field.cc:25:\r\nIn file included from /usr/local/include/google/protobuf/wire_format.h:44:\r\n./google/protobuf/descriptor.pb.h:17:2: error: This file was generated by an older version of protoc which is\r\n#error This file was generated by an older version of protoc which is\r\n ^\r\n./google/protobuf/descriptor.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please\r\n#error incompatible with your Protocol Buffer headers.  Please\r\n ^\r\n./google/protobuf/descriptor.pb.h:19:2: error: regenerate this file with a newer version of protoc.\r\n#error regenerate this file with a newer version of protoc.\r\n ^\r\n3 errors generated.\r\nmake[2]: *** [swift_file.o] Error 1\r\n3 errors generated.\r\nmake[2]: *** [swift_primitive_field.o] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all] Error 2\r\n```"},"comment":{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/comments/246925162","html_url":"https://github.com/alexeyxo/protobuf-swift/issues/85#issuecomment-246925162","issue_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/85","id":246925162,"user":{"login":"550872569","id":16500810,"avatar_url":"https://avatars.githubusercontent.com/u/16500810?v=3","gravatar_id":"","url":"https://api.github.com/users/550872569","html_url":"https://github.com/550872569","followers_url":"https://api.github.com/users/550872569/followers","following_url":"https://api.github.com/users/550872569/following{/other_user}","gists_url":"https://api.github.com/users/550872569/gists{/gist_id}","starred_url":"https://api.github.com/users/550872569/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/550872569/subscriptions","organizations_url":"https://api.github.com/users/550872569/orgs","repos_url":"https://api.github.com/users/550872569/repos","events_url":"https://api.github.com/users/550872569/events{/privacy}","received_events_url":"https://api.github.com/users/550872569/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T07:08:13Z","updated_at":"2016-09-14T07:08:13Z","body":"help me,please"}}
{"actor":{"display_login":"550872569"}}