Skip to content

sos-toolchain.cmake doesn't respect custom SDK install directories #233

@syntroniks

Description

@syntroniks

Using mingw on windows,

me@PF1AJJFF MINGW64 ~
$ echo $SOS_SDK_PATH
/c/Users/me/StratifyLabs-SDK
me@PF1AJJFF MINGW64 ~/Documents/path (branch)
$ sl sdk.update
# sdk.update

## output
- tasks:
   - StratifyOS:
      - pull: StratifySDK/StratifyOS
### external.begin

Already up to date.

### external.end

      - compile:
         arch: arm
         cmake options: -DSOS_SKIP_CMAKE=OFF -DBUILD_ALL=ON -DSOS_ARCH_ARM_ALL=OFF -DSOS_ARCH_ARM_V7EM_F5DH=ON
         make options: -j8
         clean: false
         generator: <default>
         build: install
         reconfigure: false
      - StratifySDK/StratifyOS:
         configure:
### external.begin

-- SOS BUILD CONFIG PROVIDED: arm
-- Windows provided toolchain directoryC:/StratifyLabs-SDK/Tools/gcc
-- User provided toolchain directoryarm-none-eabi
-- GCC Toolchain is: C:/StratifyLabs-SDK/Tools/gcc/arm-none-eabi
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: C:/StratifyLabs-SDK/Tools/gcc/bin/arm-none-eabi-g++.exe
CMake Error at CMakeLists.txt:15 (project):
  The CMAKE_CXX_COMPILER:

    C:/StratifyLabs-SDK/Tools/gcc/bin/arm-none-eabi-g++.exe

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:15 (project):
  The CMAKE_C_COMPILER:

    C:/StratifyLabs-SDK/Tools/gcc/bin/arm-none-eabi-gcc.exe

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:15 (project):
  The CMAKE_ASM_COMPILER:

    C:/StratifyLabs-SDK/Tools/gcc/bin/arm-none-eabi-g++.exe

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!

### external.end

         error: failed to execute cmake
   - result: fail

I suspect the issue may be related to

elseif( ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
set(TOOLCHAIN_DIR "C:/StratifyLabs-SDK/Tools/gcc")
message(STATUS "Windows provided toolchain directory " ${TOOLCHAIN_DIR})
set(TOOLCHAIN_EXEC_SUFFIX ".exe")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions