← Back to team overview

openjdk team mailing list archive

Bug#759834: avian: FTBFS: src/avian/common.h:115:0: error: "UNUSED" redefined [-Werror]

 

Source: avian
Version: 0.7+20140401-1
Severity: serious
Tags: jessie sid
User: debian-qa@xxxxxxxxxxxxxxxx
Usertags: qa-ftbfs-20140830 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> g++ -m64 -Wall -Wextra -Werror -Wunused-parameter -Winit-self -Wno-non-virtual-dtor -fno-rtti -fno-exceptions -Iclasspath "-I/usr/lib/jvm/java-7-openjdk-amd64/include" -Isrc -Ibuild/linux-x86_64-openjdk -Iinclude  -D__STDC_LIMIT_MACROS -D_JNI_IMPLEMENTATION_ -DAVIAN_VERSION=\"0.7\" -DAVIAN_INFO="\"package 0.7+20140401-1\"" -DUSE_ATOMIC_OPERATIONS -DAVIAN_JAVA_HOME=\""$(echo "/usr/lib/jvm/java-7-openjdk-amd64/jre")"\" -DAVIAN_EMBED_PREFIX=\"/avian-embedded\" -DTARGET_BYTES_PER_WORD=8 -fPIC -fvisibility=hidden "-I/usr/lib/jvm/java-7-openjdk-amd64/include/linux" -Isrc -pthread -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O3 -g3 -DNDEBUG -flto -DAVIAN_PROCESS_compile -DBOOT_CLASSPATH=\"[classpathJar]\" -DAVIAN_CLASSPATH=\"[classpathJar]\"  -DAVIAN_TARGET_ARCH=AVIAN_ARCH_X86_64 -DAVIAN_TARGET_FORMAT=AVIAN_FORMAT_ELF -c $(echo src/main.cpp) -o build/linux-x86_64-openjdk/main.o
> In file included from include/avian/system/system.h:14:0,
>                  from src/main.cpp:16:
> src/avian/common.h:115:0: error: "UNUSED" redefined [-Werror]
>  #  define UNUSED __attribute__((unused))
>  ^
> In file included from /usr/lib/jvm/java-7-openjdk-amd64/include/jni.h:45:0,
>                  from src/main.cpp:14:
> /usr/lib/jvm/java-7-openjdk-amd64/include/jni_md.h:40:0: note: this is the location of the previous definition
>    #define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
>  ^
> cc1plus: all warnings being treated as errors
> makefile:1731: recipe for target 'build/linux-x86_64-openjdk/main.o' failed
> make[2]: *** [build/linux-x86_64-openjdk/main.o] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2014/08/30/avian_0.7+20140401-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures. The build
was done with DEB_BUILD_OPTIONS="parallel=4", so if your packaging tries
to support this, it might be a good idea to explore whether this might
be the cause of the failure.