In nRF5_SDK_14.0.0_3bcc1f7\components\libraries\usbd\app_usbd.c if APP_USBD_CONFIG_LOG_ENABLED is put at 1, the compilation fail. It is solved by adding NRF_LOG_MODULE_REGISTER(); after #include "nrf_log.h". I suspect that other files have the same error.