Re: build zephyr samples/hello_world on WSL reporting error


Carles Cufi
 

Hi there,

 

This is a bug introduced to WSL recently, so there’s nothing we can do on the Zephyr side except wait for Microsoft to fix it. You can downgrade your WSL in the meantime. For more information please see:

https://github.com/Microsoft/WSL/issues/3154

 

Regards,

 

Carles

 

From: devel@... <devel@...> On Behalf Of ???
Sent: 11 June 2018 03:55
To: devel@...
Subject: [Zephyr-devel] build zephyr samples/hello_world on WSL reporting error

 

 

I'm using WSL (Ubuntu on Windows)

I setup build environment as "Getting Started Guide" said, and build samples/hello_world demo appbut cmake reporting error, the error message is:

 

/home/wmx/usb/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/arm-zephyr-eabi/arm-zephyr-eabi-gcc: 1: /home/wmx/usb/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/arm-zephyr-eabi/arm-zephyr-eabi-gcc: Syntax error: ")" unexpected

CMake Error at /home/wmx/win/zephyr/cmake/compiler/gcc.cmake:48 (string):

  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to

  command.

Call Stack (most recent call first):

  /home/wmx/win/zephyr/cmake/toolchain.cmake:40 (include)

  /home/wmx/win/zephyr/cmake/app/boilerplate.cmake:242 (include)

  CMakeLists.txt:2 (include)

 

 

/home/wmx/usb/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/arm-zephyr-eabi/arm-zephyr-eabi-gcc: 1: /home/wmx/usb/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/arm-zephyr-eabi/arm-zephyr-eabi-gcc: Syntax error: ")" unexpected

CMake Error at /home/wmx/win/zephyr/cmake/extensions.cmake:1081 (message):

  No such file or directory: LIBGCC_FILE_NAME: ''

Call Stack (most recent call first):

  /home/wmx/win/zephyr/cmake/compiler/gcc.cmake:100 (assert_exists)

  /home/wmx/win/zephyr/cmake/toolchain.cmake:40 (include)

  /home/wmx/win/zephyr/cmake/app/boilerplate.cmake:242 (include)

  CMakeLists.txt:2 (include)

Join devel@lists.zephyrproject.org to automatically receive all group messages.