We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After adding -I/usr/local/include" to CMakeLists C-flags I get the following errors:
niklas@nmbpro:~/git/spcom/spcom/build$ make [ 3%] Building C object CMakeFiles/spcom.dir/src/main.c.o /Users/niklas/git/spcom/spcom/src/main.c:5:10: fatal error: 'uv.h' file not found #include <uv.h> ^~~~~~ 1 error generated. make[2]: *** [CMakeFiles/spcom.dir/src/main.c.o] Error 1 make[1]: *** [CMakeFiles/spcom.dir/all] Error 2 make: *** [all] Error 2 niklas@nmbpro:~/git/spcom/spcom/build$ make -- Configuring done -- Generating done -- Build files have been written to: /Users/niklas/git/spcom/spcom/build [ 3%] Building C object CMakeFiles/spcom.dir/src/main.c.o /Users/niklas/git/spcom/spcom/src/main.c:161:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert_uv_z(err, "uv_loop_init"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:161:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:164:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert_uv_z(err, "uv_signal_init"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:164:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:167:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert_uv_z(err, "uv_signal_start"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:167:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:170:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert_uv_z(err, "uv_signal_init"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:170:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:172:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert_uv_z(err, "uv_signal_start"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:172:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:48:13: note: expanded from macro 'assert_uv_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:176:9: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert_z(err, "shell_init"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:37:13: note: expanded from macro 'assert_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:176:9: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:37:13: note: expanded from macro 'assert_z' LOG_ERR("assert failed, '%d' is not zero, %s, %s", __val, (MSG), \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:180:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert(!err); ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:27:13: note: expanded from macro 'assert' LOG_ERR("assert '%s' failed", STRINGIFY(COND)); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:180:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:27:13: note: expanded from macro 'assert' LOG_ERR("assert '%s' failed", STRINGIFY(COND)); \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:185:9: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] LOG_ERR("port_init err=%d", err); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:185:9: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:196:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] LOG_DBG("cleaning up..."); ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:37:5: note: expanded from macro 'LOG_DBG' __LOG(LOG_LEVEL_DBG, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:196:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/log.h:37:5: note: expanded from macro 'LOG_DBG' __LOG(LOG_LEVEL_DBG, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:199:9: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] LOG_DBG("already cleaned up"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:37:5: note: expanded from macro 'LOG_DBG' __LOG(LOG_LEVEL_DBG, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:199:9: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/log.h:37:5: note: expanded from macro 'LOG_DBG' __LOG(LOG_LEVEL_DBG, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:211:13: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] LOG_DBG("uv_loop_close err. %s", log_libuv_errstr(err, errno)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:37:5: note: expanded from macro 'LOG_DBG' __LOG(LOG_LEVEL_DBG, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:211:13: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/log.h:37:5: note: expanded from macro 'LOG_DBG' __LOG(LOG_LEVEL_DBG, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:235:9: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] LOG_ERR("main_init failed"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:235:9: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main.c:244:9: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] LOG_UV_ERR(err, "uv_run"); ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:51:5: note: expanded from macro 'LOG_UV_ERR' LOG_ERR("%s - %s", MSG, log_libuv_errstr(VAL, errno)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main.c:244:9: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/log.h:51:5: note: expanded from macro 'LOG_UV_ERR' LOG_ERR("%s - %s", MSG, log_libuv_errstr(VAL, errno)) ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ 13 warnings generated. [ 6%] Building C object CMakeFiles/spcom.dir/src/main_opts.c.o /Users/niklas/git/spcom/spcom/src/main_opts.c:42:5: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] assert(s); ^~~~~~~~~ /Users/niklas/git/spcom/spcom/include/assert.h:27:13: note: expanded from macro 'assert' LOG_ERR("assert '%s' failed", STRINGIFY(COND)); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/niklas/git/spcom/spcom/src/main_opts.c:42:5: note: use array indexing to silence this warning /Users/niklas/git/spcom/spcom/include/assert.h:27:13: note: expanded from macro 'assert' LOG_ERR("assert '%s' failed", STRINGIFY(COND)); \ ^ /Users/niklas/git/spcom/spcom/include/log.h:28:5: note: expanded from macro 'LOG_ERR' __LOG(LOG_LEVEL_ERR, FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:25:21: note: expanded from macro '__LOG' log_printf(TAG, LOG_WHERESTR(), FMT, ##__VA_ARGS__) ^ /Users/niklas/git/spcom/spcom/include/log.h:41:29: note: expanded from macro 'LOG_WHERESTR' ((DEBUG) ? log_wherestr(__FILENAME__, __LINE__, __func__) : NULL) ^ /Users/niklas/git/spcom/spcom/include/log.h:9:32: note: expanded from macro '__FILENAME__' #define __FILENAME__ (__FILE__ + SOURCE_PATH_SIZE) ^ /Users/niklas/git/spcom/spcom/src/main_opts.c:108:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma OPT_SECTION_ADD(main, main_opts_conf, ARRAY_LEN(main_opts_conf), main_opts_post_parse); ^ /Users/niklas/git/spcom/spcom/include/opt_section.h:50:32: note: expanded from macro 'OPT_SECTION_ADD' __attribute((used, section("options"))) \ ^ 1 warning and 1 error generated. make[2]: *** [CMakeFiles/spcom.dir/src/main_opts.c.o] Error 1 make[1]: *** [CMakeFiles/spcom.dir/all] Error 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After adding -I/usr/local/include" to CMakeLists C-flags I get the following errors:
The text was updated successfully, but these errors were encountered: