Binaries compiled with gcc-2.95.2 won't execute.

Tim Bower
Thu Dec 30 13:15:00 GMT 1999

Mark Burgess wrote:
> This is a "feature" of solaris/sparc. Compilation and portability do
> not commute. You should compile on the oldest architecture you have
> if you want the result to run on every host. Not all solaris/sparc
> chips are architecturally compatible. The same applies with any program,
> but you can't always tell which programs are going to fail. It has to
> do with library calls, and changes in OS etc etc...

I had the exact same problem with cfengine starting with version
1.5.2.  Older versions never had the problem. I compiled on a sparc 5
(sun5m) and the binary produced would not run on any sparcs. Although
/usr/local (where gcc and libraries are) is on a ultra 1 (sun4u), do
you suppose that could be an issue?

I just gave up on it for the time being. I was guessing that either
some update to cfengine or gcc would fix it.

548 zaurak:~/cfinput> gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs gcc version 2.8.1

Tim Bower

More information about the Gcc-bugs mailing list