Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686064 - =dev-java/openjdk-8.212_p03-r3 on arm64 - g++: error: unrecognized command line option ‘-m64’
Summary: =dev-java/openjdk-8.212_p03-r3 on arm64 - g++: error: unrecognized command li...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2019-05-16 03:41 UTC by Ross Charles C.
Modified: 2020-09-17 07:12 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,159.72 KB, text/plain)
2019-05-16 03:41 UTC, Ross Charles C.
Details
emerge --info =openjdk-8.212_p03 (emerge-info-openjdk.txt,5.58 KB, text/plain)
2019-05-16 03:42 UTC, Ross Charles C.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Charles C. 2019-05-16 03:41:31 UTC
Created attachment 576822 [details]
build.log

/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT  -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.212-b03\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"portage\"" -DHOTSPOT_LIB_ARCH=\"aarch64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""  -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1 -Wno-error -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value   -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -c -MMD -MP -MF ../generated/dependencies/abstractCompiler.o.d -fpch-deps -o abstractCompiler.o /var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/compiler/abstractCompiler.cpp 
/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT  -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.212-b03\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"portage\"" -DHOTSPOT_LIB_ARCH=\"aarch64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""  -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1 -Wno-error -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value   -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -c -MMD -MP -MF ../generated/dependencies/accessFlags.o.d -fpch-deps -o accessFlags.o /var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/utilities/accessFlags.cpp 
/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT  -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.212-b03\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"portage\"" -DHOTSPOT_LIB_ARCH=\"aarch64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""  -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1 -Wno-error -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value   -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -c -MMD -MP -MF ../generated/dependencies/ad_x86_64.o.d -fpch-deps -o ad_x86_64.o ../generated/adfiles/ad_x86_64.cpp 
Compiling ../generated/adfiles/ad_x86_64_clone.cpp
rm -f ad_x86_64_clone.o
/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT  -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.212-b03\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"portage\"" -DHOTSPOT_LIB_ARCH=\"aarch64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""  -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1 -Wno-error -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value   -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -flto -ftree-vectorize -fuse-linker-plugin -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -c -MMD -MP -MF ../generated/dependencies/ad_x86_64_clone.o.d -fpch-deps -o ad_x86_64_clone.o ../generated/adfiles/ad_x86_64_clone.cpp 
g++: error: unrecognized command line option ‘-m64’
g++: error: unrecognized command line option ‘-m64’
gmake[6]: *** [/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/make/linux/makefiles/rules.make:151: abstractCompiler.o] Error 1
gmake[6]: *** Waiting for unfinished jobs....
g++: error: unrecognized command line option ‘-m64’
g++: error: unrecognized command line option ‘-m64’
gmake[6]: *** [/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/make/linux/makefiles/rules.make:151: accessFlags.o] Error 1
g++: error: unrecognized command line option ‘-m64’
g++: error: unrecognized command line option ‘-m64’
gmake[6]: *** [/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/make/linux/makefiles/rules.make:151: ad_x86_64.o] Error 1
g++: error: unrecognized command line option ‘-m64’
g++: error: unrecognized command line option ‘-m64’
gmake[6]: *** [/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/make/linux/makefiles/rules.make:151: ad_x86_64_clone.o] Error 1
gmake[6]: Leaving directory '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/build/linux-aarch64-normal-server-release/hotspot/linux_amd64_compiler2/product'
gmake[5]: *** [/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/make/linux/makefiles/top.make:120: the_vm] Error 2
gmake[5]: Leaving directory '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/build/linux-aarch64-normal-server-release/hotspot/linux_amd64_compiler2/product'
gmake[4]: *** [/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/hotspot/make/linux/Makefile:284: product] Error 2
gmake[4]: Leaving directory '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/build/linux-aarch64-normal-server-release/hotspot'
gmake[3]: *** [Makefile:231: generic_build2] Error 2
gmake[3]: Leaving directory '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/hotspot-jdk8u212-b03/make'
gmake[2]: *** [Makefile:177: product] Error 2
gmake[2]: Leaving directory '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/hotspot-jdk8u212-b03/make'
gmake[1]: *** [HotspotWrapper.gmk:45: /var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/build/linux-aarch64-normal-server-release/hotspot/_hotspot.timestamp] Error 2
gmake[1]: Leaving directory '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03/make'
make: *** [/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03//make/Main.gmk:110: hotspot-only] Error 2
 * ERROR: dev-java/openjdk-8.212_p03-r3::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-java/openjdk-8.212_p03-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/openjdk-8.212_p03-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03'
 * S: '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/jdk8u-jdk8u212-b03'
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.191_p12"
JAVACFLAGS="-source 8 -target 8" COMPILER=""
and of course, the output of emerge --info =openjdk-8.212_p03
Comment 1 Ross Charles C. 2019-05-16 03:42:40 UTC
Created attachment 576824 [details]
emerge --info =openjdk-8.212_p03
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-16 07:25:28 UTC
See also:

Bug #455420: dev-java/icedtea:8 does not respect CC
Bug #455422: dev-java/icedtea:8 does not respect CXX
Bug #455424: dev-java/icedtea:6 does not respect AR

Not sure why that needed three separate bugs where it's just a matter of fixing the toolchain prefix _once_ (and for all), or why it takes so long to fix.
Comment 3 lperkins 2019-12-06 21:10:09 UTC
I get this too.  The configure script correctly detects that -m64 isn't supported.  I don't have -m64 in any of my configuration that I can see.  But then it apparently tries to use it anyway during some part of the build.

I don't see -m64 referenced in the ebuild anywhere either.  Are you guys sure this isn't an upstream bug?
Comment 4 Georgy Yakovlev archtester gentoo-dev 2019-12-06 21:17:55 UTC
It's a ebuild bug, ebuild should pull different tarball on arm64, which contains fixes for build system and source code.

It should not be keyworded on arm64 in current state.

you still can use openjdk-bin:8 and icedtea(-bin).

I'll try to get it fixed at some point.
Comment 5 Georgy Yakovlev archtester gentoo-dev 2019-12-06 21:21:54 UTC
actually, somehow it got stable for openjdk-8.222_p10 on arm64. anyway, I'll try to dig it. 8.212 should go away soon.
Comment 6 Andrew John Hughes 2019-12-07 19:52:25 UTC
Why are you packaging OpenJDK 8 again at all, when the IcedTea package already provides this, and with AArch64/arm64 support?
Comment 7 Georgy Yakovlev archtester gentoo-dev 2020-03-05 06:18:18 UTC
(In reply to Andrew John Hughes from comment #6)
> Why are you packaging OpenJDK 8 again at all, when the IcedTea package
> already provides this, and with AArch64/arm64 support?

mostly for server and android people who need immediate updates and vanilla unmodified openjdk.


Closing this bug, openjdk:8 unkeyworded on arm64, it was keyworded by mistake.
as Andrew suggested,try using icedtea.
Comment 8 Larry the Git Cow gentoo-dev 2020-09-17 07:12:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=514356ac69f2f9f622af3af2f4ff09b895ef738e

commit 514356ac69f2f9f622af3af2f4ff09b895ef738e
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-09-17 07:09:28 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-09-17 07:11:56 +0000

    dev-java/openjdk: add ~arm64 keyword and port
    
    Also make build system respect CC CXX vars
    Bug: https://bugs.gentoo.org/686064
    Package-Manager: Portage-3.0.7, Repoman-3.0.1
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjdk/Manifest                 |  8 +++++
 dev-java/openjdk/openjdk-8.265_p01.ebuild | 50 +++++++++++++++++++++++--------
 2 files changed, 45 insertions(+), 13 deletions(-)