gcc 3.3 and java on mips

Andrew Haley aph at redhat.com
Fri Feb 27 10:00:04 PST 2009

Jonathan Springer wrote:
> Sergey Anosov wrote:

>> I make a cross build of IcedTea 1.6 for mips, using zero-port and gcc
>> 3.3.6 compiler.
>> There are some __sync_* finctions in atomic_linux_zero.inline.hpp,
>> which gcc 3.3.6 don't understand.
>> After some googling, I've find that __sync_* builtin functions was
>> first defined in gcc 4.1.0.
>> What can I do? Make a patch, which defines that functions in gcc 3.3,
>> or make realisation in C(C++) for IcedTea? if there is any other way?
> IcedTea is supposed to be built with GCC 4.3+, so your best bet would be
> to upgrade your build environment.  Even if you work around the __sync_*
> issue, you may run into other issues with 3.3.
> http://icedtea.classpath.org/wiki/BuildRequirements
> (CCing porters-dev so some IcedTea folks might see it and comment further.)

gcc 3.3 (May 2003) has a pretty old C++ compiler.  I don't know that it will
even compile modern standard C++.  In my opinion it's not worth trying.

On the other hand, if you really want to use that old compiler, it's not
very hard to write the definitions in assembly language.


More information about the porters-dev mailing list