{"action":"created","issue":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/424","labels_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/424/comments","events_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/424/events","html_url":"https://github.com/OP-TEE/optee_os/issues/424","id":98223071,"number":424,"title":"setup_fvp_optee.sh Issue","user":{"login":"crispy-penguin","id":5358892,"avatar_url":"https://avatars.githubusercontent.com/u/5358892?v=3","gravatar_id":"","url":"https://api.github.com/users/crispy-penguin","html_url":"https://github.com/crispy-penguin","followers_url":"https://api.github.com/users/crispy-penguin/followers","following_url":"https://api.github.com/users/crispy-penguin/following{/other_user}","gists_url":"https://api.github.com/users/crispy-penguin/gists{/gist_id}","starred_url":"https://api.github.com/users/crispy-penguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crispy-penguin/subscriptions","organizations_url":"https://api.github.com/users/crispy-penguin/orgs","repos_url":"https://api.github.com/users/crispy-penguin/repos","events_url":"https://api.github.com/users/crispy-penguin/events{/privacy}","received_events_url":"https://api.github.com/users/crispy-penguin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T17:37:29Z","updated_at":"2015-07-31T07:12:11Z","closed_at":null,"body":"Hi everyone, \r\nI have been trying to install setup_fvp_optee script for last 12 hours and still no luck. I have installed new distro of Debian only to see if something on my previous distro was wrong, but I still get the same error. The error occures while running tb_conv.c in function ‘test_BigInt_getsetOctetString’. \r\nThanks for help,\r\nCrispy\r\nHere is the console dump. \r\n\r\n_________________________________________________________________\r\n CC      /root/devel/fvp_optee/out/optee_test/ta/os_test/ta_entry.o\r\n  CC      /root/devel/fvp_optee/out/optee_test/ta/os_test/tb_addsub.o\r\n  CC      /root/devel/fvp_optee/out/optee_test/ta/os_test/tb_cmp.o\r\n  CC      /root/devel/fvp_optee/out/optee_test/ta/os_test/tb_conv.o\r\ntb_conv.c: In function ‘test_BigInt_getsetOctetString’:\r\ntb_conv.c:114:8: error: passing argument 2 of ‘TEE_BigIntConvertFromOctetString’ discards ‘const’ qualifier from pointer target type [-Werror]\r\n  res = TEE_BigIntConvertFromOctetString(a, os1, sizeof(os1), 1);\r\n        ^\r\nIn file included from /root/devel/fvp_optee/optee_os/out/arm-plat-vexpress/export-user_ta/include/tee_internal_api.h:32:0,\r\n                 from ./include/testframework.h:31,\r\n                 from tb_conv.c:28:\r\n/root/devel/fvp_optee/optee_os/out/arm-plat-vexpress/export-user_ta/include/tee_api.h:365:12: note: expected ‘uint8_t *’ but argument is of type ‘const uint8_t *’\r\n TEE_Result TEE_BigIntConvertFromOctetString(TEE_BigInt *dest,\r\n            ^\r\ntb_conv.c:123:8: error: passing argument 2 of ‘TEE_BigIntConvertFromOctetString’ discards ‘const’ qualifier from pointer target type [-Werror]\r\n  res = TEE_BigIntConvertFromOctetString(b, os3, sizeof(os3), 1);\r\n        ^\r\nIn file included from /root/devel/fvp_optee/optee_os/out/arm-plat-vexpress/export-user_ta/include/tee_internal_api.h:32:0,\r\n                 from ./include/testframework.h:31,\r\n                 from tb_conv.c:28:\r\n/root/devel/fvp_optee/optee_os/out/arm-plat-vexpress/export-user_ta/include/tee_api.h:365:12: note: expected ‘uint8_t *’ but argument is of type ‘const uint8_t *’\r\n TEE_Result TEE_BigIntConvertFromOctetString(TEE_BigInt *dest,\r\n            ^\r\n  CC      /root/devel/fvp_optee/out/optee_test/ta/os_test/tb_div.o\r\n  CC      /root/devel/fvp_optee/out/optee_test/ta/os_test/tb_fmm.o\r\ncc1: all warnings being treated as errors\r\n/root/devel/fvp_optee/optee_os/out/arm-plat-vexpress/export-user_ta/mk/compile.mk:141: recipe for target '/root/devel/fvp_optee/out/optee_test/ta/os_test/tb_conv.o' failed\r\nmake[2]: *** [/root/devel/fvp_optee/out/optee_test/ta/os_test/tb_conv.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nmake[2]: Leaving directory '/root/devel/fvp_optee/optee_test/ta/os_test'\r\nMakefile:37: recipe for target 'ta' failed\r\nmake[1]: *** [ta] Error 2\r\nmake[1]: Leaving directory '/root/devel/fvp_optee/optee_test/ta'\r\nMakefile:27: recipe for target 'ta' failed\r\nmake: *** [ta] Error 2\r\nmake: Leaving directory '/root/devel/fvp_optee/optee_test'\r\n\r\n  ERROR: Kernel configuration is invalid.\r\n         include/generated/autoconf.h or include/config/auto.conf are missing.\r\n         Run 'make oldconfig && make prepare' on kernel src to fix it.\r\n\r\n\r\n  WARNING: Symbol version dump ./Module.symvers\r\n           is missing; modules will have no dependencies and modversions.\r\n\r\n  CC [M]  /root/devel/fvp_optee/optee_linuxdriver/armtz/tee_tz_drv.o\r\nIn file included from <command-line>:0:0:\r\n././include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory\r\n #include <generated/autoconf.h>\r\n                                ^\r\ncompilation terminated.\r\nscripts/Makefile.build:257: recipe for target '/root/devel/fvp_optee/optee_linuxdriver/armtz/tee_tz_drv.o' failed\r\nmake[2]: *** [/root/devel/fvp_optee/optee_linuxdriver/armtz/tee_tz_drv.o] Error 1\r\nscripts/Makefile.build:402: recipe for target '/root/devel/fvp_optee/optee_linuxdriver/armtz' failed\r\nmake[1]: *** [/root/devel/fvp_optee/optee_linuxdriver/armtz] Error 2\r\nMakefile:1380: recipe for target '_module_/root/devel/fvp_optee/optee_linuxdriver' failed\r\nmake: *** [_module_/root/devel/fvp_optee/optee_linuxdriver] Error 2\r\n/root/devel/fvp_optee/update_rootfs.sh: line 4: cd: /root/devel/fvp_optee/gen_rootfs: No such file or directory\r\n/root/devel/fvp_optee/update_rootfs.sh: line 5: gen_init_cpio: command not found\r\n/root/devel/fvp_optee/build_device_tree_files.sh: line 4: /root/devel/fvp_optee/linux/scripts/dtc/dtc: No such file or directory\r\nOP-TEE and FVP setup completed.\r\n"},"comment":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/comments/126589512","html_url":"https://github.com/OP-TEE/optee_os/issues/424#issuecomment-126589512","issue_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/424","id":126589512,"user":{"login":"pascal-brand-st-dev","id":6542303,"avatar_url":"https://avatars.githubusercontent.com/u/6542303?v=3","gravatar_id":"","url":"https://api.github.com/users/pascal-brand-st-dev","html_url":"https://github.com/pascal-brand-st-dev","followers_url":"https://api.github.com/users/pascal-brand-st-dev/followers","following_url":"https://api.github.com/users/pascal-brand-st-dev/following{/other_user}","gists_url":"https://api.github.com/users/pascal-brand-st-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pascal-brand-st-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascal-brand-st-dev/subscriptions","organizations_url":"https://api.github.com/users/pascal-brand-st-dev/orgs","repos_url":"https://api.github.com/users/pascal-brand-st-dev/repos","events_url":"https://api.github.com/users/pascal-brand-st-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pascal-brand-st-dev/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T07:12:11Z","updated_at":"2015-07-31T07:12:11Z","body":"This comes from non-aligned versions between optee_os and optee_test. Rebasing on master on these 2 gits should solve your problem.\r\n\r\nIndeed, we are currently changing the way environments are imported. We are now using android-like manifest and build. Please have a look at https://github.com/OP-TEE/manifest/blob/master/README.md. It will guide you to retrieve fvp environment using this new way. Please let us know if you still face issues with this new way of proceeding.\r\n\r\nNote that setup scripts are obsolete, and will be removed soon.\r\n\r\n"}}