Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268252 - app-text/jabref failed to build with sun-sdk-1.6
Summary: app-text/jabref failed to build with sun-sdk-1.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 08:59 UTC by Mathieu Z
Modified: 2009-05-02 16:35 UTC (History)
0 users

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


Attachments
build log (app-text:jabref-2.5_beta:20090502-084941.log,31.72 KB, text/plain)
2009-05-02 09:01 UTC, Mathieu Z
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Z 2009-05-02 08:59:25 UTC
unable to compile anything with the error
"/var/tmp/portage/app-text/jabref-2.5_beta/work/jabref-2.5b/src/java/net/sf/jabref/GUIGlobals.java:248: unmappable character for encoding ASCII
    [javac]         //LANGUAGES.put("Espa??ol", "es"); // Not complete"

GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.13"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="javac"
and of course, the output of emerge --info

Reproducible: Always

Steps to Reproduce:
1. emerge jabref
2.
3.
Comment 1 Mathieu Z 2009-05-02 09:01:10 UTC
Created attachment 190103 [details]
build log

$ emerge --info                                       
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)                                                                                       
=================================================================                               
System uname: Linux-2.6.29-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.0 
Timestamp of tree: Fri, 01 May 2009 04:00:01 +0000                                              
app-shells/bash:     4.0_p17-r1                                                                 
dev-java/java-config: 2.1.7                                                                     
dev-lang/python:     2.6.2                                                                      
dev-util/cmake:      2.6.3-r1                                                                   
sys-apps/baselayout: 2.0.0                                                                      
sys-apps/openrc:     0.4.3-r2                                                                   
sys-apps/sandbox:    1.9                                                                        
sys-devel/autoconf:  2.13, 2.63-r1                                                              
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                  
sys-devel/binutils:  2.19.1-r1                                                                  
sys-devel/gcc-config: 1.4.1                                                                     
sys-devel/libtool:   2.2.6a                                                                     
virtual/os-headers:  2.6.28-r1                                                                  
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                  
CBUILD="x86_64-pc-linux-gnu"                                                                    
CFLAGS="-march=athlon64 -O2 -pipe"                                                              
CHOST="x86_64-pc-linux-gnu"                                                                     
CONFIG_PROTECT="/etc /usr/share/config"                                                         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                  
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ja zh zh_CN zh_TW en_US en_GB"
MAKEOPTS="-j3 --load-average"
PKGDIR="/usr/portage//packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/gentoo-china /usr/local/portage/layman/gentoo-taiwan /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi aim alsa amd64 apache2 audiofile avahi bash-completion bcmath berkdb bidi bittorrent blas bluetooth bzip2 cairo calendar canna caps cdaudio cddb cdparanoia cdr cjk clamav cli cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx dbus dbx dga directfb djvu dri dts dv dvb dvd dvdr dvdread dvi eds encode enscript evo exif expat fam fastcgi fbcon ffmpeg fftw firefox flac flash fontconfig foomaticdb fortran freetds freewnn ftp fuse gd gdbm ginac git glib glitz glut gnome gnome-keyring gnuplot gnutls gphoto2 gpm gpsgs gsl gstreamer gtk gtkhtml gzip hal htmlhandbook httpd iconv icq idn ieee1394 imagemagick imap imlib immqt-bc innodb ipod ipv6 isdnlog jabber java java5 java6 javascript jingle joystick jpeg jpeg2k kde4 kpathsea lame lash latex lcms libcaca libgda libnotify libwww lm_sensors lyx lzo m17n-lib mad matroska midi mime mmx mmxext mng modplug motif mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql mysqli nautilus ncurses neXt netboot nis nls nntp nptl nptlonlynsplugin odbc ofx ogg openal openexr opengl openmp osc oscar pae pam pch pcre pda pdf perl php plasma plotutils png posix postgres ppds pppd python qq qt3support qt4 quicktime readline recodereflection rss ruby samba scanner sdl semantic-desktop session simplexml slang sndfile sockets socks5 speex spell spl sqlite sqlite3 sse sse2 ssl subversion svg sysfs t1lib taglib tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype tta unicode upnp usb v4l v4l2 vcd vhosts videos vim-syntax vorbis wavepack wddx webkit wlm wma wmf wmp wxwindows x264 x86emu xcb xcomposite xforms xft xine xinerama xml xmlrpc xorg xosd xsl xulrunner xv xvid yahoo yaz zip zlib" ALSA_CARDS="emu10k1 emu10k1x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse wacom virtualbox vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja zh zh_CN zh_TW en_US en_GB" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga fbdev virtualbox vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS,PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-05-02 13:38:49 UTC
Weird, looks like javac changes default encoding based on -source and -target? And it picks correct UTF-8 with 1.5 and wrong ASCII with 1.6. Ecj is fine so I didn't catch this. Fixed for now by adding a rewrite call that adds encoding UTF-8.
Anyone from the team has more insight? Javac docs say for -source 1.6 that "However, encoding errors in source files are now reported as errors, instead of warnings, as previously." But there were no warnings previously, and the build.xml doesn't suppress them from what I see.
Comment 3 Serkan Kaba (RETIRED) gentoo-dev 2009-05-02 14:31:14 UTC
it needs to be forced. I just had the same issue in java-gnome. Since we set locale to C encoding defaults to ASCII. And the issue is ignored if the errors are in the comments.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-05-02 16:35:30 UTC
(In reply to comment #3)
> it needs to be forced. I just had the same issue in java-gnome. Since we set
> locale to C encoding defaults to ASCII. And the issue is ignored if the errors
> are in the comments.

Well, the one reported here is in the comments but non-comment ones follow later in the build. So I guess my fix is proper.