News:

SMF - Just Installed!

Main Menu

Linux issues

Started by d.healey, August 02, 2017, 12:37:45 AM

Previous topic - Next topic

Stephen

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

How do I check my compiler version?

Stephen


d.healey

#18
Quote from: Stephen on August 13, 2017, 09:30:49 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.

Stephen

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 :)