Skip to content

Instantly share code, notes, and snippets.

@dunn
Created May 4, 2019 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dunn/f87508f4549fceb061c0206dfca241ce to your computer and use it in GitHub Desktop.
Save dunn/f87508f4549fceb061c0206dfca241ce to your computer and use it in GitHub Desktop.
[root@selfy ~]# cat /home/mastodon/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0-static/blurhash-0.1.2/gem_make.out
current directory: /home/mastodon/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/blurhash-0.1.2/ext/blurhash
/home/mastodon/.rbenv/versions/2.6.1/bin/ruby -I /home/mastodon/.rbenv/versions/2.6.1/lib/ruby/site_ruby/2.6.0 -r ./siteconf20190504-30219-r0bt85.rb extconf.rb
creating Makefile
current directory: /home/mastodon/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/blurhash-0.1.2/ext/blurhash
make "DESTDIR=" clean
current directory: /home/mastodon/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/blurhash-0.1.2/ext/blurhash
make "DESTDIR="
compiling encode.c
encode.c: In function ‘blurHashForPixels’:
encode.c:25:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
float factors[yComponents][xComponents][3];
^
encode.c:28:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int y = 0; y < yComponents; y++) {
^
encode.c:28:2: note: use option -std=c99 or -std=gnu99 to compile your code
encode.c:29:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int x = 0; x < xComponents; x++) {
^
encode.c:37:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
float *dc = factors[0][0];
^
encode.c:45:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
float maximumValue;
^
encode.c:48:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i = 0; i < acCount * 3; i++) {
^
encode.c:52:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
int quantisedMaximumValue = fmaxf(0, fminf(82, floorf(actualMaximumValue * 166 - 0.5)));
^
encode.c:62:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i = 0; i < acCount; i++) {
^
encode.c: In function ‘multiplyBasisFunction’:
encode.c:75:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int y = 0; y < height; y++) {
^
encode.c:76:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int x = 0; x < width; x++) {
^
encode.c:84:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
float scale = normalisation / (width * height);
^
encode.c: In function ‘encode_int’:
encode.c:129:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i = 0; i < length - 1; i++) divisor *= 83;
^
encode.c:131:10: error: redefinition of ‘i’
for(int i = 0; i < length; i++) {
^
encode.c:129:10: note: previous definition of ‘i’ was here
for(int i = 0; i < length - 1; i++) divisor *= 83;
^
encode.c:131:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i = 0; i < length; i++) {
^
encode.c: At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-self-assign" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-parentheses-equality" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
make: *** [encode.o] Error 1
make failed, exit code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment