[Issue] #error The Ethernet Interface library is not supported - I don't want it anyway!

I am having problems compiling an mbed LoRa example: LoraWAN-demo-76. Note that I am compiling for NUCLEO-L476RG, which does not support Ethernet; however, this should be no problem as there is no requirement or even conditional requirement for Ethernet or HTTP support - so why do I see this compile error?

Compiling .pioenvs/nucleo_l476rg/src/system/timer.o
Compiling .pioenvs/nucleo_l476rg/src/system/utilities.o
Compiling .pioenvs/nucleo_l476rg/lib/net/eth/EthernetInterface/EthernetInterface.o
In file included from /Users/nicbkw/.platformio/packages/framework-mbed/libraries/net/eth/EthernetInterface/EthernetInterface.cpp:19:0:

/Users/nicbkw/.platformio/packages/framework-mbed/libraries/net/eth/EthernetInterface/EthernetInterface.h:24:2: error: #error The Ethernet Inte
rface library is not supported on this target
#error The Ethernet Interface library is not supported on this target
^
/Users/nicbkw/.platformio/packages/framework-mbed/libraries/net/eth/EthernetInterface/EthernetInterface.h:27:18: fatal error: rtos.h: No such f
ile or directory
#include "rtos.h"
^
compilation terminated.
Compiling .pioenvs/nucleo_l476rg/lib/net/eth/lwip-eth/arch/TARGET_STM/stm32f4_emac.o
*** [.pioenvs/nucleo_l476rg/lib/net/eth/EthernetInterface/EthernetInterface.o] Error 1
Compiling .pioenvs/nucleo_l476rg/lib/net/https/HTTPHeader.o
/Users/nicbkw/.platformio/packages/framework-mbed/libraries/net/eth/lwip-eth/arch/TARGET_STM/stm32f4_emac.c:2:27: fatal error: stm32f4xx_hal.h:
 No such file or directory
#include "stm32f4xx_hal.h"
^
compilation terminated.
*** [.pioenvs/nucleo_l476rg/lib/net/eth/lwip-eth/arch/TARGET_STM/stm32f4_emac.o] Error 1

Running on macOS Sierra. I have updated my platformio community version/Atom build to current.

Thanks for looking!

Does this project work with mbed online compiler?

Hi Ivan, yes it compiles fine with Compiler Deprecation | Mbed. I did have to alter paths to some header files for the code to compile even part-way within platform.io, but have not otherwise changed any code in the example.

Please open an issue here Issues · platformio/platform-ststm32 · GitHub