Date: Wed, 7 Mar 2012 14:38:58 GMT From: Takuya Harada <tharada@e-mail.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/165818: devel/openjdk7 build failed:/usr/include/sys/stdint.h:68:68: error: missing binary operator before token "(" Message-ID: <201203071438.q27EcwMo022751@red.freebsd.org> Resent-Message-ID: <201203071440.q27EeEjQ051565@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 165818 >Category: ports >Synopsis: devel/openjdk7 build failed:/usr/include/sys/stdint.h:68:68: error: missing binary operator before token "(" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 07 14:40:14 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Takuya Harada >Release: 10.0-current >Organization: Ohu University >Environment: FreeBSD i386.noway.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Mar 3 13:13:08 JST 2012 buildman@i386.noway.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: I had an attempt to build openjdk7 using portmaster, then an error occurred described below: (snip) ===> Building for openjdk-7.2.13 (snip) gmake[6]: Entering directory `/usr/ports/java/openjdk7/work/openjdk/build/bsd-i586/hotspot/outputdir/bsd_i486_compiler2/product' echo Generating precompiled header precompiled.hpp.gch Generating precompiled header precompiled.hpp.gch mkdir -p . /usr/bin/g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DIA32 -DPRODUCT -I. -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/cpu/x86/vm -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os_cpu/bsd_x86/vm -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/bsd/vm -I/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"22.0-b10\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"root\"" -DHOTSPOT_LIB_ARCH=\"i386\" -DJRE_RELEASE_VERSION="\"1.7.0_02-b13\"" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_32 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -pthread -fcheck-new -m32 -march=i586 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -D TARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_32 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -pthread -fcheck-new -m32 -march=i586 -pipe -O3 -fno-strict-aliasing -gstabs -DVM_LITTLE_ENDIAN -Werror -Wpointer-arith -Wconversion -Wsign-compare -c -MMD -MP -MF ../generated/dependencies/precompiled.hpp.gch.d -x c++-header /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/precompiled.hpp -o precompiled.hpp.gch In file included from /usr/include/inttypes.h:33, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:83, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/utilities/globalDefinitions.hpp:33, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/utilities/debug.hpp:29, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/runtime/globals.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/memory/allocation.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/memory/iterator.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/memory/genOopClosures.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/oops/klass.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/runtime/handles.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/code/oopRecorder.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/asm/assembler.hpp:28, from /usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/precompiled.hpp:29: /usr/include/sys/stdint.h:68:68: error: missing binary operator before token "(" gmake[6]: *** [precompiled.hpp.gch] Error 1 gmake[6]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/build/bsd-i586/hotspot/outputdir/bsd_i486_compiler2/product' gmake[5]: *** [the_vm] Error 2 gmake[5]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/build/bsd-i586/hotspot/outputdir/bsd_i486_compiler2/product' gmake[4]: *** [product] Error 2 gmake[4]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/build/bsd-i586/hotspot/outputdir' gmake[3]: *** [generic_build2] Error 2 gmake[3]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/hotspot/make' gmake[2]: *** [product] Error 2 gmake[2]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/hotspot/make' gmake[1]: *** [hotspot-build] Error 2 gmake[1]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk' gmake: *** [build_product_image] Error 2 *** [do-build] Error code 1 Stop in /usr/ports/java/openjdk7. I also had the same error without using portmaster. >How-To-Repeat: portmaster devel/openjdk7 or cd /usr/ports/devel/openjdk7 && make >Fix: Because I already have installed ports-mgmt/portconf, so that I have added these sentences described below: java/openjdk7: CFLAGS=-D__STDC_CONSTANT_MACROS=1 java/openjdk7: CXXFLAGS=-D__STDC_CONSTANT_MACROS=1 Then I have re-compiled devel/openjdk7 using portmaster. No build error has occurred. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203071438.q27EcwMo022751>