Giter Site home page Giter Site logo

Comments (3)

alashkin avatar alashkin commented on May 9, 2024

Did you try ./make.sh clean && ./make.sh?

from mongoose-os.

fedy2 avatar fedy2 commented on May 9, 2024

Here the output:

fedy2@guendalinaXII ~/esp/smart.js/platforms/esp8266 $ ./make.sh clean && ./make.sh
  CC user/c_sscanf.c -> build/c_sscanf.o
  CC user/dht11.c -> build/dht11.o
  CC user/disp_task.c -> build/disp_task.o
  CC user/disp_task_net_test.c -> build/disp_task_net_test.o
  CC user/esp_coredump.c -> build/esp_coredump.o
  CC user/esp_data_gen.c -> build/esp_data_gen.o
  CC user/esp_exc.c -> build/esp_exc.o
  CC user/esp_flash_bytes.c -> build/esp_flash_bytes.o
  CC user/esp_gdb.c -> build/esp_gdb.o
  CC user/esp_gpio.c -> build/esp_gpio.o
  CC user/esp_http_client.c -> build/esp_http_client.o
  CC user/esp_i2c.c -> build/esp_i2c.o
  CC user/esp_sj_hal.c -> build/esp_sj_hal.o
  CC user/esp_sj_wifi.c -> build/esp_sj_wifi.o
  CC user/esp_spi.c -> build/esp_spi.o
  CC user/esp_ssl_krypton.c -> build/esp_ssl_krypton.o
  CC user/esp_timers.c -> build/esp_timers.o
  CC user/esp_uart.c -> build/esp_uart.o
  CC user/libc_replacements.c -> build/libc_replacements.o
  CC user/user_main.c -> build/user_main.o
  CC user/util.c -> build/util.o
  CC user/v7_esp.c -> build/v7_esp.o
  CC user/v7_esp_hw.c -> build/v7_esp_hw.o
  CC user/v7_fs.c -> build/v7_fs.o
  CC user/v7_http_eval.c -> build/v7_http_eval.o
user/v7_http_eval.c: In function 'server_eval':
user/v7_http_eval.c:28:3: error: format '%s' expects argument of type 'char *', but argument 5 has type 'void *' [-Werror=format=]
   snprintf(buf, size + 1, "%.*s", (int) size, body);
   ^
user/v7_http_eval.c:28:3: error: format '%s' expects argument of type 'char *', but argument 5 has type 'void *' [-Werror=format=]
user/v7_http_eval.c:29:3: error: passing argument 2 of 'v7_exec' from incompatible pointer type [-Werror]
   err = v7_exec(v7, &v, buf);
   ^
In file included from user/v7_http_eval.c:11:0:
../../src/v7.h:106:13: note: expected 'const char *' but argument is of type 'v7_val_t *'
 enum v7_err v7_exec(struct v7 *, const char *js_code, v7_val_t *result);
             ^
user/v7_http_eval.c:29:3: error: passing argument 3 of 'v7_exec' from incompatible pointer type [-Werror]
   err = v7_exec(v7, &v, buf);
   ^
In file included from user/v7_http_eval.c:11:0:
../../src/v7.h:106:13: note: expected 'v7_val_t *' but argument is of type 'char *'
 enum v7_err v7_exec(struct v7 *, const char *js_code, v7_val_t *result);
             ^
