Project

General

Profile

Actions

Bug #2663

closed

scenario template: build fails with --debug

Added by Junxiao Shi over 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
build
Target version:
-
Start date:
03/22/2015
Due date:
% Done:

0%

Estimated time:

Description

Steps to reproduce:

  1. install ndnSIM, and apply #2662 note-1 workaround
  2. clone ndnSIM-scenario-template
  3. create file ndnSIM-scenario-template/scenarios/hello.cpp with following code:

    #include <ns3/ndnSIM-module.h>
    
    int
    main()
    {
      return 0;
    }
    
  4. execute ./waf configure --debug followed by ./waf

Expected: code builds

Actual: /usr/local/include/ns3-dev/ns3/int64x64-128.h:53:12: error: comma at end of enumerator list [-Werror=edantic] and many more errors

Actions #1

Updated by Junxiao Shi over 9 years ago

Workaround:

CXXFLAGS='-std=c++0x -Wall' ./waf configure --debug
Actions #2

Updated by Christian Kreuzberger over 9 years ago

I've also looked into this, and I've found this:

https://github.com/cawka/ndnSIM-scenario-template/blob/master/.waf-tools/default-compiler-flags.py#L102#L112

basically, -pedantic is set in the default compiler flags script, causing MANY output that is not really desireable with ndnSIM v2.0.

Removing the -pedantic flag from both compiler options will reduce the output of errors and warnings significantly, without having the side-effect of having CXXFLAGS set manually.

Actions #3

Updated by Alex Afanasyev almost 8 years ago

  • Status changed from New to Closed

The issue has been resolved in the scenario template repository.

Actions

Also available in: Atom PDF