compile error of openjdk 7 on ubuntu 8.10
Mark Wielaard
mark at klomp.org
Mon Dec 8 03:03:43 PST 2008
Hi Ying,
On Sat, 2008-12-06 at 11:53 -0600, ying lcs wrote:
> I am trying to compile openjdk 7 on ubuntu 8.10. I get the source
> bundle of dec 4, 2008.
> I pass the 'make sanity'
>
> but when I 'make all',it fails to compile :
> In file included from ../generated/incls/_precompiled.incl:286:
> /media/olddata/openjdk/hotspot/src/share/vm/libadt/port.hpp: In
> function 'void bcopy(const void*, void*, size_t)':
> /media/olddata/openjdk/hotspot/src/share/vm/libadt/port.hpp:40: error:
> 'void bcopy(const void*, void*, size_t)' redeclared inline without
> 'gnu_inline' attribute
> /usr/include/bits/string3.h:90: error: 'void bcopy(const void*, void*,
> size_t)' previously defined here
That is an old issue on modern GNU/Linux installs. Not yet fixed in
jdk7. You might want to try out IcedTea http://icedtea.classpath.org/
which is OpenJDK with fixes for these kind of issues (slowly making
their way upstream, but seeing there are more than 100+ patches now, it
is taking its time). There are two variants, one tracking jdk6:
http://icedtea.classpath.org/hg/icedtea6 and one tracking jdk7:
http://icedtea.classpath.org/hg/icedtea
(You particular issue is address by patches/icedtea-no-bcopy.patch)
IcedTea also helps detecting a free toolchain and set that up for
bootstrapping through a simple ./autogen.sh && ./configure && make
process.
You can ask on distro-pkg-dev at openjdk.java.net where maintainers of the
various GNU/Linux distros collaborate to make sure OpenJDK works as
intended with the various different toolchains for any help needed.
Cheers,
Mark
More information about the jdk7-dev
mailing list