GCC 4.x or 3.x

Archives Forums/Linux Discussion/GCC 4.x or 3.x

Brucey(Posted 2008) [#1]
Well, this was a fun ride.

On my "old" Linux system, I ran BlitzMax with GCC 4.x, with no problems at all. Everything worked as I'd expect it to.

So now I get a new system, install Unbuntu fresh, and expect to happily get on with work in the same way. I do a full rebuild of modules.
All my apps crash, at seemingly random places, but interestingly each always nukes at the same place... it might be on a New assignment, or a function call, or whatever.

I tried tracking it down, but I don't really have time at the moment - too far behind in my Linux bug fixing... And unfortunately, since FASM doesn't output anything useful for gdb all I have to go on is a backtrace with no-name functions...

... so I install gcc3.x, rebuild everything, and funnily enough it is all working.

But gcc4.x used to work...

Oh well, for now, I'll be working on 3.x :-p


SebHoll(Posted 2008) [#2]
Are you compiling with a tweaked version of bmk (by placing the correct gcc version on approx. line 155 of bmk_util.bmx)? I'm not having any problems using gcc4.x on my Ubuntu 8.04 PC after I replaced the executables and performed a "Rebuild All Modules".


Brucey(Posted 2008) [#3]
Tweaked? No. I just made symlinks as usual.


SebHoll(Posted 2008) [#4]
I just made symlinks as usual.

That's a bit too advanced Linux for me... Have you tried the method I gave above?


plash(Posted 2008) [#5]
Tweaked? No. I just made symlinks as usual.
Ahh, when I tried to symlink to my windowsxp blitzmax installation mod folder, it crashed like crazy (but with gcc 3.3). It seems it was changing folder names and all sorts of wacky things.


Brucey(Posted 2008) [#6]
Well, I dunno why they don't compile properly under 4.x now... very strange indeed.

I think bmk needs a bit of an overhaul...