Forum Discussion
create-this-bsp - mkdir: cannot create directory: No such file or directory
- 3 years ago
Hi to all.
"wslpath" command behaviour has been changed.So workaround is to patch a "intelFPGA\22.1std\nios2eds\sdk2\bin\nios2-bsp" script:
adjust_path() {
if [ "${_IS_WSL}" = "1" ] && [[ ! $1 =~ ^\/mnt\/* ]]; then
- echo "$(wslpath -u "$1")" #Line 44
+ echo "$(wslpath -u -a "$1")"
else
echo "$1"
fi
Hi.
Seen this problem on two different computers while it is working on others.
It appears to be a problem with running the "dos2unix" under wsl
''failed to execute :wsl dos2unix create-this-bsp''
Executing: wsl dos2unix create-this-bsp; ./create-this-bsp --cpu-name cpu_lab6 --no-make (C:\<project_path>\software\my_hello_world_bsp)
dos2unix: converting file create-this-bsp to Unix format...
create-this-bsp: Running "nios2-bsp hal . ../../DE2_115_SOPC.sopcinfo --cpu-name cpu_lab6"
wslpath: .
wslpath: .
mkdir: cannot create directory ‘’: No such file or directory
wslpath: .
nios2-bsp: Can't mkdir -p
nios2-bsp hal . ../../DE2_115_SOPC.sopcinfo --cpu-name cpu_lab6 failed
What's with the wierd "‘’" directory name?!?!?
Could it be regional language settings (here it is Scandinavian language)
Why is the wslpath seemingly empty?
Any ideas?
Best regards
Nikolay