{"action":"created","issue":{"url":"https://api.github.com/repos/jgoppert/Firmware/issues/11","labels_url":"https://api.github.com/repos/jgoppert/Firmware/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/jgoppert/Firmware/issues/11/comments","events_url":"https://api.github.com/repos/jgoppert/Firmware/issues/11/events","html_url":"https://github.com/jgoppert/Firmware/issues/11","id":102639518,"number":11,"title":"cmake-nuttx nuttx linking/compiling","user":{"login":"jgoppert","id":473772,"avatar_url":"https://avatars.githubusercontent.com/u/473772?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoppert","html_url":"https://github.com/jgoppert","followers_url":"https://api.github.com/users/jgoppert/followers","following_url":"https://api.github.com/users/jgoppert/following{/other_user}","gists_url":"https://api.github.com/users/jgoppert/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoppert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoppert/subscriptions","organizations_url":"https://api.github.com/users/jgoppert/orgs","repos_url":"https://api.github.com/users/jgoppert/repos","events_url":"https://api.github.com/users/jgoppert/events{/privacy}","received_events_url":"https://api.github.com/users/jgoppert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-23T17:27:54Z","updated_at":"2015-08-23T17:37:19Z","closed_at":null,"body":"```bash\r\n[ 83%] Building C object CMakeFiles/px4_simple_app-px4fmu-v2-default.dir/src/examples/px4_simple_app/px4_simple_app.c.obj\r\n/home/jgoppert/gcc-arm-none-eabi-4_7-2014q2/bin/arm-none-eabi-gcc  -DCLOCK_MONOTONIC=1 -D__EXPORT=\"\" -D__PX4_LINUX -D__PX4_POSIX -Dnoreturn_function=\"\" -std=gnu99 -fno-common -Wall -Wextra -Wdouble-promotion -Wshadow -Wfloat-equal -Wframe-larger-than=1024 -Wpointer-arith -Wlogical-op -Wmissing-declarations -Wpacked -Wno-unused-parameter -Werror=format-security -Werror=array-bounds -Wfatal-errors -Wformat=1 -Werror=unused-but-set-variable -Werror=unused-variable -Werror=double-promotion -Werror=reorder -Wbad-function-cast -Wstrict-prototypes -Wold-style-declaration -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -I/home/jgoppert/git/px4/cmake-Firmware/src -I/home/jgoppert/git/px4/cmake-Firmware/src/include -I/home/jgoppert/git/px4/cmake-Firmware/src/lib/eigen -I/home/jgoppert/git/px4/cmake-Firmware/src/lib -I/home/jgoppert/git/px4/cmake-Firmware/src/platforms -I/home/jgoppert/git/px4/cmake-Firmware/src/platforms/posix/include -I/home/jgoppert/git/px4/cmake-Firmware/src/modules -I/home/jgoppert/git/px4/cmake-Firmware/build_arm -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src/modules/px4_messages -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src/modules -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src/platforms/posix/px4_messages -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/arch/chip -I/home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app    -o CMakeFiles/px4_simple_app-px4fmu-v2-default.dir/src/examples/px4_simple_app/px4_simple_app.c.obj   -c /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c\r\nIn file included from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/sys/types.h:43:0,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/unistd.h:43,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c:41:\r\n/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/nuttx/config.h:129:0: warning: \"CONFIG_NFILE_STREAMS\" redefined [enabled by default]\r\nIn file included from /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c:40:0:\r\n/home/jgoppert/git/px4/cmake-Firmware/src/platforms/px4_config.h:48:0: note: this is the location of the previous definition\r\nIn file included from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/sys/types.h:43:0,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/unistd.h:43,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c:41:\r\n/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/nuttx/config.h:278:0: warning: \"CONFIG_SCHED_WORKPERIOD\" redefined [enabled by default]\r\nIn file included from /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c:40:0:\r\n/home/jgoppert/git/px4/cmake-Firmware/src/platforms/px4_config.h:55:0: note: this is the location of the previous definition\r\nIn file included from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/sys/types.h:44:0,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/unistd.h:43,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c:41:\r\n/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/nuttx/compiler.h:82:0: warning: \"noreturn_function\" redefined [enabled by default]\r\n<command-line>:0:0: note: this is the location of the previous definition\r\nIn file included from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/sched.h:47:0,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/stdio.h:47,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c:42:\r\n/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/nuttx/sched.h:513:22: error: field 'xcp' has incomplete type\r\n```"},"comment":{"url":"https://api.github.com/repos/jgoppert/Firmware/issues/comments/133881245","html_url":"https://github.com/jgoppert/Firmware/issues/11#issuecomment-133881245","issue_url":"https://api.github.com/repos/jgoppert/Firmware/issues/11","id":133881245,"user":{"login":"jgoppert","id":473772,"avatar_url":"https://avatars.githubusercontent.com/u/473772?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoppert","html_url":"https://github.com/jgoppert","followers_url":"https://api.github.com/users/jgoppert/followers","following_url":"https://api.github.com/users/jgoppert/following{/other_user}","gists_url":"https://api.github.com/users/jgoppert/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoppert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoppert/subscriptions","organizations_url":"https://api.github.com/users/jgoppert/orgs","repos_url":"https://api.github.com/users/jgoppert/repos","events_url":"https://api.github.com/users/jgoppert/events{/privacy}","received_events_url":"https://api.github.com/users/jgoppert/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T17:37:19Z","updated_at":"2015-08-23T17:37:19Z","body":"Fixing the definitions didn't change the compile error, but didn't eliminate some of the warnings:\r\n\r\n```bash\r\n[ 83%] Building C object CMakeFiles/px4_simple_app-px4fmu-v2-default.dir/src/examples/px4_simple_app/px4_simple_app.c.obj\r\n/home/jgoppert/gcc-arm-none-eabi-4_7-2014q2/bin/arm-none-eabi-gcc  -D__PX4_NUTTX -std=gnu99 -fno-common -Wall -Wextra -Wdouble-promotion -Wshadow -Wfloat-equal -Wframe-larger-than=1024 -Wpointer-arith -Wlogical-op -Wmissing-declarations -Wpacked -Wno-unused-parameter -Werror=format-security -Werror=array-bounds -Wfatal-errors -Wformat=1 -Werror=unused-but-set-variable -Werror=unused-variable -Werror=double-promotion -Werror=reorder -Wbad-function-cast -Wstrict-prototypes -Wold-style-declaration -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -I/home/jgoppert/git/px4/cmake-Firmware/src -I/home/jgoppert/git/px4/cmake-Firmware/src/include -I/home/jgoppert/git/px4/cmake-Firmware/src/lib/eigen -I/home/jgoppert/git/px4/cmake-Firmware/src/lib -I/home/jgoppert/git/px4/cmake-Firmware/src/platforms -I/home/jgoppert/git/px4/cmake-Firmware/src/platforms/posix/include -I/home/jgoppert/git/px4/cmake-Firmware/src/modules -I/home/jgoppert/git/px4/cmake-Firmware/build_arm -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src/modules/px4_messages -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src/modules -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/src/platforms/posix/px4_messages -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include -I/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/arch/chip -I/home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app    -o CMakeFiles/px4_simple_app-px4fmu-v2-default.dir/src/examples/px4_simple_app/px4_simple_app.c.obj   -c /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c\r\nIn file included from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/sched.h:47:0,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/stdio.h:47,\r\n                 from /home/jgoppert/git/px4/cmake-Firmware/src/examples/px4_simple_app/px4_simple_app.c:42:\r\n/home/jgoppert/git/px4/cmake-Firmware/build_arm/px4fmu-v2/NuttX/nuttx-export/include/nuttx/sched.h:513:22: error: field 'xcp' has incomplete type\r\n```"}}