Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664010 - =dev-java/icedtea-3.8.0 on x86 - concurrentMarkSweepGeneration.cpp:1690:1: error: unsupported size for integer register
Summary: =dev-java/icedtea-3.8.0 on x86 - concurrentMarkSweepGeneration.cpp:1690:1: er...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-19 00:25 UTC by Bertrand Jacquin
Modified: 2024-03-29 14:37 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,606.44 KB, text/x-log)
2018-08-19 00:26 UTC, Bertrand Jacquin
Details
emerge --info (info.log,17.11 KB, text/x-log)
2018-08-19 00:26 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2018-08-19 00:25:54 UTC
Hi,

dev-java/icedtea-3.8.0 does not build on x86 and is giving the following error:

Compiling /var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
rm -f concurrentMarkSweepGeneration.o
/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DIA32 -DPRODUCT  -I/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm -I/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.171-b11\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"portage\"" -DHOTSPOT_LIB_ARCH=\"i386\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea 3.8.0\"" -DDISTRIBUTION_ID="\"Gentoo Base System release 2.6, package Gentoo icedtea-3.8.0\""  -march=native -O2 -pipe -fomit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_32 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m32 -march=i586 -pipe -fno-strict-aliasing  -g -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_32 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m32 -march=i586 -pipe -fno-strict-aliasing  -g -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN  -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wreturn-type   -march=native -O2 -pipe -fomit-frame-pointer -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -mstackrealign -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/concurrentMarkSweepGeneration.o.d -fpch-deps -o concurrentMarkSweepGeneration.o /var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp: In member function 'virtual void ConcurrentMarkSweepGeneration::collect(bool, bool, size_t, bool)':
/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:1690:1: error: unsupported size for integer register
 }
 ^
/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:1690:1: error: unsupported size for integer register
/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:1690:1: error: unsupported size for integer register
/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:1690:1: error: unsupported size for integer register
gmake[7]: *** [/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/make/linux/makefiles/rules.make:144: concurrentMarkSweepGeneration.o] Error 1
gmake[7]: Leaving directory '/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk.build-boot/hotspot/linux_i486_compiler2/product'
gmake[6]: *** [/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/make/linux/makefiles/top.make:120: the_vm] Error 2
gmake[5]: *** [/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/make/linux/Makefile:297: product] Error 2
gmake[6]: Leaving directory '/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk.build-boot/hotspot/linux_i486_compiler2/product'
gmake[5]: Leaving directory '/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk.build-boot/hotspot'
gmake[4]: *** [Makefile:231: generic_build2] Error 2
gmake[4]: Leaving directory '/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/make'
gmake[3]: Leaving directory '/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/hotspot/make'
gmake[3]: *** [Makefile:177: product] Error 2
gmake[2]: Leaving directory '/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot/make'
gmake[2]: *** [HotspotWrapper.gmk:45: /var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk.build-boot/hotspot/_hotspot.timestamp] Error 2
gmake[1]: *** [/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk-boot//make/Main.gmk:109: hotspot-only] Error 2
gmake[1]: Leaving directory '/var/tmp/portage/dev-java/icedtea-3.8.0/work/icedtea-3.8.0/openjdk.build-boot'
make: *** [Makefile:2680: stamps/icedtea-boot.stamp] Error 2
 * ERROR: dev-java/icedtea-3.8.0::gentoo failed (compile phase):
 *   emake failed

Build is made using 7.3.0 and USE="headless-awt jbootstrap source sunec system-lcms%* -alsa (-cacao) -cups -doc -examples -gtk (-jamvm) -kerberos -libressl -nsplugin -pax_kernel (-pch) -pulseaudio -sctp (-selinux) (-shenandoah) -smartcard -test -webstart -zero"

Please find attached the full log and emerge --info
Comment 1 Bertrand Jacquin 2018-08-19 00:26:19 UTC
Created attachment 543968 [details]
build.log
Comment 2 Bertrand Jacquin 2018-08-19 00:26:53 UTC
Created attachment 543970 [details]
emerge --info
Comment 3 James Le Cuirot gentoo-dev 2018-08-19 20:50:28 UTC
Did you try this more than once because the error looks weird to me, like some kind of disk or memory corruption. I was also unable to reproduce it in an x86 chroot with gcc 7.3.0.
Comment 4 Bertrand Jacquin 2018-08-19 21:16:56 UTC
(In reply to James Le Cuirot from comment #3)
> Did you try this more than once because the error looks weird to me, like
> some kind of disk or memory corruption. I was also unable to reproduce it in
> an x86 chroot with gcc 7.3.0.

Yes, I did. -j4, -j1, reboot, -j4, -j1 and the result is always the same.

The build is made on a QEmu instance, I also tried to build it in a chroot on the physical host as well.

I am using some hardened flags in the kernel (CONFIG_CC_STACKPROTECTOR, CONFIG_SLAB_FREELIST_RANDOM, CONFIG_SLAB_MERGE_DEFAULT, CONFIG_HARDENED_USERCOPY, CONFIG_SLAB_FREELIST_HARDENED, CONFIG_REFCOUNT_FULL), should I share it as well ?
Comment 5 James Le Cuirot gentoo-dev 2018-08-19 22:21:22 UTC
(In reply to Bertrand Jacquin from comment #4)
> I am using some hardened flags in the kernel (CONFIG_CC_STACKPROTECTOR,
> CONFIG_SLAB_FREELIST_RANDOM, CONFIG_SLAB_MERGE_DEFAULT,
> CONFIG_HARDENED_USERCOPY, CONFIG_SLAB_FREELIST_HARDENED,
> CONFIG_REFCOUNT_FULL), should I share it as well ?

I have the stack protector stuff enabled (the config names changed recently) but not the other stuff. I'm not going to try that myself though.

I don't use -march=native, I wonder if it's a bug relating to that.
Comment 6 Bertrand Jacquin 2018-08-20 20:31:45 UTC
(In reply to James Le Cuirot from comment #5)
> (In reply to Bertrand Jacquin from comment #4)
> > I am using some hardened flags in the kernel (CONFIG_CC_STACKPROTECTOR,
> > CONFIG_SLAB_FREELIST_RANDOM, CONFIG_SLAB_MERGE_DEFAULT,
> > CONFIG_HARDENED_USERCOPY, CONFIG_SLAB_FREELIST_HARDENED,
> > CONFIG_REFCOUNT_FULL), should I share it as well ?
> 
> I have the stack protector stuff enabled (the config names changed recently)
> but not the other stuff. I'm not going to try that myself though.
> 
> I don't use -march=native, I wonder if it's a bug relating to that.

I was able to build it using sys-devel/gcc-6.4.0-r3
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-29 14:37:13 UTC
Package removed.