[Ovmsdev] Error compiling simcom and lwip

Mark Webb-Johnson mark at webb-johnson.net
Thu Oct 26 07:41:30 HKT 2017


I just tried a full ‘make clean; make' re-compile on mine, and it worked fine.

Can you check:

1. ESP-IDF version

$ cd ~/esp/esp-idf

$ git status
On branch release/v2.1
Your branch is up-to-date with 'origin/release/v2.1'.
nothing to commit, working tree clean

$ git remote -v
origin	https://github.com/openvehicles/esp-idf.git (fetch)
origin	https://github.com/openvehicles/esp-idf.git (push)

2. Version of xtensa crosstool-NG

$ xtensa-esp32-elf-c++ -v 2>&1 | tail -1
gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0-61-gab8375a)

Then check 'git diff sdkconfig.default sdkconfig’ in your OVMS tree, to make sure that looks ok. Perhaps you don’t have PPP enabled?

$ fgrep PPP sdkconfig
CONFIG_PPP_SUPPORT=y
CONFIG_PPP_PAP_SUPPORT=y
CONFIG_PPP_CHAP_SUPPORT=y
# CONFIG_PPP_MSCHAP_SUPPORT is not set
# CONFIG_PPP_MPPE_SUPPORT is not set
# CONFIG_PPP_DEBUG_ON is not set

And also that your OVMS tree is up-to-date?

Regards, Mark.

> On 26 Oct 2017, at 1:16 AM, Geir Øyvind Vælidalo <geir at validalo.net> wrote:
> 
> Mark,
> 
> I just pulled the latest changes and now simcom and lwip won’t compile.
> 
> Here’s the compiler output:
> 
> CXX esp32can.o
> In file included from /Users/goev/Prosjekter/ovms3/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_peripherals.h:45:0,
>                  from /Users/goev/Prosjekter/ovms3/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32can/./esp32can.cpp:39:
> /Users/goev/Prosjekter/ovms3/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/simcom/src/simcom.h:135:5: error: 'ppp_pcb' does not name a type
>      ppp_pcb*     m_ppp;
>      ^
> /Users/goev/Prosjekter/ovms3/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/simcom/src/simcom.h:136:18: error: field 'm_ppp_netif' has incomplete type 'netif'
>      struct netif m_ppp_netif;
>                   ^
> In file included from /Users/goev/esp/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:38:0,
>                  from /Users/goev/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:47,
>                  from /Users/goev/esp/esp-idf/components/esp32/include/esp_event.h:23,
>                  from /Users/goev/esp/esp-idf/components/esp32/include/esp_wifi.h:68,
>                  from /Users/goev/Prosjekter/ovms3/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/./esp32wifi.h:38,
>                  from /Users/goev/Prosjekter/ovms3/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_peripherals.h:39,
>                  from /Users/goev/Prosjekter/ovms3/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32can/./esp32can.cpp:39:
> /Users/goev/esp/esp-idf/components/lwip/include/lwip/lwip/ip4_addr.h:86:8: note: forward declaration of 'struct netif'
>  struct netif;
>         ^
> make[1]: *** [esp32can.o] Error 1
> make: *** [esp32can-build] Error 2
> Sylfest:OVMS.V3 goev$ make
> 
> Am I missing something? 
> 
> Geir
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.teslaclub.hk/pipermail/ovmsdev/attachments/20171026/29d0cb00/attachment.html>


More information about the OvmsDev mailing list