inet-tub / ns3-datacenter

104 stars 32 forks source link

build failed #10

Open nkaneda0 opened 1 year ago

nkaneda0 commented 1 year ago

I ran into the following build failure in the initial build with ./waf.

../src/point-to-point/model/qbb-net-device.cc:91:32: error: ‘class ns3::RdmaEgressQueue’ has no member named ‘GetNode’; did you mean ‘GetNBytes’?

std::cout << "node" << this->GetNode().GetId() << " packetSize " << p->GetSize() << " time " << Simulator::Now().GetNanoSeconds() << " unsched " << unsched << std::endl; ^~~ GetNBytes

vamsiDT commented 1 year ago

Hi, could you comment out (or remove) this line and try to build? In the file src/point-to-point/model/qbb-net-device.cc

Ill make the changes and push soon.

nkaneda0 commented 1 year ago

I commented the lines with 'GetNode'. I don't have the same failure but now my WSL2/Ubuntu simply crashes out every time during the build with ./waf. It was the same after cleaning up the build with ./waf clean.

nkaneda0 commented 1 year ago

After reboot of the windows base, this issue seems to have gone away, Thanks,

ofircohen205 commented 1 year ago

Hi @vamsiDT,

I'm also getting build failures.

../src/internet/model/tcp-advanced.cc:208:17: error: variable-sized object may not be initialized bool updated[fb.getMaxHops()] = {false}, updated_any = false; ^~~~~~~ ../src/internet/model/tcp-advanced.cc:398:17: error: variable-sized object may not be initialized bool updated[fb.getMaxHops()] = {false}, updated_any = false; ^~~~~~~

Any idea why it happens? I'm trying to build queueing branch

Thanks!