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

Assertion failed: CONFIG_FP_SOFTABI is not supported

Hi,


When I try to compile the gps nrf9160 sample with the SUPL enable, the compilation crash each time.

I get the error "Assertion failed: CONFIG_FP_SOFTABI is not supported".

I have download and unzip the SUPL lib and enable the "CONFIG_SUPL_CLIENT_LIB" in prj.conf.

Including boilerplate (Zephyr base): /home/thomas/Documents/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/thomas/Documents/ncs/nrf/samples/nrf9160/gps
-- Zephyr version: 2.3.0-rc1 (/home/thomas/Documents/ncs/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.2") found components: Interpreter 
-- Board: nrf9160dk_nrf9160ns
-- Found toolchain: zephyr (/home/thomas/zephyr-sdk)
-- Found west: /home/thomas/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found dtc: /home/thomas/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/thomas/Documents/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
nrf9160dk_nrf9160ns.dts.pre.tmp:394.32-398.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property
nrf9160dk_nrf9160ns.dts.pre.tmp:93.42-105.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000)
nrf9160dk_nrf9160ns.dts.pre.tmp:342.19-348.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
-- Generated zephyr.dts: /home/thomas/Documents/ncs/nrf/samples/nrf9160/gps/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/thomas/Documents/ncs/nrf/samples/nrf9160/gps/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/thomas/Documents/ncs/zephyr/Kconfig
Loaded configuration '/home/thomas/Documents/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
Merged configuration '/home/thomas/Documents/ncs/nrf/samples/nrf9160/gps/prj.conf'
Configuration saved to '/home/thomas/Documents/ncs/nrf/samples/nrf9160/gps/build/zephyr/.config'
Kconfig header saved to '/home/thomas/Documents/ncs/nrf/samples/nrf9160/gps/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/thomas/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Cache files will be written to: /home/thomas/.cache/zephyr
CMake Error at /home/thomas/Documents/ncs/zephyr/cmake/extensions.cmake:1457 (message):
  Assertion failed: CONFIG_FP_SOFTABI is not supported
Call Stack (most recent call first):
  ../../../ext/lib/bin/supl/CMakeLists.txt:16 (assert)


-- Configuring incomplete, errors occurred!
See also "/home/thomas/Documents/ncs/nrf/samples/nrf9160/gps/build/CMakeFiles/CMakeOutput.log".
See also "/home/thomas/Documents/ncs/nrf/samples/nrf9160/gps/build/CMakeFiles/CMakeError.log".

Parents Reply Children
  • great! Thank you so much

    #
    # Copyright (c) 2018 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
    #
    
    # CMakeLists.txt - SUPL Client Library for Zephyr
    
    if(CONFIG_FPU)
      if(CONFIG_FP_HARDABI)
        set(float_dir hard-float)
      else()
        assert(0 "Unreachable code")
      endif()
    else()
      assert(0 "CONFIG_FP_SOFTABI is not supported")
    endif()
    
    assert(GCC_M_CPU "GCC_M_CPU must be set to find correct lib")
    
    set(lib_path lib/${GCC_M_CPU}/${float_dir})
    set(SUPL_CLIENT_LIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${lib_path})
    
    set(SUPL_CLIENT_TARGET supl_client)
    
    zephyr_include_directories(include)
    zephyr_library_import(${SUPL_CLIENT_TARGET} ${SUPL_CLIENT_LIB_PATH}/libsupl.a)
    target_link_libraries(${SUPL_CLIENT_TARGET} INTERFACE bsd_nrf9160_xxaa -lc)
    

Related