Iain Buchanan <[EMAIL PROTECTED]> writes:

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

That sounds like you do not have the same processor in both systems and
the processor on the 2nd system is not the same architecture as the
-march= with which the program was compiled. eg if you compiled on a P4
and used -march=pentium4 then tried running the program on a Pentium.
-- 
[EMAIL PROTECTED] mailing list

Reply via email to