Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
syntroniks opened this issue Aug 25, 2020 · 3 comments
Open

Comments

@syntroniks
Copy link

syntroniks commented Aug 25, 2020

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")

@syntroniks
Copy link
Author

syntroniks commented Aug 25, 2020

Even if it was hitting the correct directory, it looks like sl sdk.install didn't do anything (I'm obtaining this copy from the new link, not ..../slwin)

$ sl sdk.install
# sdk.install

## output
- downloading: ##################################################
### external.begin


### external.end

- result: success

@syntroniks
Copy link
Author

I have issues with sl version 0.67

$ sl --version
# about

## output
- publisher: Stratify Labs, Inc
- version: 0.67
- gitHash: 49c800d
- apiVersion: 3.20.3
- apiGitHash: 97be0da
- sdk: C:/StratifyLabs-SDK
- system: windows_x86_64

But not with version 0.52

$ sl.exe --version
# about

## output
- publisher: Stratify Labs, Inc
- version: 0.52
- gitHash: 4f0a425
- apiVersion: 3.15.0
- apiGitHash: 4abb3ce
# update
latest: 0.70
installed: 0.52
- downloading: ##################################################
update: true
skip: `sl settings.set:key=skipUpdate,value=0.70,add,g`

@tyler-gilbert
Copy link
Member

OK. I am looking into this one and the linux one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants