OS X: subprocess argument error
emmanuelsearch opened this issue · 0 comments
emmanuelsearch commented
On OS X cosy.py throws an error parsing the subprocess output:
$ ./cosy.py ../../../examples/hello-world/ samr21-xpro
nm: Unknown command line argument '--line-numbers'. Try: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -help'
nm: Did you mean '-time-passes'?
Traceback (most recent call last):
File "./cosy.py", line 280, in <module>
nm_out = parse_elffile(elffile)
File "./cosy.py", line 113, in parse_elffile
dump = subprocess.check_output(['nm', '--line-numbers', elffile])
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['nm', '--line-numbers', '../../../examples/hello-world/bin/samr21-xpro/hello-world.elf']' returned non-zero exit status 1