Make errors

Jumoke
Posts: 6
Joined: Thu Jun 01, 2017 1:03 pm

Make errors

Postby Jumoke » Thu Jun 01, 2017 1:06 pm

Hello,

I've been trying for a few days through different platforms to compile a blink or hello world example for ESP32 DevKit on Ubuntu and everything always seems to work until I hit the "make" command which gives me the following error:

Code: Select all

/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); 
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PD);
^
make[1]: *** [src/bootloader_random.o] Error 1
make: *** [bootloader_support-build] Error 2
I've tried using multiple methods and toolchains but toolchain always compiles fine but I cannot make or flash.
Last edited by Jumoke on Wed Jul 05, 2017 1:31 pm, edited 1 time in total.

ESP_Sprite
Posts: 2914
Joined: Thu Nov 26, 2015 4:08 am

Re: Make errors

Postby ESP_Sprite » Fri Jun 02, 2017 1:51 am

You are missing the important bit of the error. You have an error in a call to REG_SET_BIT somewhere, but you cut off the bit stating what error and where.

Jumoke
Posts: 6
Joined: Thu Jun 01, 2017 1:03 pm

Re: Make errors

Postby Jumoke » Fri Jun 02, 2017 1:21 pm

Hello,

Thanks for the response. I didn't put the whole code because it was pretty long but here it is

Code: Select all

jumoke@jumoke-VirtualBox:~/Desktop/iotbits_esp32/esp-idf/examples/get-started/blink$ make
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
CC src/bootloader_random.o
In file included from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:20:0,
                 from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/wdev_reg.h:17,
                 from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:16:
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PD);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PD);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PD);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PD);
     ^
make[1]: *** [src/bootloader_random.o] Error 1
make: *** [bootloader_support-build] Error 2
jumoke@jumoke-VirtualBox:~/Desktop/iotbits_esp32/esp-idf/examples/get-started/blink$ make
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
CC src/bootloader_random.o
In file included from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:20:0,
                 from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/wdev_reg.h:17,
                 from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:16:
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PU);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PD);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
     REG_CLR_BIT(PIN_NAME, FUN_PD);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PD);
     ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
             _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);   \
                            ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
 #define ASSERT_IF_DPORT_REG(_r, OP)  TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
                                      ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
             ASSERT_IF_DPORT_REG((_r), REG_SET_BIT);                                                                    \
             ^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
     REG_SET_BIT(PIN_NAME, FUN_PD);
     ^
make[1]: *** [src/bootloader_random.o] Error 1
make: *** [bootloader_support-build] Error 2
jumoke@jumoke-VirtualBox:~/Desktop/iotbits_esp32/esp-idf/examples/get-started/blink$ 
Last edited by Jumoke on Wed Jul 05, 2017 1:30 pm, edited 1 time in total.

ESP_Sprite
Posts: 2914
Joined: Thu Nov 26, 2015 4:08 am

Re: Make errors

Postby ESP_Sprite » Fri Jun 02, 2017 3:44 pm

There seems to be a fair amount of things wrong with your setup, the fact that e.g. esp-idf is complaining about the version of the compiler is indicative of this. Could you try deleting what you have re toolchain and esp-idf and setting up according to the official docs?

Jumoke
Posts: 6
Joined: Thu Jun 01, 2017 1:03 pm

Re: Make errors

Postby Jumoke » Fri Jun 02, 2017 5:32 pm

Hello, here is my output after "make flash"

Code: Select all

jumoke@jumoke-VirtualBox:~/esp/myapp$ make flash
/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
CC src/bootloader_flash.o
/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
make[2]: *** [src/bootloader_flash.o] Error 2
make[1]: *** [bootloader_support-build] Error 2
make: *** [/home/jumoke/esp/myapp/build/bootloader/bootloader.bin] Error 2
jumoke@jumoke-VirtualBox:~/esp/myapp$ 

f.h-f.s.
Posts: 208
Joined: Thu Dec 08, 2016 2:53 pm

Re: Make errors

Postby f.h-f.s. » Sat Jun 03, 2017 6:08 pm

What does your path env variable contain?
bash:

Code: Select all

$PATH
Pretty cool error.
This one is compiling.

Code: Select all

CC src/bootloader_flash.o
This one cant find the compiler.

Code: Select all

WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
And this one states a compiler error.

Code: Select all

/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
Did you remove the old toolchain? Did you remove the old toolchain path from $PATH?

Jumoke
Posts: 6
Joined: Thu Jun 01, 2017 1:03 pm

Re: Make errors

Postby Jumoke » Tue Jun 06, 2017 7:14 pm

Hello, I started all over in a new machine but now this is my error after "make menuconfig"

Code: Select all

jumoke@jumoke-VirtualBox:~/esp/hello_world$ make menuconfig
/home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: ELF: not found
/home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 2: /home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
/home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: /home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: ELF: not found
/home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 2: /home/jumoke/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: Syntax error: "(" unexpected
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
MENUCONFIG


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
And these are my PATHs:

Code: Select all

jumoke@jumoke-VirtualBox:~$ printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/jumoke/esp/xtensa-esp32-elf/bin

jumoke@jumoke-VirtualBox:~/esp/hello_world$ printenv IDF_PATH
/home/jumoke/esp/esp-idf

Jumoke
Posts: 6
Joined: Thu Jun 01, 2017 1:03 pm

Re: Make errors

Postby Jumoke » Tue Jun 06, 2017 7:49 pm

I'm missing a "snap/bin" in my PATH but don't know how to add it.

f.h-f.s.
Posts: 208
Joined: Thu Dec 08, 2016 2:53 pm

Re: Make errors

Postby f.h-f.s. » Thu Jun 15, 2017 12:45 pm

You can export your path in the terminal.

Code: Select all

export PATH=$PATH:/dir/to/add/
this will append to the path variable.

If you add this line in your ~/.profile or ~/.bash_profile ~/.bashrc it will add it at login? (not sure exactly which, i just put them everywhere :lol: )

Jumoke
Posts: 6
Joined: Thu Jun 01, 2017 1:03 pm

Re: Make errors

Postby Jumoke » Wed Jul 05, 2017 1:29 pm

For anyone wondering- I got it to work. I have no idea why Ubuntu 64-bit was not compatible with the 64-bit. I used the 32-bit on Ubuntu 64-bit.

Who is online

Users browsing this forum: MSN [Bot] and 10 guests