From aserg2004 at list.ru Fri Feb 27 08:45:13 2009 From: aserg2004 at list.ru (Sergey Anosov) Date: Fri, 27 Feb 2009 19:45:13 +0300 Subject: gcc 3.3 and java on mips Message-ID: Hello! 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? Thanks From springer at reservoir.com Fri Feb 27 09:54:20 2009 From: springer at reservoir.com (Jonathan Springer) Date: Fri, 27 Feb 2009 11:54:20 -0600 Subject: gcc 3.3 and java on mips In-Reply-To: References: Message-ID: <49A828CC.8070804@reservoir.com> Sergey Anosov wrote: > > Hello! > > 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? > > Thanks Hi Sergey, 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.) -Jonathan -- Jonathan Springer | Reservoir Labs, Inc. | http://www.reservoir.com/ From Dalibor.Topic at Sun.COM Fri Feb 27 11:42:09 2009 From: Dalibor.Topic at Sun.COM (Dalibor Topic) Date: Fri, 27 Feb 2009 20:42:09 +0100 Subject: gcc 3.3 and java on mips In-Reply-To: <49A82A24.60004@redhat.com> References: <49A828CC.8070804@reservoir.com> <49A82A24.60004@redhat.com> Message-ID: <49A84211.5040004@sun.com> Andrew Haley wrote: > 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. Or to take them from glib - it has atomic builtins, afaik. cheers, dalibor topic -- ******************************************************************* Dalibor Topic Tel: (+49 40) 23 646 738 Java F/OSS Ambassador AIM: robiladonaim Sun Microsystems GmbH Mobile: (+49 177) 2664 192 Nagelsweg 55 http://openjdk.java.net D-20097 Hamburg mailto:Dalibor.Topic at sun.com Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht M?nchen: HRB 161028 Gesch?ftsf?hrer: Thomas Schr?der, Wolfgang Engels, Dr. Roland B?mer Vorsitzender des Aufsichtsrates: Martin H?ring