Bug 503 - build.py tries to build non-existent nsc on osx
build.py tries to build non-existent nsc on osx
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
ns-3-dev
All All
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-18 15:39 UTC by Rajib Bhattacharjea
Modified: 2009-02-23 20:50 UTC (History)
1 user (show)

See Also:


Attachments
proposed patch (gjc may want to review) (1.10 KB, patch)
2009-02-18 22:29 UTC, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rajib Bhattacharjea 2009-02-18 15:39:03 UTC
Download script acknowledges that nsc is unsupported on OS X, but then the build script tries to build it and fails.  This is OS X 10.4 on x86


$ ./download.py 
   #
    # Get NSC
    #
    
Architecture (darwin) does not support NSC... skipping

$ ./build.py 
# Build NSC
Entering directory `nsc'
Traceback (most recent call last):
  File "./build.py", line 63, in ?
    sys.exit(main(sys.argv))
  File "./build.py", line 40, in main
    os.chdir(constants.LOCAL_NSC_PATH)
OSError: [Errno 2] No such file or directory: 'nsc'
Comment 1 Tom Henderson 2009-02-18 22:29:25 UTC
Created attachment 380 [details]
proposed patch (gjc may want to review)

sorry, patch attached (tested on OS X and Linux tonight)
Comment 2 Gustavo J. A. M. Carneiro 2009-02-19 05:15:40 UTC
Looks good, feel free to commit.
Comment 3 Rajib Bhattacharjea 2009-02-23 20:50:08 UTC
17:dded122d91ea in ns-3-allinone