Created
May 8, 2023 07:59
-
-
Save initcron/d0d0757bd5457308745c091c36f33af9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1:28 pm] Nayan Kankariya | |
=> ERROR [5/5] RUN make all 13.6s | |
------ | |
> [5/5] RUN make all: | |
#0 0.362 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/response.o -MMD -MF src/response.o.d -c src/response.c | |
#0 0.664 src/response.c: In function 'responseWrite': | |
#0 0.667 src/response.c:127:9: warning: implicit declaration of function 'send' [-Wimplicit-function-declaration] | |
#0 0.667 127 | send(fd, buffer->value, strlen(buffer->value), 0); | |
#0 0.667 | ^~~~ | |
#0 1.590 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/template.o -MMD -MF src/template.o.d -c src/template.c | |
#0 1.858 src/template.c: In function 'templateRender': | |
#0 1.860 src/template.c:53:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] | |
#0 1.860 53 | fread(buff + 1, sizeof(char), len, file); | |
#0 1.860 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#0 2.568 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/main.o -MMD -MF src/main.o.d -c src/main.c | |
#0 2.887 src/main.c: In function 'main': | |
#0 2.890 src/main.c:116:31: warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'uint16_t *' {aka 'short unsigned int *'} [-Wformat=] | |
#0 2.890 116 | if (sscanf(argv[1], "%u", &server_port) == 0 || server_port > 65535) { | |
#0 2.890 | ~^ ~~~~~~~~~~~~ | |
#0 2.890 | | | | |
#0 2.890 | | uint16_t * {aka short unsigned int *} | |
#0 2.890 | unsigned int * | |
#0 2.890 | %hu | |
#0 4.426 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/bs.o -MMD -MF src/bs.o.d -c src/bs.c | |
#0 5.681 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/request.o -MMD -MF src/request.o.d -c src/request.c | |
#0 6.794 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/list.o -MMD -MF src/list.o.d -c src/list.c | |
#0 7.589 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/models/like.o -MMD -MF src/models/like.o.d -c src/models/like.c | |
#0 8.408 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/models/account.o -MMD -MF src/models/account.o.d -c src/models/account.c | |
#0 9.493 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/models/connection.o -MMD -MF src/models/connection.o.d -c src/models/connection.c | |
#0 10.27 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/models/session.o -MMD -MF src/models/session.o.d -c src/models/session.c | |
#0 11.07 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/models/post.o -MMD -MF src/models/post.o.d -c src/models/post.c | |
#0 11.31 src/models/post.c: In function 'postGetById': | |
#0 11.31 src/models/post.c:72:20: warning: implicit declaration of function 'bsNewline2BR' [-Wimplicit-function-declaration] | |
#0 11.31 72 | bsNewline2BR((char *)sqlite3_column_text(statement, 3))); | |
#0 11.31 | ^~~~~~~~~~~~ | |
#0 11.31 src/models/post.c:72:20: warning: passing argument 4 of 'postNew' makes pointer from integer without a cast [-Wint-conversion] | |
#0 11.31 72 | bsNewline2BR((char *)sqlite3_column_text(statement, 3))); | |
#0 11.31 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#0 11.31 | | | |
#0 11.31 | int | |
#0 11.31 src/models/post.c:6:58: note: expected 'char *' but argument is of type 'int' | |
#0 11.31 6 | Post *postNew(int id, int createdAt, int authorId, char *body) | |
#0 11.31 | ~~~~~~^~~~ | |
#0 11.32 src/models/post.c: In function 'postGetLatest': | |
#0 11.32 src/models/post.c:107:24: warning: passing argument 4 of 'postNew' makes pointer from integer without a cast [-Wint-conversion] | |
#0 11.32 107 | bsNewline2BR((char *)sqlite3_column_text(statement, 3))); | |
#0 11.32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#0 11.32 | | | |
#0 11.32 | int | |
#0 11.32 src/models/post.c:6:58: note: expected 'char *' but argument is of type 'int' | |
#0 11.32 6 | Post *postNew(int id, int createdAt, int authorId, char *body) | |
#0 11.32 | ~~~~~~^~~~ | |
#0 11.32 src/models/post.c: In function 'postGetLatestGraph': | |
#0 11.32 src/models/post.c:150:24: warning: passing argument 4 of 'postNew' makes pointer from integer without a cast [-Wint-conversion] | |
#0 11.32 150 | bsNewline2BR((char *)sqlite3_column_text(statement, 3))); | |
#0 11.32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#0 11.32 | | | |
#0 11.32 | int | |
#0 11.32 src/models/post.c:6:58: note: expected 'char *' but argument is of type 'int' | |
#0 11.32 6 | Post *postNew(int id, int createdAt, int authorId, char *body) | |
#0 11.32 | ~~~~~~^~~~ | |
#0 12.02 cc -O2 -g -std=c99 -Wall -I include -D_POSIX_C_SOURCE=199506L -o src/server.o -MMD -MF src/server.o.d -c src/server.c | |
#0 12.35 src/server.c: In function 'staticHandler': | |
#0 12.35 src/server.c:120:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] | |
#0 12.35 120 | fread(buff, sizeof(char), len, file); | |
#0 12.35 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#0 13.38 mkdir -p bin | |
#0 13.40 cc src/kv.o src/response.o src/template.o src/main.o src/bs.o src/request.o src/list.o src/models/like.o src/models/account.o src/models/connection.o src/models/session.o src/models/post.o src/server.o -o bin/facebooc -lsqlite3 | |
#0 13.50 src/kv.o: file not recognized: file format not recognized | |
#0 13.51 collect2: error: ld returned 1 exit status | |
#0 13.51 make: *** [Makefile:40: bin/facebooc] Error 1 | |
------ | |
dockerfile:6 | |
-------------------- | |
4 | RUN apt-get update && apt-get install -yq build-essential make libsqlite3-dev sqlite3 | |
5 | | |
6 | >>> RUN make all | |
7 | | |
8 | EXPOSE 16000 | |
-------------------- | |
ERROR: failed to solve: process "/bin/sh -c make all" did not complete successfully: exit code: 2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment