Bug 2087 - WAF fails to build ns-3 if the path contains accented chars.
WAF fails to build ns-3 if the path contains accented chars.
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
ns-3-dev
All All
: P5 minor
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-03 15:27 UTC by Tommaso Pecorella
Modified: 2015-04-03 18:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2015-04-03 15:27:49 UTC
Reported here:
https://groups.google.com/forum/#!topic/ns-3-users/KSzjVKX54dE

The error message is:
AirTom:ns-3-dev pecos$ ./waf
Waf: Entering directory `/Users/pecos/Development/workspace/tépè/ns-3-dev/build'
Waf: Leaving directory `/Users/pecos/Development/workspace/tépè/ns-3-dev/build'
Build failed
Traceback (most recent call last):
  File "/Users/pecos/Development/workspace/tépè/ns-3-dev/.waf-1.7.16-9ca17eb492c97b689870b4ff9db75880/waflib/Runner.py", line 162, in start
    st=tsk.runnable_status()
  File "/Users/pecos/Development/workspace/tépè/ns-3-dev/src/wscript", line 504, in runnable_status
    return super(ns3header_task, self).runnable_status()
  File "/Users/pecos/Development/workspace/tépè/ns-3-dev/.waf-1.7.16-9ca17eb492c97b689870b4ff9db75880/waflib/Task.py", line 292, in runnable_status
    key=self.uid()
  File "/Users/pecos/Development/workspace/tépè/ns-3-dev/src/wscript", line 490, in uid
    up(x.abspath().encode())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 36: ordinal not in range(128)

The workaround is obvious, don't use accents in the folder names. However the error message is not obviously pointing out this.
Waf error messages are outside of our scope, but the error itself is in our own wscript.
Comment 1 Tom Henderson 2015-04-03 18:17:07 UTC
fixed in changeset 1d9d2a348289
http://code.nsnam.org/ns-3-dev/rev/1d9d2a348289