nRF Connect SDK v3.4.0 - Windows 11 - Fails to compile builds with error CMAKE_BINARY_DIR length (109) exceeds 90 characters

Hello,

Under Windows 11 Pro, nRF Connect SDK v3.4.0 fails to compile builds with error "CMAKE_BINARY_DIR length (109) exceeds 90 characters."

The same build on Windows 11 Pro & NCS v3.3.3 (and previous releases) builds successfully. Also, the same source builds successfully under macOS Sequoia.

I'm not sure why the errors occurs, as Windows 11 MAX_PATH  length is 260 characters.

Appreciate if someone in Support can assist. Thank you.



Kind Regards.

Parents Reply
  • Hi Amanda,

    Thank you for your very quick response. Yes, I can resolve the issue in NCS 3.4.0 by reducing the path length. However, it is likely to occur again as a lot of project paths well exceed 90 characters though probably short of 128.

    This wasn't any issue under Windows 11 until NCS 3.4.0. NCS 3.3.3 and previous releases don't have this arbitrary restriction of 90 characters. Also, it's not an issue under macOS.

    The commit states that "There are tools that can't use long path during build on Windows system." What specific tools are being referenced here?

    I'm certain that other users are going to come across the same issue under Windows 11 with NCS 3.4.0 LTS.

    Is there any reason for selecting the value of 90? Why not 128 characters or a little higher, or revert back to NCS 3.3.3?

    Please reach out to development and convey that potentially a large number of user projects may be impacted by this change, and kindly request a higher value than 90 (e.g. 128). Thank you.

    Kind Regards,
    Ravi

Children
Related