Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563710 - sys-devel/gcc[gcj] fails to compile jni code when LANG=cs_CZ.utf8
Summary: sys-devel/gcc[gcj] fails to compile jni code when LANG=cs_CZ.utf8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/ml/gcc-patches/20...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-21 18:47 UTC by Miroslav Šulc
Modified: 2018-09-23 22:36 UTC (History)
0 users

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


Attachments
build log (build.log.bz2,289.59 KB, application/x-bzip)
2015-10-21 18:47 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2015-10-21 18:47:11 UTC
Created attachment 415114 [details]
build log

end of the build with the error:
/bin/bash ../../../libtool --tag=CC   --mode=link /var/tmp/portage/sys-devel/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -fexceptions -fasynchronous-unwind-tables -g -march=native -O2 -pipe  -m32 -no-undefined -m32 -o libclasspath.la  jcl.lo jnilink.lo  
libtool: link: /usr/x86_64-pc-linux-gnu/bin/ar rc .libs/libclasspath.a .libs/jcl.o .libs/jnilink.o 
libtool: link: /usr/x86_64-pc-linux-gnu/bin/ranlib .libs/libclasspath.a
libtool: link: ( cd ".libs" && rm -f "libclasspath.la" && ln -s "../libclasspath.la" "libclasspath.la" )
make[8]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/32/libjava/classpath/native/jni/classpath'
make[8]: Entering directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/32/libjava/classpath/native/jni'
/bin/bash ../../scripts/check_jni_methods.sh
Found a problem with the JNI methods declared and implemented.
(<) missing in implementation, (>) missing in header files
> Java_gnu_java_awt_peer_gtk_GtkClipboard_advertiseContent
> Java_gnu_java_awt_peer_gtk_GtkClipboard_initNativeState
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectSignals
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetCanFocus
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetDispatchKeyEvent
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetBackground
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetDimensions
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetForeground
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreenUnlocked
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetPreferredDimensions
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetHasFocus
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetBackground
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetCursor
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetCursorUnlocked
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetForeground
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetParent
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetSensitive
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreenUnlocked
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_isEnabled
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_modalHasGrab
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_realize
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeEventMask
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setVisibleNative
> Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setVisibleNativeUnlocked
> Java_gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer_construct
> Java_gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer_create
> Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_createCheckButton
< Java_gnu_java_awt_peer_gtk_GtkClipboard_advertiseContent
< Java_gnu_java_awt_peer_gtk_GtkClipboard_initNativeState
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectSignals
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetCanFocus
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetDispatchKeyEvent
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetBackground
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetDimensions
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetForeground
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreenUnlocked
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetPreferredDimensions
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetHasFocus
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetBackground
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetCursor
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetCursorUnlocked
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetForeground
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetParent
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetSetSensitive
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreenUnlocked
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_isEnabled
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_modalHasGrab
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_realize
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeEventMask
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setVisibleNative
< Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setVisibleNativeUnlocked
< Java_gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer_construct
< Java_gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer_create
< Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_createCheckButton
Makefile:603: recipe for target 'all-local' failed
make[8]: *** [all-local] Error 1
make[8]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/32/libjava/classpath/native/jni'
Makefile:361: recipe for target 'all-recursive' failed
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/32/libjava/classpath/native/jni'
Makefile:349: recipe for target 'all-recursive' failed
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/32/libjava/classpath/native'
Makefile:413: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/32/libjava/classpath'
Makefile:10240: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/32/libjava'
Makefile:12804: recipe for target 'multi-do' failed
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/libjava'
Makefile:12768: recipe for target 'all-multi' failed
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build/x86_64-pc-linux-gnu/libjava'
Makefile:16257: recipe for target 'all-target-libjava' failed
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.3/work/build'
Makefile:19884: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2


# emerge --info '=sys-devel/gcc-4.9.3::gentoo'
Portage 2.2.23 (python 2.7.10-final-0, hardened/linux/amd64, gcc-4.9.3-vanilla, glibc-2.22-r1, 4.2.3-hardened-r5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.3-hardened-r5-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    24571224 total,  13522332 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 21 Oct 2015 15:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.3 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo
dev-util/ccache:          3.2.3::gentoo
dev-util/cmake:           3.3.2-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync1.cz.gentoo.org/gentoo-portage
    priority: -1000

fordfrog
    location: /usr/src/fordfrog.git
    masters: gentoo
    priority: 0

local
    location: /usr/local/portage
    masters: gentoo

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa amd64 berkdb bzip2 cdda cli cracklib crypt cups cxx dbus dri dvb dvd exif ffmpeg flac gdbm gphoto2 gsm gtk gtk3 hardened iconv icu id3tag ipv6 jack jpeg justify ladspa lcms libass libnotify libproxy mad mmx mmxext modplug modules mp3 mpeg mtp multilib musepack ncurses nls nptl ogg opengl openmp opus pam pax_kernel pcre pdf pie png pulseaudio raw readline samba seccomp session speex sse sse2 ssl ssp svg taglib theora tiff truetype unicode urandom vaapi vdpau vorbis vpx wavpack webp x264 x265 xattr xtpax xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="cs en" NETBEANS_MODULES="*" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-4.9.3::gentoo was built with the following:
USE="cxx fortran hardened (multilib) nls nptl openmp (pie) (ssp) (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -gcj -go -graphite (-libssp) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test (-sanitize) -vanilla" ABI_X86="64"


# emerge -pqv '=sys-devel/gcc-4.9.3::gentoo'
[ebuild   R   ] sys-devel/gcc-4.9.3  USE="cxx fortran gcj* hardened (multilib) nls nptl openmp (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -go -graphite (-libssp) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test (-sanitize) -vanilla"
Comment 1 SpanKY gentoo-dev 2015-10-21 19:41:26 UTC
wild guess, but could you try with LANG=en_US.UTF8 ?
Comment 2 Miroslav Šulc gentoo-dev 2015-10-21 21:54:45 UTC
(In reply to SpanKY from comment #1)
> wild guess, but could you try with LANG=en_US.UTF8 ?

that fixed the issue, thanks :-)
Comment 3 SpanKY gentoo-dev 2015-10-22 14:55:42 UTC
seems like an easy fix.  libjava/classpath/scripts/check_jni_methods.sh.in needs to be updated to run the sort commands through LC_ALL=C too.  that fixes it for me using the cs_CZ locale.
Comment 4 SpanKY gentoo-dev 2015-10-23 03:57:32 UTC
sent patch upstream.  assuming i get a rapid response, should be fixed in the tree after that.
Comment 7 Larry the Git Cow gentoo-dev 2018-09-23 22:36:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d8a61759fc24d5af8749b92259a25ef74808e13

commit 5d8a61759fc24d5af8749b92259a25ef74808e13
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-09-23 21:39:24 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-09-23 22:35:59 +0000

    sys-devel/gcc: cut 1.4 patchset for 4.6.4
    
    Two new patches and four removals:
    - 10_all_default-fortify-source.patch
    - 11_all_gcc-default-format-security.patch
    - 12_all_default-warn-trampolines.patch
    + 34_all_libjava-classpath-locale-sort.patch
      fix sortting on cs_CZ locale
    - 99_all_testsuite-01-Wformat.patch
    + 94_all_ucontext-to-ucontext_t.patch
      fix build failure against glibc-2.28
    
    Bug: https://bugs.gentoo.org/563710
    Bug: https://bugs.gentoo.org/629502
    Package-Manager: Portage-2.3.49, Repoman-2.3.11

 sys-devel/gcc/Manifest            |  1 +
 sys-devel/gcc/gcc-4.6.4-r1.ebuild | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)