port.hpp build error on Ubuntu 8.10

Andrew John Hughes gnu_andrew at member.fsf.org
Sat Jan 17 04:17:34 UTC 2009


2009/1/16 Jesse Glick <jesse.glick at sun.com>:
> Ubuntu 8.10, all updates incl. libc6-dev "2.8~20080505-0ubuntu7". Just
> fetched latest sources from http://hg.openjdk.java.net/jdk7/jdk7/ forest.
>
> g++ -DLINUX -D_GNU_SOURCE -DIA32 -DPRODUCT -I. -I../generated/adfiles
> -I../generated/jvmtifiles -I/space/src/jdk7/hotspot/src/share/vm/asm
> -I/space/src/jdk7/hotspot/src/share/vm/c1
> -I/space/src/jdk7/hotspot/src/share/vm/ci
> -I/space/src/jdk7/hotspot/src/share/vm/classfile
> -I/space/src/jdk7/hotspot/src/share/vm/code
> -I/space/src/jdk7/hotspot/src/share/vm/compiler
> -I/space/src/jdk7/hotspot/src/share/vm/gc_implementation
> -I/space/src/jdk7/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep
> -I/space/src/jdk7/hotspot/src/share/vm/gc_implementation/parNew
> -I/space/src/jdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge
> -I/space/src/jdk7/hotspot/src/share/vm/gc_implementation/shared
> -I/space/src/jdk7/hotspot/src/share/vm/gc_implementation/g1
> -I/space/src/jdk7/hotspot/src/share/vm/gc_interface
> -I/space/src/jdk7/hotspot/src/share/vm/interpreter
> -I/space/src/jdk7/hotspot/src/share/vm/libadt
> -I/space/src/jdk7/hotspot/src/share/vm/memory
> -I/space/src/jdk7/hotspot/src/share/vm/oops
> -I/space/src/jdk7/hotspot/src/share/vm/opto
> -I/space/src/jdk7/hotspot/src/share/vm/prims
> -I/space/src/jdk7/hotspot/src/share/vm/runtime
> -I/space/src/jdk7/hotspot/src/share/vm/services
> -I/space/src/jdk7/hotspot/src/share/vm/utilities
> -I/space/src/jdk7/hotspot/src/cpu/x86/vm
> -I/space/src/jdk7/hotspot/src/os/linux/vm
> -I/space/src/jdk7/hotspot/src/os_cpu/linux_x86/vm -I../generated
> -DHOTSPOT_RELEASE_VERSION="\"14.0-b10\""
> -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"jglick\""
> -DHOTSPOT_LIB_ARCH=\"i386\"
> -DJRE_RELEASE_VERSION="\"1.7.0-internal-jglick_2009_01_16_13_32-b00\""
> -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti
> -fno-exceptions -D_REENTRANT -fcheck-new -m32 -march=i586 -pipe -O3
> -fno-strict-aliasing -DVM_LITTLE_ENDIAN -Werror -Wpointer-arith
> -Wsign-compare    -c -x c++-header -c ../generated/incls/_precompiled.incl
> -o incls/_precompiled.incl.gch
> In file included from ../generated/incls/_precompiled.incl:287:
> /space/src/jdk7/hotspot/src/share/vm/libadt/port.hpp: In function 'void
> bcopy(const void*, void*, size_t)':
> /space/src/jdk7/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
> make[6]: *** [incls/_precompiled.incl.gch] Error 1
>
> Removing -Werror does not help.
>
> BTW it would be great if there were a continuous build somewhere which
> applied all updates to popular distros like Ubuntu and tried to build latest
> JDK sources.
>
>

We fixed this issue in IcedTea:

patches/icedtea-no-bcopy.patch

You may find it easier to use (and Ubuntu already ships IcedTea6).
The tree that uses OpenJDK7 is available at
http://icedtea.classpath.org/hg/icedtea
-- 
Andrew :-)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8



More information about the build-dev mailing list