user/v7_http_eval.c:31:3: error: enumeration value 'V7_STACK_OVERFLOW' not handled in switch [-Werror=switch]
   switch (err) {
   ^
user/v7_http_eval.c:31:3: error: enumeration value 'V7_AST_TOO_LARGE' not handled in switch [-Werror=switch]
user/v7_http_eval.c:31:3: error: enumeration value 'V7_INVALID_ARG' not handled in switch [-Werror=switch]
user/v7_http_eval.c:41:3: error: enumeration value 'V7_STACK_OVERFLOW' not handled in switch [-Werror=switch]
   switch (err) {
   ^
user/v7_http_eval.c:41:3: error: enumeration value 'V7_AST_TOO_LARGE' not handled in switch [-Werror=switch]
user/v7_http_eval.c:41:3: error: enumeration value 'V7_INVALID_ARG' not handled in switch [-Werror=switch]
user/v7_http_eval.c:59:3: error: pointer targets in passing argument 2 of 'espconn_sent' differ in signedness [-Werror=pointer-sign]
   espconn_sent(c, resp, strlen(resp));
   ^
In file included from user/v7_http_eval.c:7:0:
/opt/Espressif/ESP8266_SDK/include/espconn.h:290:7: note: expected 'uint8 *' but argument is of type 'char *'
 sint8 espconn_sent(struct espconn *espconn, uint8 *psent, uint16 length);
       ^
user/v7_http_eval.c: In function 'server_serve':
user/v7_http_eval.c:72:3: error: unknown type name 'spiffs_stat'
   spiffs_stat stat;
   ^
user/v7_http_eval.c:73:3: error: unknown type name 'spiffs_file'
   spiffs_file fd = 0;
   ^
user/v7_http_eval.c:79:5: error: pointer targets in passing argument 2 of 'espconn_sent' differ in signedness [-Werror=pointer-sign]
     espconn_sent(c, (char *) not_found, sizeof(not_found));
     ^
In file included from user/v7_http_eval.c:7:0:
/opt/Espressif/ESP8266_SDK/include/espconn.h:290:7: note: expected 'uint8 *' but argument is of type 'char *'
 sint8 espconn_sent(struct espconn *espconn, uint8 *psent, uint16 length);
       ^
user/v7_http_eval.c:85:3: error: implicit declaration of function 'SPIFFS_stat' [-Werror=implicit-function-declaration]
   if ((res = SPIFFS_stat(&fs, filename, &stat)) < 0) {
   ^
user/v7_http_eval.c:85:27: error: 'fs' undeclared (first use in this function)
   if ((res = SPIFFS_stat(&fs, filename, &stat)) < 0) {
                           ^
user/v7_http_eval.c:85:27: note: each undeclared identifier is reported only once for each function it appears in
user/v7_http_eval.c:86:5: error: pointer targets in passing argument 2 of 'espconn_sent' differ in signedness [-Werror=pointer-sign]
     espconn_sent(c, (char *) server_error, sizeof(server_error));
     ^
In file included from user/v7_http_eval.c:7:0:
/opt/Espressif/ESP8266_SDK/include/espconn.h:290:7: note: expected 'uint8 *' but argument is of type 'char *'
 sint8 espconn_sent(struct espconn *espconn, uint8 *psent, uint16 length);
       ^
user/v7_http_eval.c:90:3: error: implicit declaration of function 'SPIFFS_open' [-Werror=implicit-function-declaration]
   if ((fd = SPIFFS_open(&fs, filename, SPIFFS_RDONLY, 0)) < 0) {
   ^
user/v7_http_eval.c:90:40: error: 'SPIFFS_RDONLY' undeclared (first use in this function)
   if ((fd = SPIFFS_open(&fs, filename, SPIFFS_RDONLY, 0)) < 0) {
                                        ^
user/v7_http_eval.c:91:5: error: pointer targets in passing argument 2 of 'espconn_sent' differ in signedness [-Werror=pointer-sign]
     espconn_sent(c, (char *) server_error, sizeof(server_error));
     ^
In file included from user/v7_http_eval.c:7:0:
/opt/Espressif/ESP8266_SDK/include/espconn.h:290:7: note: expected 'uint8 *' but argument is of type 'char *'
 sint8 espconn_sent(struct espconn *espconn, uint8 *psent, uint16 length);
       ^
user/v7_http_eval.c:95:38: error: request for member 'size' in something not a structure or union
   int resp_size = strlen(resp) + stat.size;
                                      ^
user/v7_http_eval.c:98:5: error: pointer targets in passing argument 2 of 'espconn_sent' differ in signedness [-Werror=pointer-sign]
     espconn_sent(c, (char *) server_error, sizeof(server_error));
     ^
In file included from user/v7_http_eval.c:7:0:
/opt/Espressif/ESP8266_SDK/include/espconn.h:290:7: note: expected 'uint8 *' but argument is of type 'char *'
 sint8 espconn_sent(struct espconn *espconn, uint8 *psent, uint16 length);
       ^
user/v7_http_eval.c:104:3: error: implicit declaration of function 'SPIFFS_read' [-Werror=implicit-function-declaration]
   if ((res = SPIFFS_read(&fs, fd, buf + strlen(resp), stat.size)) < 0) {
   ^
user/v7_http_eval.c:104:59: error: request for member 'size' in something not a structure or union
   if ((res = SPIFFS_read(&fs, fd, buf + strlen(resp), stat.size)) < 0) {
                                                           ^
user/v7_http_eval.c:105:5: error: pointer targets in passing argument 2 of 'espconn_sent' differ in signedness [-Werror=pointer-sign]
     espconn_sent(c, (char *) server_error, sizeof(server_error));
     ^
In file included from user/v7_http_eval.c:7:0:
/opt/Espressif/ESP8266_SDK/include/espconn.h:290:7: note: expected 'uint8 *' but argument is of type 'char *'
 sint8 espconn_sent(struct espconn *espconn, uint8 *psent, uint16 length);
       ^
user/v7_http_eval.c:110:3: error: pointer targets in passing argument 2 of 'espconn_sent' differ in signedness [-Werror=pointer-sign]
   espconn_sent(c, (char *) buf, resp_size);
   ^
In file included from user/v7_http_eval.c:7:0:
/opt/Espressif/ESP8266_SDK/include/espconn.h:290:7: note: expected 'uint8 *' but argument is of type 'char *'
 sint8 espconn_sent(struct espconn *espconn, uint8 *psent, uint16 length);
       ^
user/v7_http_eval.c:114:3: error: implicit declaration of function 'SPIFFS_close' [-Werror=implicit-function-declaration]
   SPIFFS_close(&fs, fd);
   ^
user/v7_http_eval.c:68:15: error: unused variable 'ok_gzip' [-Werror=unused-variable]
   const char *ok_gzip = "HTTP/1.1 200 OK\r\nContent-Encoding: gzip\n\r\n";
               ^
user/v7_http_eval.c:64:7: error: variable 'res' set but not used [-Werror=unused-but-set-variable]
   int res;
       ^
cc1: all warnings being treated as errors
make: *** [build/v7_http_eval.o] Error 1

from mongoose-os.

alashkin avatar alashkin commented on May 9, 2024

Sorry, we discontinued support of that sample.

from mongoose-os.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.