As part of my gcc upgrade woes (see "re: CXXABI error after gcc
upgrade") I am now having trouble running some home-grown programs.

I'm compiling a program blah.cpp with g++ 4.1.2.  I've rebuilt lots of
my system with 4.1.2.  I'm copying the binary onto another gentoo system
which has gcc 4.1.1 as the default compiler.  When I run the binary on
that system, I get this:

$ ./blah
Illegal instruction

or from gdb:

Program received signal SIGILL, Illegal instruction.
0x080ad9c1 in modf ()

what exactly is modf?  Anything to do with "if (a % b == 0)" which I use
a bit?

I recompiled the binary with g++-3.4.6 and
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/3.4.6", but that didn't make any
difference.

Could it be because I've rebuilt libstdc++-v3 and gcc-3.4.6 with
gcc-4.1.2?  google hasn't helped me much here, so I turn to this lists
infinite wisdom ~:)

thanks,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

Chuck Norris' credit cards have no limit. Last weekend, he maxed them out. 

-- 
[EMAIL PROTECTED] mailing list

Reply via email to