Author Topic: Linux issues  (Read 1615 times)

Stephen

  • Administrator
  • Hero Member
  • *****
  • Posts: 259
Re: Linux issues
« Reply #15 on: August 12, 2017, 10:27:34 PM »
Also, here is a screenshot from gdb of the disassembly of the RStream::Initialize function.

http://www.knightsgame.org.uk/disassembly.png

Dave's executable is on the left and mine is on the right.

I'm not sure why, but there are some differences... for example, my version reserves more stack space (0x58 bytes as opposed to 0x30) and mine is doing something with the %fs register which I don't quite understand.

I think most of the code that we're seeing here has actually been inlined from bfs::canonical so it is possible that Dave is picking up a rogue boost header file from somewhere. Alternatively, it might be some difference in compiler version or compiler flags perhaps?

It's a bit of a mystery at the moment!

My compiler version is g++ 5.4.0.

d.healey

  • Jr. Member
  • **
  • Posts: 18
Re: Linux issues
« Reply #16 on: August 12, 2017, 11:53:51 PM »
How do I check my compiler version?

Stephen

  • Administrator
  • Hero Member
  • *****
  • Posts: 259
Re: Linux issues
« Reply #17 on: August 13, 2017, 09:30:49 AM »
g++ --version

d.healey

  • Jr. Member
  • **
  • Posts: 18
Re: Linux issues
« Reply #18 on: August 13, 2017, 11:53:51 AM »
g++ --version
Aha this is interesting my version is 4.8.5. I'll see if I can update it

Update: I uninstalled g++, updated my repos, reinstalled and got version 5.4.1. Did make clean, sudo make install, and now it works :)

Thanks for your patience and help.
« Last Edit: August 13, 2017, 12:28:53 PM by d.healey »

Stephen

  • Administrator
  • Hero Member
  • *****
  • Posts: 259
Re: Linux issues
« Reply #19 on: August 13, 2017, 02:09:11 PM »
That is indeed interesting. I'm not sure why the old version crashes -- maybe your boost library was built using the newer g++ and that caused an incompatibility somehow?

Oh well, I'm glad that you got it working at least.

Also, this means that there is no bug on my side, which is a good result :)