Problem with the option --build-profile=debug for waf [DCE 1.4]

1,096 views
Skip to first unread message

Emanuele Zampieri

unread,
Nov 11, 2014, 3:11:40 PM11/11/14
to ns-3-...@googlegroups.com
Hi all, I can not configure waf in debug mode. If I try to run the command " ./waf --build-profile=debug configure" I get an error ( waf: error: no such option: --build-profile).

If you run the command ./waf --help I get:
waf [commands] [options]

Main commands (example: ./waf build -j4)
  build    : executes the build
  clean    : cleans the project
  configure: configures the project
  dist     : makes a tarball for redistributing the sources
  distcheck: checks if the project compiles (tarball from 'dist')
  distclean: removes the build directory
  docs     : build all the documentation: doxygen, manual, tutorial, models
  doxygen  : do a full build, generate the introspected doxygen and then the doxygen
  install  : installs the targets on the system
  list     : lists the targets to execute
  shell    : run a shell with an environment suitably modified to run locally built programs
  sphinx   : build the Sphinx documentation: manual, tutorial, models
  step     : executes tasks in a step-by-step fashion, for debugging
  uninstall: removes the targets installed
  update   : updates the plugins from the *waflib/extras* directory

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -j JOBS, --jobs=JOBS  amount of parallel jobs (6)
  -k, --keep            keep running happily even if errors are found
  -v, --verbose         verbosity level -v -vv or -vvv [default: 0]
  --nocache             ignore the WAFCACHE (if set)
  --zones=ZONES         debugging zones (task_gen, deps, tasks, etc)
  --enable-static       Compile module statically: works only on linux, without python
  --disable-log         Do not compile into the code the log output instructions.
  --disable-assert      Do not compile into the code the assert checks.
  --enable-gcov         Enable code coverage collection.
  --disable-examples    Disable compilation of examples
  --disable-tests       Disable compilation of tests
  --disable-debug       Disable generation of debug information
  --enable-kernel-stack=KERNEL_STACK
                        Path to the prefix where the kernel wrapper headers are installed
  --enable-mpi          Enable MPI and distributed simulation support
  --enable-opt          Enable use of DCE and NS-3 optimized compilation
  --with-ns3=WITH_NS3   Specify the installed directory of ns-3-dev
  --with-elf-loader=WITH_ELF_LOADER
                        Specify the installed directory of elf-loader
  --with-libaspect=WITH_LIBASPECT
                        Specify the installed directory of libaspect.so
  --cwd=CWD_LAUNCH      Set the working directory for a program.
  --command-template=COMMAND_TEMPLATE
                        Template of the command used to run the program given by --run; It should be a shell command string containing %s inside, which will
                        be replaced by the actual program.
  --run=RUN             Run a locally built program; argument can be a program name, or a command starting with the program name.
  --pyrun=PYRUN         Run a python program using locally built dce and ns3 python modules; argument is the path to the python program, optionally followed
                        by command-line options that are passed to the program.
  --dlmloader           Run with DlmLoaderFactory,
  --visualize           Modify --run arguments to enable the visualizer
  --valgrind            Change the default command template to run programs and unit tests with valgrind
  --nopyc               Do not install bytecode compiled .pyc files (configuration) [Default:install]
  --nopyo               Do not install optimised compiled .pyo files (configuration) [Default:install]
  --disable-python      Don't build Python bindings.
  --apiscan             Reserved flag to rescan the API for Python bindings. Needs working GCCXML / pygccxml environment.
  --cpppybind           Reserved flag to generate the C++ API for Python bindings.
  --with-pybindgen=WITH_PYBINDGEN
                        Path to an existing pybindgen source tree to use.
  --with-python=WITH_PYTHON
                        Path to the Python interpreter to use.

  configure options:
    -o OUT, --out=OUT   build dir for the project
    -t TOP, --top=TOP   src dir for the project
    --prefix=PREFIX     installation prefix [default: '/usr/local/']
    --download          try to download the tools if missing

  build and install options:
    -p, --progress      -p: progress bar; -pp: ide output
    --targets=TARGETS   task generators, e.g. "target1,target2"

  step options:
    --files=FILES       files to process, by regexp, e.g. "*/main.c,*/test/main.o"

  install/uninstall options:
    --destdir=DESTDIR   installation root [default: '']
    -f, --force         force file installation

  C Compiler Options:
    --check-c-compiler=CHECK_C_COMPILER
                        On this platform (linux) the following C-Compiler will be checked by default: "gcc icc"

  C++ Compiler Options:
    --check-cxx-compiler=CHECK_CXX_COMPILER
                        On this platform (linux) the following C++ Compiler will be checked by default: "g++ icpc"
[3]-  Exit 127                http://www.google.it/url?source=transpromo
[4]+  Done                    rs=rsmf


actually the option --build-profile is not listed.

How can I fix it?

Thanks to all

Hajime Tazaki

unread,
Dec 12, 2014, 5:52:49 AM12/12/14
to ns-3-...@googlegroups.com

hi,

as the ./waf --help shows, the build-profile option is not
implemented for DCE waf command. debug build is the default
option of DCE build.

hope it clarify your concern.

-- Hajime

At Tue, 11 Nov 2014 12:11:40 -0800 (PST),
Emanuele Zampieri wrote:
>
> [1 <text/plain; UTF-8 (7bit)>]
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
> To post to this group, send email to ns-3-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/d/optout.
> [2 <text/html; UTF-8 (quoted-printable)>]
>

Zampi

unread,
Dec 17, 2014, 8:07:40 AM12/17/14
to ns-3-...@googlegroups.com
Thank you for your help
Reply all
Reply to author
Forward
0 new messages