{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/zstd/issues/1166","repository_url":"https://api.github.com/repos/facebook/zstd","labels_url":"https://api.github.com/repos/facebook/zstd/issues/1166/labels{/name}","comments_url":"https://api.github.com/repos/facebook/zstd/issues/1166/comments","events_url":"https://api.github.com/repos/facebook/zstd/issues/1166/events","html_url":"https://github.com/facebook/zstd/issues/1166","id":329857079,"node_id":"MDU6SXNzdWUzMjk4NTcwNzk=","number":1166,"title":"compile error","user":{"login":"icebluey","id":25545175,"node_id":"MDQ6VXNlcjI1NTQ1MTc1","avatar_url":"https://avatars1.githubusercontent.com/u/25545175?v=4","gravatar_id":"","url":"https://api.github.com/users/icebluey","html_url":"https://github.com/icebluey","followers_url":"https://api.github.com/users/icebluey/followers","following_url":"https://api.github.com/users/icebluey/following{/other_user}","gists_url":"https://api.github.com/users/icebluey/gists{/gist_id}","starred_url":"https://api.github.com/users/icebluey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icebluey/subscriptions","organizations_url":"https://api.github.com/users/icebluey/orgs","repos_url":"https://api.github.com/users/icebluey/repos","events_url":"https://api.github.com/users/icebluey/events{/privacy}","received_events_url":"https://api.github.com/users/icebluey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-06T13:00:26Z","updated_at":"2018-06-06T18:53:14Z","closed_at":null,"author_association":"NONE","body":"gcc version 7.3.0 (GCC)\r\n\r\nI ran 'make all PREFIX=/usr', but got error.\r\n==============================================================\r\nmake[1]: Leaving directory '/tmp/build-zstd/zstd/programs'\r\nmake -C tests all\r\nmake[1]: Entering directory '/tmp/build-zstd/zstd/tests'\r\ncc -I/opt/openssl/include -I../lib -I../lib/common -I../lib/compress -I../lib/dictBuilder -I../lib/deprecated -I../programs -DZSTD_MULTITHREAD -I/opt/openssl/include -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wformat-security -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls   -L/opt/openssl/lib -pthread ../programs/datagen.c fullbench.c ../lib/decompress/huf_decompress.c ../lib/decompress/zstd_decompress.c ../lib/common/entropy_common.c ../lib/common/pool.c ../lib/common/error_private.c ../lib/common/xxhash.c ../lib/common/fse_decompress.c ../lib/common/threading.c ../lib/common/zstd_common.c ../lib/compress/zstd_double_fast.c ../lib/compress/zstd_lazy.c ../lib/compress/zstd_fast.c ../lib/compress/zstd_ldm.c ../lib/compress/huf_compress.c ../lib/compress/zstdmt_compress.c ../lib/compress/zstd_compress.c ../lib/compress/fse_compress.c ../lib/compress/zstd_opt.c -o fullbench\r\nmv -f Pzstd.Td Pzstd.d\r\ng++ -MMD -MP -MF SkippableFrame.Td  -I/opt/openssl/include -I../../lib -I../../lib/common -I../../programs -I. -DNDEBUG -O3 -Wall -Wextra -pedantic  -std=c++11 -c SkippableFrame.cpp  -o SkippableFrame.o\r\nmv -f SkippableFrame.Td SkippableFrame.d\r\ng++ main.o Options.o Pzstd.o SkippableFrame.o ../../lib/libzstd.a           -L/opt/openssl/lib   -pthread -o pzstd\r\nmake[1]: Leaving directory '/tmp/build-zstd/zstd/contrib/pzstd'\r\nmake -C contrib/seekable_format/examples all\r\nmake[1]: Entering directory '/tmp/build-zstd/zstd/contrib/seekable_format/examples'\r\ncc -I/opt/openssl/include -I../ -I../../../lib -I../../../lib/common -I/opt/openssl/include -g seekable_compression.c ../zstdseek_compress.c ../zstdseek_decompress.c -L/opt/openssl/lib ../../../lib/libzstd.a -o seekable_compression\r\n../zstdseek_decompress.c:200:5: error: conflicting types for ‘ZSTD_seekable_offsetToFrameIndex’\r\n U32 ZSTD_seekable_offsetToFrameIndex(ZSTD_seekable* const zs, U64 pos)\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nIn file included from ../zstdseek_decompress.c:68:0:\r\n../zstd_seekable.h:168:22: note: previous declaration of ‘ZSTD_seekable_offsetToFrameIndex’ was here\r\n ZSTDLIB_API unsigned ZSTD_seekable_offsetToFrameIndex(ZSTD_seekable* const zs, unsigned long long offset);\r\n                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n../zstdseek_decompress.c:225:5: error: conflicting types for ‘ZSTD_seekable_getFrameCompressedOffset’\r\n U64 ZSTD_seekable_getFrameCompressedOffset(ZSTD_seekable* const zs, U32 frameIndex)\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nIn file included from ../zstdseek_decompress.c:68:0:\r\n../zstd_seekable.h:164:32: note: previous declaration of ‘ZSTD_seekable_getFrameCompressedOffset’ was here\r\n ZSTDLIB_API unsigned long long ZSTD_seekable_getFrameCompressedOffset(ZSTD_seekable* const zs, unsigned frameIndex);\r\n                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n../zstdseek_decompress.c:231:5: error: conflicting types for ‘ZSTD_seekable_getFrameDecompressedOffset’\r\n U64 ZSTD_seekable_getFrameDecompressedOffset(ZSTD_seekable* const zs, U32 frameIndex)\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nIn file included from ../zstdseek_decompress.c:68:0:\r\n../zstd_seekable.h:165:32: note: previous declaration of ‘ZSTD_seekable_getFrameDecompressedOffset’ was here\r\n ZSTDLIB_API unsigned long long ZSTD_seekable_getFrameDecompressedOffset(ZSTD_seekable* const zs, unsigned frameIndex);\r\n                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n../zstdseek_decompress.c: In function ‘ZSTD_seekable_initBuff’:\r\n../zstdseek_decompress.c:349:45: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]\r\n                                             &ZSTD_seekable_seek_buff};\r\n                                             ^\r\n../zstdseek_decompress.c:349:45: note: (near initialization for ‘srcFile.seek’)\r\n../zstdseek_decompress.c: In function ‘ZSTD_seekable_initFile’:\r\n../zstdseek_decompress.c:356:41: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]\r\n                                         &ZSTD_seekable_seek_FILE};\r\n                                         ^\r\n../zstdseek_decompress.c:356:41: note: (near initialization for ‘srcFile.seek’)\r\n../zstdseek_decompress.c: At top level:\r\n../zstdseek_decompress.c:375:8: error: conflicting types for ‘ZSTD_seekable_decompress’\r\n size_t ZSTD_seekable_decompress(ZSTD_seekable* zs, void* dst, size_t len, U64 offset)\r\n        ^~~~~~~~~~~~~~~~~~~~~~~~\r\nIn file included from ../zstdseek_decompress.c:68:0:\r\n../zstd_seekable.h:158:20: note: previous declaration of ‘ZSTD_seekable_decompress’ was here\r\n ZSTDLIB_API size_t ZSTD_seekable_decompress(ZSTD_seekable* zs, void* dst, size_t dstSize, unsigned long long offset);\r\n                    ^~~~~~~~~~~~~~~~~~~~~~~~\r\nMakefile:27: recipe for target 'seekable_compression' failed\r\nmake[1]: *** [seekable_compression] Error 1\r\nmake[1]: Leaving directory '/tmp/build-zstd/zstd/contrib/seekable_format/examples'\r\nMakefile:97: recipe for target 'contrib' failed\r\nmake: *** [contrib] Error 2\r\nmake: *** Waiting for unfinished jobs....\r\n\r\n==============================================================\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/zstd/issues/comments/395175861","html_url":"https://github.com/facebook/zstd/issues/1166#issuecomment-395175861","issue_url":"https://api.github.com/repos/facebook/zstd/issues/1166","id":395175861,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTE3NTg2MQ==","user":{"login":"Cyan4973","id":750081,"node_id":"MDQ6VXNlcjc1MDA4MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/750081?v=4","gravatar_id":"","url":"https://api.github.com/users/Cyan4973","html_url":"https://github.com/Cyan4973","followers_url":"https://api.github.com/users/Cyan4973/followers","following_url":"https://api.github.com/users/Cyan4973/following{/other_user}","gists_url":"https://api.github.com/users/Cyan4973/gists{/gist_id}","starred_url":"https://api.github.com/users/Cyan4973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cyan4973/subscriptions","organizations_url":"https://api.github.com/users/Cyan4973/orgs","repos_url":"https://api.github.com/users/Cyan4973/repos","events_url":"https://api.github.com/users/Cyan4973/events{/privacy}","received_events_url":"https://api.github.com/users/Cyan4973/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T18:53:14Z","updated_at":"2018-06-06T18:53:14Z","author_association":"CONTRIBUTOR","body":"Well, I'm currently compiling on OS-X, using `gcc-7`,\r\nand nonetheless, I'm unable to reproduce the issue ..."}}
{"actor":{"display_login":"Cyan4973"}}