Project

General

Profile

Bug #2663

scenario template: build fails with --debug

Added by Junxiao Shi about 5 years ago. Updated over 3 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

History

#1

Updated by Junxiao Shi about 5 years ago

Workaround:

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

Updated by Christian Kreuzberger about 5 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.

#3

Updated by Alex Afanasyev over 3 years ago

  • Status changed from New to Closed

The issue has been resolved in the scenario template repository.

Also available in: Atom PDF