{"action":"created","issue":{"url":"https://api.github.com/repos/rdp/ffmpeg-windows-build-helpers/issues/31","repository_url":"https://api.github.com/repos/rdp/ffmpeg-windows-build-helpers","labels_url":"https://api.github.com/repos/rdp/ffmpeg-windows-build-helpers/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/rdp/ffmpeg-windows-build-helpers/issues/31/comments","events_url":"https://api.github.com/repos/rdp/ffmpeg-windows-build-helpers/issues/31/events","html_url":"https://github.com/rdp/ffmpeg-windows-build-helpers/issues/31","id":27158492,"number":31,"title":"binutils build fails on Ubuntu 13.10","user":{"login":"gcsx","id":6615485,"avatar_url":"https://avatars.githubusercontent.com/u/6615485?v=3","gravatar_id":"","url":"https://api.github.com/users/gcsx","html_url":"https://github.com/gcsx","followers_url":"https://api.github.com/users/gcsx/followers","following_url":"https://api.github.com/users/gcsx/following{/other_user}","gists_url":"https://api.github.com/users/gcsx/gists{/gist_id}","starred_url":"https://api.github.com/users/gcsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcsx/subscriptions","organizations_url":"https://api.github.com/users/gcsx/orgs","repos_url":"https://api.github.com/users/gcsx/repos","events_url":"https://api.github.com/users/gcsx/events{/privacy}","received_events_url":"https://api.github.com/users/gcsx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2014-02-07T18:06:25Z","updated_at":"2016-04-18T23:00:17Z","closed_at":"2014-03-12T22:59:17Z","body":"Hello,\r\n\r\nI'm trying to use a 100% fresh install of Ubuntu 13.10 hosted in VMware Workstation 10 on Windows 7 x64 to compile a x64 ffmpeg using your script but the compilation of binutils fails.\r\n\r\nHere is the only informations I have : \r\n\r\ngcc -DHAVE_CONFIG_H -I. -I../../../source/binutils-2.24.51/binutils  -I. -I../../../source/binutils-2.24.51/binutils -I../bfd -I../../../source/binutils-2.24.51/binutils/../bfd -I../../../source/binutils-2.24.51/binutils/../include -DLOCALEDIR=\"\\\"/home/gc/sandbox/mingw-w64-x86_64/share/locale\\\"\" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bucomm.o -MD -MP -MF .deps/bucomm.Tpo -c -o bucomm.o ../../../source/binutils-2.24.51/binutils/bucomm.c\r\n../../../source/binutils-2.24.51/binutils/bucomm.c:130:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘VPARAMS’\r\n fatal VPARAMS ((const char *format, ...))\r\n       ^\r\n../../../source/binutils-2.24.51/binutils/bucomm.c:141:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘VPARAMS’\r\n non_fatal VPARAMS ((const char *format, ...))\r\n           ^\r\nThere is no build-log.txt file anywhere.\r\nThe problem repeats after complete deletion of the sandbox.\r\n\r\nShould I try another distrib? Which one did you used?\r\n\r\nI'm downloading your precompiled toolchain. I'll update this as soon as I tried."},"comment":{"url":"https://api.github.com/repos/rdp/ffmpeg-windows-build-helpers/issues/comments/211621069","html_url":"https://github.com/rdp/ffmpeg-windows-build-helpers/issues/31#issuecomment-211621069","issue_url":"https://api.github.com/repos/rdp/ffmpeg-windows-build-helpers/issues/31","id":211621069,"user":{"login":"Jan-E","id":1757825,"avatar_url":"https://avatars.githubusercontent.com/u/1757825?v=3","gravatar_id":"","url":"https://api.github.com/users/Jan-E","html_url":"https://github.com/Jan-E","followers_url":"https://api.github.com/users/Jan-E/followers","following_url":"https://api.github.com/users/Jan-E/following{/other_user}","gists_url":"https://api.github.com/users/Jan-E/gists{/gist_id}","starred_url":"https://api.github.com/users/Jan-E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jan-E/subscriptions","organizations_url":"https://api.github.com/users/Jan-E/orgs","repos_url":"https://api.github.com/users/Jan-E/repos","events_url":"https://api.github.com/users/Jan-E/events{/privacy}","received_events_url":"https://api.github.com/users/Jan-E/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T23:00:17Z","updated_at":"2016-04-18T23:00:17Z","body":"What happens if you rm -rf the x264 directory now and try to rebuild x264? I ran into the same errors when I tried this. I solved it by leaving out the --extra-cflags=-DPTW32_STATIC_LIB in the configure line.\r\n\r\nThere had been a change in the configure options for x264:\r\nhttps://mailman.videolan.org/pipermail/x264-devel/2016-January/011538.html\r\n[x264-devel] windows: Use native threads by default\r\n\r\nAfter leaving out the --extra-cflags=-DPTW32_STATIC_LIB this is the result in config.h:\r\n\r\n#define HAVE_WIN32THREAD 1\r\n#define HAVE_THREAD 1\r\n...\r\n#define HAVE_BEOSTHREAD 0\r\n#define HAVE_POSIXTHREAD 0\r\n\r\nAnother way to fix compilation is by explicitly including libpthread.a\r\n\r\n--extra-cflags=-DPTW32_STATIC_LIB --extra-ldflags=-lpthread\r\n\r\nI did not check yet if the end result differs between both fixes."}}