Skip to content

Instantly share code, notes, and snippets.

@gabrielschulhof
Last active November 27, 2015 15:00
Show Gist options
  • Save gabrielschulhof/87194a7e6b9941d0051d to your computer and use it in GitHub Desktop.
Save gabrielschulhof/87194a7e6b9941d0051d to your computer and use it in GitHub Desktop.
g++ '-DNODE_GYP_MODULE_NAME=soletta' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' \
'-DBUILDING_NODE_EXTENSION' -I../node_modules/nan -I/home/nix/iot/soletta-js/src \
-I/home/nix/.node-gyp/4.0.0/include/node -I/home/nix/.node-gyp/4.0.0/src \
-I/home/nix/.node-gyp/4.0.0/deps/uv/include -I/home/nix/.node-gyp/4.0.0/deps/v8/include \
\
-fpermissive \
\
-I/home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta -pthread \
-Wall -Wextra -Wno-unused-parameter -m32 -O3 -ffunction-sections -fdata-sections \
-fno-omit-frame-pointer -std=c++11 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF \
./Release/.deps/Release/obj.target/soletta/generated/main.o.d.raw \
-c -o Release/obj.target/soletta/generated/main.o ../generated/main.cc
# I added -fpermissive myself, because there were a bunch of "invalid conversion from x to y" errors as well
g++ --version
g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
...
/home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta/sol-json.h:332:55: warning: narrowing conversion of ‘(((int)token->sol_json_token::end) - ((int)token->sol_json_token::start))’ from ‘int’ to ‘size_t {aka unsigned int}’ inside { } [-Wnarrowing]
return SOL_STR_SLICE_STR(token->start, token->end - token->start);
^
/home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta/sol-str-slice.h:68:68: note: in definition of macro ‘SOL_STR_SLICE_STR’
#define SOL_STR_SLICE_STR(_s, _len) (struct sol_str_slice){.len = (_len), .data = (_s) }
^
In file included from /home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta/sol-i2c.h:40:0,
from ../generated/main.h:58,
from ../generated/main.cc:7:
/home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta/sol-fs-storage.h: In function ‘int sol_fs_read_uint8(const char*, uint8_t*)’:
...
In file included from /home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta/sol-i2c.h:40:0,
from ../generated/main.h:58,
from ../generated/main.cc:7:
/home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta/sol-buffer.h: At global scope:
/home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta/sol-buffer.h:279:125: error: expected primary-expression before ‘static’
int sol_buffer_insert_as_base64(struct sol_buffer *buf, size_t pos, const struct sol_str_slice slice, const char base64_map[static 65]);
^
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment