Skip to content

Instantly share code, notes, and snippets.

@savannidgerinel
Last active September 18, 2017 13:09
Show Gist options
  • Save savannidgerinel/1c759d4bb6af284616ef3bd307bd7884 to your computer and use it in GitHub Desktop.
Save savannidgerinel/1c759d4bb6af284616ef3bd307bd7884 to your computer and use it in GitHub Desktop.
./configure --target=arm-linux-gnueabihf --prefix=<nix path> --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c
g++ -I../.././libcpp -I. -I../.././libcpp/../include -I../.././libcpp/include -g -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../.././libcpp -I. -I../.././libcpp/../include -I../.././libcpp/include -c -o expr.o -MT expr.o -MMD -MP -MF .deps/expr.Tpo ../.././libcpp/expr.c
../.././libcpp/expr.c: In function 'unsigned int cpp_classify_number(cpp_reader*, const cpp_token*, const char**, source_location)':
../.././libcpp/expr.c:674:18: error: format not a string literal and no format arguments [-Werror=format-security]
0, message);
^
../.././libcpp/expr.c:677:39: error: format not a string literal and no format arguments [-Werror=format-security]
virtual_location, 0, message);
^
cc1plus: some warnings being treated as errors
make[3]: *** [Makefile:224: expr.o] Error 1
make[3]: Leaving directory '/tmp/nix-build-gcc-4.9.4-arm-linux-gnueabihf.drv-0/gcc-4.9.4/host-x86_64-unknown-linux-gnu/libcpp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment