Graham Murray writes:

> 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
[...]
> 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.

At least the system was probably compiles with -march. Even if the actual 
program then was compiled without, some static system library was, and 
this gives the error.

        Alex
-- 
[EMAIL PROTECTED] mailing list

Reply via email to