This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error Building asset_tracker from emStudio from Linux

I got a vague "cmake did not complete" error from studio when the sdk was installed at a hgfs mounted disk. It worked ok when the sdl was installed at non-mounted directory like "~". I am running a Ubuntu 19.10 client hosted on Win10, via VMWare Pro15. Anybody else see this one. Also, there seems to be a new emStudio 4.40 I tried to download the emStudio and then add the nordic package and get the license from Nordic and install it. But I don'tthink it worked because, nrfConnect does not show up. 

  • Hi.

    The Segger embedded Studio (SES) version distributed by Segger does not support the nRF Connect SDK. Instead, you must use the "Nordic edition". You can find a download link for the Nordic Edition in the "Getting Started Assistant" in nRF Connect for Desktop.

    Are you able to build from the command line?

    You have to source zephyr/zephyr-env.sh, and set two environment variables:

    - ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb

    - GNUARMEMB_TOOLCHAIN_PATH=<path to the toolchain, same as the one you set in SES>

    If it does not work, can you send me the build log?

    Best regards,

    Didrik

  • Thanks Didrik- The output of the  command "west build -b nrf9160_pca10090ns is

    echo $ZEPHYR_TOOLCHAIN_VARIANT
    gnuarmemb
    >
    >echo $GNUARMEMB_TOOLCHAIN_PATH
    ~/gnuarmemb/gcc-arm-none-eabi-9-2019-q4-major

    =======================================================================================================

    west build -b nrf9160_pca10090ns -d build
    -- west build: build configuration:
    source directory: /mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker
    build directory: /mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build (created)
    BOARD: nrf9160_pca10090ns (origin: command line)
    -- west build: generating a build system
    -- Using application from '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker'
    Zephyr version: 2.0.99
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7.5", minimum required is "3.4")
    -- Selected BOARD nrf9160_pca10090ns
    -- Found west: /home/ravis/.local/bin/west (found suitable version "0.6.3", minimum required is "0.6.0")
    -- Cache files will be written to: /home/ravis/.cache/zephyr
    -- Loading /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
    -- Overlaying /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/dts/common/common.dts
    Devicetree configuration written to /mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/zephyr/include/generated/generated_dts_board.conf
    Parsing Kconfig tree in /mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/Kconfig
    Loaded configuration '/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig'
    Merged configuration '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/prj.conf'
    Configuration saved to '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/zephyr/.config'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: /home/ravis/gnuarmemb/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc
    -- Using application from '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/samples/nrf9160/spm'
    Zephyr version: 2.0.99
    Changed board to secure nrf9160_pca10090 (NOT NS)
    USING OUT OF TREE BOARD
    USING OUT OF TREE BOARD
    -- Loading /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/dts/common/common.dts
    -- Overlaying /mnt/hgfs/ddrive/nrf9160/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay
    Devicetree configuration written to /mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/spm/zephyr/include/generated/generated_dts_board.conf
    Parsing Kconfig tree in /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/Kconfig
    Loaded configuration '/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig'
    Merged configuration '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/samples/nrf9160/spm/prj.conf'
    Configuration saved to '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/spm/zephyr/.config'
    Traceback (most recent call last):
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 80, in <module>
    main()
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 44, in main
    os.symlink(directory, symlink)
    OSError: [Errno 95] Operation not supported: '/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/include' -> '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/spm/zephyr/misc/generated/syscalls_links/_mnt_hgfs_ddrive_nrf9160_ncs_zephyr_include'
    CMake Error at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:529 (file):
    file STRINGS file
    "/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/spm/zephyr/misc/generated/syscalls_subdirs.txt"
    cannot be read.


    CMake Error at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:546 (add_custom_command):
    add_custom_command Wrong syntax. A TARGET or OUTPUT must be specified.


    -- Using application from '/mnt/hgfs/ddrive/nrf9160/ncs/mcuboot/boot/zephyr'
    Zephyr version: 2.0.99
    Changed board to secure nrf9160_pca10090 (NOT NS)
    USING OUT OF TREE BOARD
    USING OUT OF TREE BOARD
    -- Loading /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/dts/common/common.dts
    Devicetree configuration written to /mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/include/generated/generated_dts_board.conf
    Parsing Kconfig tree in /mnt/hgfs/ddrive/nrf9160/ncs/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig'
    Merged configuration '/mnt/hgfs/ddrive/nrf9160/ncs/mcuboot/boot/zephyr/prj.conf'
    Configuration saved to '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/.config'
    Traceback (most recent call last):
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 80, in <module>
    main()
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 44, in main
    os.symlink(directory, symlink)
    OSError: [Errno 95] Operation not supported: '/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/include' -> '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/misc/generated/syscalls_links/_mnt_hgfs_ddrive_nrf9160_ncs_zephyr_include'
    CMake Error at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:529 (file):
    file STRINGS file
    "/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/misc/generated/syscalls_subdirs.txt"
    cannot be read.


    CMake Error at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:546 (add_custom_command):
    add_custom_command Wrong syntax. A TARGET or OUTPUT must be specified.


    Traceback (most recent call last):
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 80, in <module>
    main()
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 44, in main
    os.symlink(directory, symlink)
    OSError: [Errno 95] Operation not supported: '/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/include' -> '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/zephyr/misc/generated/syscalls_links/_mnt_hgfs_ddrive_nrf9160_ncs_zephyr_include'
    CMake Error at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:529 (file):
    file STRINGS file
    "/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/zephyr/misc/generated/syscalls_subdirs.txt"
    cannot be read.


    CMake Error at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:546 (add_custom_command):
    add_custom_command Wrong syntax. A TARGET or OUTPUT must be specified.


    CMake Warning at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:1562 (message):

    ------------------------------------------------------------
    --- WARNING: __ASSERT() statements are globally ENABLED ---
    --- The kernel will run more slowly and use more memory ---
    ------------------------------------------------------------


    Running Partition Manager...
    -- Configuring incomplete, errors occurred!
    See also "/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/CMakeFiles/CMakeOutput.log".
    See also "/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/CMakeFiles/CMakeError.log".
    ERROR: command exited with status 1: /home/ravis/cmake-3.13.1-Linux-x86_64/bin/cmake -B/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build -S/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker -GNinja -DBOARD=nrf9160_pca10090ns
    >

  • Ravi said:
    Traceback (most recent call last):
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 80, in <module>
    main()
    File "/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/scripts/subfolder_list.py", line 44, in main
    os.symlink(directory, symlink)
    OSError: [Errno 95] Operation not supported: '/mnt/hgfs/ddrive/nrf9160/ncs/zephyr/include' -> '/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/zephyr/misc/generated/syscalls_links/_mnt_hgfs_ddrive_nrf9160_ncs_zephyr_include'
    CMake Error at /mnt/hgfs/ddrive/nrf9160/ncs/zephyr/CMakeLists.txt:529 (file):
    file STRINGS file
    "/mnt/hgfs/ddrive/nrf9160/ncs/nrf/applications/asset_tracker/build/zephyr/misc/generated/syscalls_subdirs.txt"
    cannot be read.

     Does the hgfs support symlinking?

    And do you have read and write privileges to the necessary folders?

  • https://meta.discourse.org/t/hgfs-shared-filesystem-in-vmware-does-not-support-symlinks/76797

    Looks like symlink support is in doubt on VMWare/hgfs. Thanks for the info. I can create the folder on my home directory and build properly.

Related