I compiled LEDE in docker on a MacBook Pro according to this tutorial: https://onion.io/2bt-cross-compiling-c-programs-part-1/
I had the same problem but got around it by disabling the libwebsocket support for mosquitto-ssl (under the topic 'Network')