autoas / as

automotive software(OSEK & AUTOSAR) and its tool-chain
https://github.com/autoas/ssas-public
959 stars 474 forks source link

scons --menuconfig fail #39

Open spara7C5 opened 3 years ago

spara7C5 commented 3 years ago

Windows10 OS followed procedure @ http://autoas.github.io/as/autosar/2018/02/20/as-study-platform.html

This is the error i get:

scons: Reading SConscript files ... D:\Devel\as\/com/as.tool/config.infrastructure.system/third_party/autosar/base.py:157: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(tmp[2])>0 is not None: D:\Devel\as\/com/as.tool/config.infrastructure.system/third_party/autosar/writer/behavior_writer.py:767: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma? raise ValueError('Invalid portRef "%s" in runnable "%s"'(self.portRef,runnable.ref)) D:\Devel\as\/com/as.tool/config.infrastructure.system/third_party/autosar/writer/behavior_writer.py:770: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma? raise ValueError('Invalid portInterfaceRef "%s" in port "%s"'(port.portInterfaceRef,port.ref)) sh: line 1: cd: D:Develas/com/as.tool/kconfig-frontends: No such file or directory Exception: FAIL of RunCommand "cd D:\Devel\as\/com/as.tool/kconfig-frontends && curl -O http://distortos.org/files/kconfig-frontends-3.12.0-windows.7z && "C:/Program Files/7-Zip/7z.exe" e kconfig-frontends-3.12.0-windows.7z" = 256: File "/d/Devel/as/SConstruct", line 8: asenv = PrepareEnv() File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 193: PrepareBuilding(asenv) File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 270: menuconfig(env) File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 375: RunCommand(cmd2) File "/d/Devel/as/com/as.tool/config.infrastructure.system/building.py", line 652: raise Exception('FAIL of RunCommand "%s" = %s'%(cmd, ret))

AndreasStark commented 3 years ago

I had the same, I found this workaround:

Do these steps manually in CMD: (assuming you checked out the repo to C:\dev\autoas\as)

  1. "cd C:\dev\autoas\as/com/as.tool/kconfig-frontends"
  2. Download manually in browser: http://distortos.org/files/kconfig-frontends-3.12.0-windows.7z into the folder in 1.
  3. back in CMD in the folder from 1. "C:/Program Files\7-Zip/7z.exe" e kconfig-frontends-3.12.0-windows.7z" Then rerun scons --menuconfig, make no changes, save on exit