{"action":"created","issue":{"url":"https://api.github.com/repos/OP-TEE/optee_test/issues/94","repository_url":"https://api.github.com/repos/OP-TEE/optee_test","labels_url":"https://api.github.com/repos/OP-TEE/optee_test/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/OP-TEE/optee_test/issues/94/comments","events_url":"https://api.github.com/repos/OP-TEE/optee_test/issues/94/events","html_url":"https://github.com/OP-TEE/optee_test/issues/94","id":155943907,"number":94,"title":"Build failure due to -Werror=redundant-decls","user":{"login":"koenkooi","id":259525,"avatar_url":"https://avatars.githubusercontent.com/u/259525?v=3","gravatar_id":"","url":"https://api.github.com/users/koenkooi","html_url":"https://github.com/koenkooi","followers_url":"https://api.github.com/users/koenkooi/followers","following_url":"https://api.github.com/users/koenkooi/following{/other_user}","gists_url":"https://api.github.com/users/koenkooi/gists{/gist_id}","starred_url":"https://api.github.com/users/koenkooi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koenkooi/subscriptions","organizations_url":"https://api.github.com/users/koenkooi/orgs","repos_url":"https://api.github.com/users/koenkooi/repos","events_url":"https://api.github.com/users/koenkooi/events{/privacy}","received_events_url":"https://api.github.com/users/koenkooi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-20T11:36:09Z","updated_at":"2016-05-20T16:17:34Z","closed_at":null,"body":"```\r\nDEBUG: Executing shell function do_compile\r\nNOTE: make -j 4 TA_DEV_KIT_DIR=/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta OPTEE_CLIENT_EXPORT=/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr TEEC_EXPORT=/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr CROSS_COMPILE_HOST=aarch64-oe-linux- CROSS_COMPILE_ta_arm64=aarch64-oe-linux- V=1 xtest\r\nmake -C host/xtest CROSS_COMPILE=\"aarch64-oe-linux-\" \\\r\n\t\t     --no-builtin-variables \\\r\n\t\t     q= \\\r\n\t\t     O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/xtest \\\r\n\t\t     xtest\r\nmake[1]: Entering directory '/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/host/xtest'\r\n  LD      /build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/xtest/xtest\r\nmake[1]: Leaving directory '/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/host/xtest'\r\nNOTE: make -j 4 TA_DEV_KIT_DIR=/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta OPTEE_CLIENT_EXPORT=/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr TEEC_EXPORT=/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr CROSS_COMPILE_HOST=aarch64-oe-linux- CROSS_COMPILE_ta_arm64=aarch64-oe-linux- V=1 ta\r\nmake -C ta CROSS_COMPILE=\"\" \\\r\n\t\t  q= \\\r\n\t\t  O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta \\\r\n\t\t  ta\r\nmake[1]: Entering directory '/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/ta'\r\nmake -C create_fail_test O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test &&  make -C crypt O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/crypt &&  make -C os_test O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/os_test &&  make -C rpc_test O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/rpc_test &&  make -C sims O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/sims &&  make -C storage O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/storage &&  make -C concurrent O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/concurrent &&  make -C concurrent_large O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/concurrent_large &&  make -C storage_benchmark O=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/storage_benchmark && true\r\nmake[2]: Entering directory '/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/ta/create_fail_test'\r\nmkdir -p /build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/\r\naarch64-oe-linux-cpp -Wp,-P,-MT,/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/ta.lds,-MD,/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/.ta.ld.d \\\r\n\t-DASM=1 -nostdinc -isystem /build/linaro/build/build/tmp-glibc/sysroots/x86_64-linux/usr/lib/aarch64-oe-linux/gcc/aarch64-oe-linux/5.2.1/include -I./include -I/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test -DARM64=1 -D__LP64__=1 -DTRACE_LEVEL=2 -I. -I/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/ta.ld.S > /build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/ta.lds\r\naarch64-oe-linux-gcc -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0=/usr/src/debug/optee-test/2.0+gitAUTOINC+5bf536242b-r0 -fdebug-prefix-map=/build/linaro/build/build/tmp-glibc/sysroots/x86_64-linux= -fdebug-prefix-map=/build/linaro/build/build/tmp-glibc/sysroots/hikey= -I/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include -std=gnu99 -Werror -fdiagnostics-show-option -Wall -Wcast-align -Werror-implicit-function-declaration -Wextra -Wfloat-equal -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default -Wwrite-strings -Wno-missing-field-initializers -Wno-format-zero-length -Waggregate-return -Wredundant-decls -Wold-style-definition -Wstrict-aliasing=2 -Wundef -pedantic -Wdeclaration-after-statement -Os -g3 -fpie -mstrict-align -MD -MF /build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/.user_ta_header.o.d -MT /build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/user_ta_header.o -nostdinc -isystem /build/linaro/build/build/tmp-glibc/sysroots/x86_64-linux/usr/lib/aarch64-oe-linux/gcc/aarch64-oe-linux/5.2.1/include -I./include -DARM64=1 -D__LP64__=1 -DTRACE_LEVEL=2 -I. -I/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include -c /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c -o /build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/user_ta_header.o\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/features.h:368:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdint.h:25,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_api_types.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_ta_api.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:28:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:445:24: error: redundant redeclaration of 'fscanf' [-Werror=redundant-decls]\r\n extern int __REDIRECT (fscanf, (FILE *__restrict __stream,\r\n                        ^\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/sys/cdefs.h:177:41: note: in definition of macro '__REDIRECT'\r\n # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))\r\n                                         ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_internal_api_extensions.h:33:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:29:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:427:12: note: previous declaration of 'fscanf' was here\r\n extern int fscanf (FILE *__restrict __stream,\r\n            ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/features.h:368:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdint.h:25,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_api_types.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_ta_api.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:28:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:448:24: error: redundant redeclaration of 'scanf' [-Werror=redundant-decls]\r\n extern int __REDIRECT (scanf, (const char *__restrict __format, ...),\r\n                        ^\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/sys/cdefs.h:177:41: note: in definition of macro '__REDIRECT'\r\n # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))\r\n                                         ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_internal_api_extensions.h:33:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:29:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:433:12: note: previous declaration of 'scanf' was here\r\n extern int scanf (const char *__restrict __format, ...) __wur;\r\n            ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/features.h:368:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdint.h:25,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_api_types.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_ta_api.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:28:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:450:28: error: redundant redeclaration of 'sscanf' [-Werror=redundant-decls]\r\n extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,\r\n                            ^\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/sys/cdefs.h:185:6: note: in definition of macro '__REDIRECT_NTH'\r\n      name proto __asm__ (__ASMNAME (#alias)) __THROW\r\n      ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_internal_api_extensions.h:33:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:29:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:435:12: note: previous declaration of 'sscanf' was here\r\n extern int sscanf (const char *__restrict __s,\r\n            ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/features.h:368:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdint.h:25,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_api_types.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_ta_api.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:28:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:496:24: error: redundant redeclaration of 'vfscanf' [-Werror=redundant-decls]\r\n extern int __REDIRECT (vfscanf,\r\n                        ^\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/sys/cdefs.h:177:41: note: in definition of macro '__REDIRECT'\r\n # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))\r\n                                         ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_internal_api_extensions.h:33:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:29:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:473:12: note: previous declaration of 'vfscanf' was here\r\n extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,\r\n            ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/features.h:368:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdint.h:25,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_api_types.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_ta_api.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:28:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:501:24: error: redundant redeclaration of 'vscanf' [-Werror=redundant-decls]\r\n extern int __REDIRECT (vscanf, (const char *__restrict __format,\r\n                        ^\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/sys/cdefs.h:177:41: note: in definition of macro '__REDIRECT'\r\n # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))\r\n                                         ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_internal_api_extensions.h:33:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:29:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:481:12: note: previous declaration of 'vscanf' was here\r\n extern int vscanf (const char *__restrict __format, _G_va_list __arg)\r\n            ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/features.h:368:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdint.h:25,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_api_types.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_ta_api.h:33,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:28:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:504:28: error: redundant redeclaration of 'vsscanf' [-Werror=redundant-decls]\r\n extern int __REDIRECT_NTH (vsscanf,\r\n                            ^\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/sys/cdefs.h:185:6: note: in definition of macro '__REDIRECT_NTH'\r\n      name proto __asm__ (__ASMNAME (#alias)) __THROW\r\n      ^\r\nIn file included from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/include/tee_internal_api_extensions.h:33:0,\r\n                 from /build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/src/user_ta_header.c:29:\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/stdio.h:485:12: note: previous declaration of 'vsscanf' was here\r\n extern int vsscanf (const char *__restrict __s,\r\n            ^\r\ncc1: all warnings being treated as errors\r\n/build/linaro/build/build/tmp-glibc/sysroots/hikey/usr/include/optee/export-user_ta/mk/compile.mk:146: recipe for target '/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/user_ta_header.o' failed\r\nmake[2]: *** [/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/out/ta/create_fail_test/user_ta_header.o] Error 1\r\nmake[2]: Leaving directory '/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/ta/create_fail_test'\r\nMakefile:44: recipe for target 'ta' failed\r\nmake[1]: *** [ta] Error 2\r\nmake[1]: Leaving directory '/build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/git/ta'\r\nMakefile:35: recipe for target 'ta' failed\r\nmake: *** [ta] Error 2\r\nERROR: oe_runmake failed\r\nERROR: Function failed: do_compile (log file is located at /build/linaro/build/build/tmp-glibc/work/hikey-oe-linux/optee-test/2.0+gitAUTOINC+5bf536242b-r0/temp/log.do_compile.2075)\r\n```"},"comment":{"url":"https://api.github.com/repos/OP-TEE/optee_test/issues/comments/220650976","html_url":"https://github.com/OP-TEE/optee_test/issues/94#issuecomment-220650976","issue_url":"https://api.github.com/repos/OP-TEE/optee_test/issues/94","id":220650976,"user":{"login":"d3zd3z","id":90349,"avatar_url":"https://avatars.githubusercontent.com/u/90349?v=3","gravatar_id":"","url":"https://api.github.com/users/d3zd3z","html_url":"https://github.com/d3zd3z","followers_url":"https://api.github.com/users/d3zd3z/followers","following_url":"https://api.github.com/users/d3zd3z/following{/other_user}","gists_url":"https://api.github.com/users/d3zd3z/gists{/gist_id}","starred_url":"https://api.github.com/users/d3zd3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3zd3z/subscriptions","organizations_url":"https://api.github.com/users/d3zd3z/orgs","repos_url":"https://api.github.com/users/d3zd3z/repos","events_url":"https://api.github.com/users/d3zd3z/events{/privacy}","received_events_url":"https://api.github.com/users/d3zd3z/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T16:17:34Z","updated_at":"2016-05-20T16:17:34Z","body":"Do you have a pointer to your recipe? I'm building optee_test within my OE setup https://github.com/d3zd3z/oe-optee and didn't run into this issue."}}
{"actor":{"display_login":"d3zd3z"}}