{"action":"created","issue":{"url":"https://api.github.com/repos/vasi/pixz/issues/47","labels_url":"https://api.github.com/repos/vasi/pixz/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/vasi/pixz/issues/47/comments","events_url":"https://api.github.com/repos/vasi/pixz/issues/47/events","html_url":"https://github.com/vasi/pixz/issues/47","id":105267009,"number":47,"title":"pixz 1.0.3 build failure","user":{"login":"ZeroChaos-","id":1670905,"avatar_url":"https://avatars.githubusercontent.com/u/1670905?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeroChaos-","html_url":"https://github.com/ZeroChaos-","followers_url":"https://api.github.com/users/ZeroChaos-/followers","following_url":"https://api.github.com/users/ZeroChaos-/following{/other_user}","gists_url":"https://api.github.com/users/ZeroChaos-/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeroChaos-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeroChaos-/subscriptions","organizations_url":"https://api.github.com/users/ZeroChaos-/orgs","repos_url":"https://api.github.com/users/ZeroChaos-/repos","events_url":"https://api.github.com/users/ZeroChaos-/events{/privacy}","received_events_url":"https://api.github.com/users/ZeroChaos-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T21:02:31Z","updated_at":"2015-09-07T21:12:31Z","closed_at":null,"body":"In the future, I'm happy to test things before tags too ;-)\r\n\r\nBuild failure on amd64\r\n\r\n>>> Unpacking source...\r\n>>> Unpacking v1.0.3.tar.gz to /var/tmp/portage/app-arch/pixz-1.0.3/work\r\n>>> Source unpacked in /var/tmp/portage/app-arch/pixz-1.0.3/work\r\n>>> Preparing source in /var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3 ...\r\n * Running eautoreconf in '/var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3' ...\r\n * Running aclocal -I m4 ...                                                                                                                                                           [ ok ]\r\n * Running autoconf --force ...                                                                                                                                                        [ ok ]\r\n * Running autoheader ...                                                                                                                                                              [ ok ]\r\n * Running automake --add-missing --copy --foreign --force-missing ...                                                                                                                 [ ok ]\r\n * Running elibtoolize in: pixz-1.0.3/\r\n>>> Source prepared.\r\n>>> Configuring source in /var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3 ...\r\n * econf: updating pixz-1.0.3/config.sub with /usr/share/gnuconfig/config.sub\r\n * econf: updating pixz-1.0.3/config.guess with /usr/share/gnuconfig/config.guess\r\n./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64\r\nconfigure: loading site script /usr/share/config.site\r\nchecking for a BSD-compatible install... /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... /bin/mkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking for style of include used by make... GNU\r\nchecking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-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 x86_64-pc-linux-gnu-gcc accepts -g... yes\r\nchecking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed\r\nchecking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes\r\nchecking dependency style of x86_64-pc-linux-gnu-gcc... none\r\nchecking for x86_64-pc-linux-gnu-gcc option to accept ISO C99... -std=gnu99\r\nchecking for x86_64-pc-linux-gnu-gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99\r\nchecking for a2x... a2x\r\nchecking for ceil in -lm... yes\r\nchecking build system type... x86_64-pc-linux-gnu\r\nchecking host system type... x86_64-pc-linux-gnu\r\nchecking if compiler needs -Werror to reject unknown flags... no\r\nchecking for the pthreads library -lpthreads... no\r\nchecking whether pthreads work without any flags... no\r\nchecking whether pthreads work with -Kthread... no\r\nchecking whether pthreads work with -kthread... no\r\nchecking for the pthreads library -llthread... no\r\nchecking whether pthreads work with -pthread... yes\r\nchecking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE\r\nchecking if more special flags are required for pthreads... no\r\nchecking for PTHREAD_PRIO_INHERIT... yes\r\nchecking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config\r\nchecking pkg-config is at least version 0.9.0... yes\r\nchecking for LIBARCHIVE... yes\r\nchecking for LZMA... yes\r\nchecking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -std=gnu99 -E\r\nchecking for grep that handles long lines and -e... /bin/grep\r\nchecking for egrep... /bin/grep -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 fcntl.h usability... yes\r\nchecking fcntl.h presence... yes\r\nchecking for fcntl.h... yes\r\nchecking for stdint.h... (cached) yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking for string.h... (cached) yes\r\nchecking for unistd.h... (cached) yes\r\nchecking for off_t... yes\r\nchecking for size_t... yes\r\nchecking for ssize_t... yes\r\nchecking for uint16_t... yes\r\nchecking for uint32_t... yes\r\nchecking for uint64_t... yes\r\nchecking for uint8_t... yes\r\nchecking for special C compiler options needed for large files... no\r\nchecking for _FILE_OFFSET_BITS value needed for large files... no\r\nchecking for stdlib.h... (cached) yes\r\nchecking for GNU libc compatible malloc... yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking for GNU libc compatible realloc... yes\r\nchecking for working strtod... yes\r\nchecking for memchr... yes\r\nchecking for memmove... yes\r\nchecking for memset... yes\r\nchecking for strerror... yes\r\nchecking for strtol... 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/Makefile\r\nconfig.status: creating test/Makefile\r\nconfig.status: creating config.h\r\nconfig.status: executing depfiles commands\r\n>>> Source configured.\r\n>>> Compiling source in /var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3 ...\r\nmake -j1 CC=x86_64-pc-linux-gnu-gcc OPT= \r\nmake  all-recursive\r\nmake[1]: Entering directory '/var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3'\r\nMaking all in src\r\nmake[2]: Entering directory '/var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3/src'\r\nx86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -pthread -Wall -Wno-unknown-pragmas -Os -mtune=nocona -pipe -frecord-gcc-switches -march=native -c -o pixz-common.o `test -f 'common.c' || echo './'`common.c\r\ncommon.c: In function ���dump_file_index���:\r\ncommon.c:63:5: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n     for (file_index_t *f = gFileIndex; f != NULL; f = f->next) {\r\n     ^\r\ncommon.c:63:5: note: use option -std=c99 or -std=gnu99 to compile your code\r\ncommon.c: In function ���free_file_index���:\r\ncommon.c:75:5: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n     for (file_index_t *f = gFileIndex; f != NULL; ) {\r\n     ^\r\ncommon.c: In function ���stream_padding���:\r\ncommon.c:278:2: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n  for (off_t pad = 0; true; pad += sizeof(uint32_t)) {\r\n  ^\r\ncommon.c: In function ���stream_footer���:\r\ncommon.c:291:2: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n  for (int i = sizeof(ftr) / sizeof(uint32_t) - 1; i >= 0; --i) {\r\n  ^\r\ncommon.c: In function ���queue_free���:\r\ncommon.c:375:5: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n     for (queue_item_t *i = q->first; i; ) {\r\n     ^\r\ncommon.c: In function ���pipeline_create���:\r\ncommon.c:478:5: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n     for (size_t i = 0; i < qsize; ++i) {\r\n     ^\r\ncommon.c:485:17: error: redefinition of ���i���\r\n     for (size_t i = 0; i < gPLProcessCount; ++i) {\r\n                 ^\r\ncommon.c:478:17: note: previous definition of ���i��� was here\r\n     for (size_t i = 0; i < qsize; ++i) {\r\n                 ^\r\ncommon.c:485:5: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n     for (size_t i = 0; i < gPLProcessCount; ++i) {\r\n     ^\r\ncommon.c: In function ���pipeline_stop���:\r\ncommon.c:522:5: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n     for (size_t i = 0; i < gPLProcessCount; ++i)\r\n     ^\r\ncommon.c:524:17: error: redefinition of ���i���\r\n     for (size_t i = 0; i < gPLProcessCount; ++i) {\r\n                 ^\r\ncommon.c:522:17: note: previous definition of ���i��� was here\r\n     for (size_t i = 0; i < gPLProcessCount; ++i)\r\n                 ^\r\ncommon.c:524:5: error: ���for��� loop initial declarations are only allowed in C99 mode\r\n     for (size_t i = 0; i < gPLProcessCount; ++i) {\r\n     ^\r\nMakefile:441: recipe for target 'pixz-common.o' failed\r\nmake[2]: *** [pixz-common.o] Error 1\r\nmake[2]: Leaving directory '/var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3/src'\r\nMakefile:376: recipe for target 'all-recursive' failed\r\nmake[1]: *** [all-recursive] Error 1\r\nmake[1]: Leaving directory '/var/tmp/portage/app-arch/pixz-1.0.3/work/pixz-1.0.3'\r\nMakefile:317: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n"},"comment":{"url":"https://api.github.com/repos/vasi/pixz/issues/comments/138377558","html_url":"https://github.com/vasi/pixz/issues/47#issuecomment-138377558","issue_url":"https://api.github.com/repos/vasi/pixz/issues/47","id":138377558,"user":{"login":"ZeroChaos-","id":1670905,"avatar_url":"https://avatars.githubusercontent.com/u/1670905?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeroChaos-","html_url":"https://github.com/ZeroChaos-","followers_url":"https://api.github.com/users/ZeroChaos-/followers","following_url":"https://api.github.com/users/ZeroChaos-/following{/other_user}","gists_url":"https://api.github.com/users/ZeroChaos-/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeroChaos-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeroChaos-/subscriptions","organizations_url":"https://api.github.com/users/ZeroChaos-/orgs","repos_url":"https://api.github.com/users/ZeroChaos-/repos","events_url":"https://api.github.com/users/ZeroChaos-/events{/privacy}","received_events_url":"https://api.github.com/users/ZeroChaos-/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T21:12:31Z","updated_at":"2015-09-07T21:12:31Z","body":"looks like CC is being defined with -std=gnu99 when that should have been added to cflags"}}