Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
icedtea on ppc builds fine, needs keyword
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 96
Location: Wenatchee, WA

PostPosted: Wed Jan 05, 2011 4:44 pm    Post subject: icedtea on ppc builds fine, needs keyword Reply with quote

I have successfully completed emerging icedtea-6.1.9.3 on my G4 PowerBook following the suggested steps in bug 308513. The specific steps I followed differed slightly from the bug though:
Code:
enable gcj flag for sys-devel/gcc
emerge dev-java/gcj-jdk virtual/jdk
emerge icedtea


Some notes:
  • I gave the icedtea ebuild the ~ppc keyword by copying it to a local overlay.
  • dev-java/gcj-jdk is closely tied to your gcc version, I stuck with sys-devel/gcc-4.4.4-r2 so I used dev-java/gcj-jdk-4.4.4.
  • virtual/jdk (version 1.6 in my case) pulled in ibm-jdk-bin and this was my system-vm while building icedtea. It remains unclear to me if gcj is really needed.
  • I don't have a ppc64 to test.


With the above in mind, the point is that icedtea builds. Is there anything else I can do (specific testing) to expedite keywording dev-java/icedtea for ~ppc?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3748

PostPosted: Sun Jan 16, 2011 12:43 pm    Post subject: Reply with quote

as i see it you have already done everything you could : you tested it, it works for you and you gave your feedback in the mentioned bug.
Hopefully some dev finds the time and can reproduce your steps and then add the keywords.

cheers
Back to top
View user's profile Send private message
laurimann
n00b
n00b


Joined: 22 May 2011
Posts: 4

PostPosted: Sun May 22, 2011 11:33 am    Post subject: IcedTea for iMac G5 Reply with quote

I have installed ibm-jdk-bin, because so far it has been the only one working.
I'm trying to install icecat 4.0 but xulrunner fails because of some java problem and i thought i'd fix it by upgrading to icedtea.
"However i was again disappointed by a failure." - The Architect

the output of 'emerge -pqv =dev-java/ecj-gcj-3.5.2-r2':
Code:

[ebuild  N    ] dev-java/ecj-gcj-3.5.2-r2  USE="native"

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


/var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/temp/build.log:
Code:

 * Package:    dev-java/ecj-gcj-3.5.2-r2
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        elibc_glibc kernel_linux native ppc userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking ecjsrc-3.5.2.zip to /var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/work
>>> Source unpacked in /var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/work
>>> Preparing source in /var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/work ...
 * bootstrapping ecj with /usr/powerpc-unknown-linux-gnu/gcc-bin/4.4.5/gcj -C ...
/var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/temp/environment: line 4013: /usr/powerpc-unknown-linux-gnu/gcc-bin/4.4.5/gcj: No such file or directory
 * ERROR: dev-java/ecj-gcj-3.5.2-r2 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 4013:  Called die
 * The specific snippet of code:
 *       ${javac} ${javac_opts} $(find org/ -name '*.java') || die;
 *
 * If you need support, post the output of 'emerge --info =dev-java/ecj-gcj-3.5.2-r2',
 * the complete build log and the output of 'emerge -pqv =dev-java/ecj-gcj-3.5.2-r2'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/temp/environment'.
 * S: '/var/tmp/portage/dev-java/ecj-gcj-3.5.2-r2/work'


emerge --info =dev-java/ecj-gcj-3.5.2-r2:
Code:

Portage 2.1.9.42 (default/linux/powerpc/ppc64/10.0/32bit-userland, gcc-4.4.5, libc-0-r0, 2.6.36-gentoo-r8 ppc64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r8-ppc64-PPC970FX,_altivec_supported-with-gentoo-1.12.14
Timestamp of tree: Sun, 22 May 2011 11:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=G5 -mtune=G5 -O2 -pipe -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=G5 -mtune=G5 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fi"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"
USE="X aac aalib acl alsa altivec amr apng berkdb bzip2 cairo cdda cli cracklib crypt cups cxx dbus dri faac ffmpeg fftw flac fontconfig fortran gcc64 gdbm gif gmp gnutls gpm iconv ipv6 jack jbig jpeg jpeg2k lame lcms midi mmap mng modules mp3 mp3rtp mtp mudflap nas ncurses nls nptl nptlonly nsplugin ogg opengl openmp openvg pam pcre pdf perl png ppc pppd python readline sdl session sndfile ssh ssl svg sysfs tcpd threads tiff truetype udev unicode vorbis wmf xml xorg xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fi" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Ideas?
Oh, and yes, i have only nv drivers, because nouveau seems not to be supporten on ppc/ppc64.

Edit: Added lots of more information for Gentoo developers so they can maybe now help me out with this?
Edit: Also note that the OP did NOT have a PPC64 to test, i do.
Edit: I noticed that my gcc wasn't compiled with gcj support. I am currently re-emerging it. Thank you for your patience.


Last edited by laurimann on Tue May 24, 2011 12:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon May 23, 2011 2:25 am    Post subject: Reply with quote

Nouveau is keyworded on ppc/ppc64, why can't you use it? Is there something I missed when I unmasked it?

As for icedtea, you didn't paste enough of the output for us to help you, sorry.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
laurimann
n00b
n00b


Joined: 22 May 2011
Posts: 4

PostPosted: Mon May 23, 2011 8:39 am    Post subject: Reply with quote

I'm sorry JoseJX, i thought i pasted all relevant information i could get. :( Please help us all and elaborate what more information you require.

As far as i remember compiling nouveau drivers failed on error. Unfortunately i have no more information at this very moment (maybe i do tomorrow) and even if i did, you'd probably say it's not enough as i'd probably post same category of things as i did in my earlier post. I need you to help me to help you. ;)

Edit: Nouveau got fixed. I just didn't know that Nouveau was located at staging drivers ( http://en.gentoo-wiki.com/wiki/Nouveau ) and that i had to set CONFIG_VT_HW_CONSOLE_BINDING=y ( http://nouveau.freedesktop.org/wiki/KernelModeSetting ).
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue May 24, 2011 7:47 pm    Post subject: Reply with quote

Okay, thanks for keeping us updated!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
laurimann
n00b
n00b


Joined: 22 May 2011
Posts: 4

PostPosted: Thu May 26, 2011 5:48 am    Post subject: IcedTea successfully (?) installed. Reply with quote

There has been some progress. What i did was more or less this:
Code:

nano -w /etc/portage/package.accept_keywords

        ...

        # Add keywords for IcedTea.
        # Note that i had to upgrade GCC from 4.4.x to 4.5.2.
        sys-devel/gcc ~ppc64
        dev-java/ecj-gcj ~ppc64
        dev-java/gcj-jdk ~ppc64
        dev-java/icedtea ~ppc64
        sys-apps/lsb-release ~ppc64
        dev-java/icedtea-web ~ppc64
nano -w /etc/portage/package.use

        ...

        sys-devel/gcc gcj
        dev-java/icedtea javascript nio2
nano -w /etc/portage/package.license
        dev-java/imb-jdk-bin IBM-J1.6
emerge ibm-jdk-bin gcc
gcc-config powerpc-unknown-linux-gnu-4.5.2
env-update && source /etc/profile
emerge -1 libtool
emerge -e system
emerge -DNuva world
dispatch-conf
emerge gcj-jdk
emerge -o icedtead && emerge icedtea


Some steps propably did not get mentioned so pay attention if you're trying this at home. In any case i observed that:

    GCC must be latest (unstable) version - ecj-gcj or cgj-jdk demanded this.
    (Almost) all dependencies are compiled with ibm-jdk-bin as stated by OPer.
    gcj-jdk is a MUST when compiling icedtea itself.
    Icedtea did not compile with jamvm flag set. Emake complained something about missing jni functions. I may be able to reproduce the error.
    I disabled cacao flag too for icedtea because it seemed to me like it didn't compile with that set either.
    Icedtea-web failed to install at first (see error below). I emerged it immediately again and this time it was a success.


Here's the error from first icedtea-web emerge:
Code:

/usr/bin/install: cannot create regular file `/var/tmp/portage/dev-java/icedtea-web-1.0.2/image//usr/lib/icedtea6/jre/lib/': No such file or directory
make[1]: *** [install-data-local] Error 1


For more enjoyment (like build logs) please ask and elaborate what you want. ;)
Also there were complications getting IcedTea to co-operate with IceCat.
What I have done already is
Code:

java-config --set-system-vm 3
java-config --set-user-vm 3
eselect java-nsplugin 2

without any success - Icecat still won't recognize that it has a java plugin. :(

Edit: As usual I was too hasty: Icecat recognized IcedTea after i executed the "one size fits all" solution that's part of daily life with Windows: reboot. ;)
Edit: I'm now trying to recompile IcedTea with cacao and then with jamvm support. I'll report here if you're interested?
Back to top
View user's profile Send private message
laurimann
n00b
n00b


Joined: 22 May 2011
Posts: 4

PostPosted: Thu May 26, 2011 9:43 am    Post subject: IcedTea fails with jamvm enabled! Reply with quote

emerge -pqv =dev-java/icedtea-6.1.10.1:
Code:

[ebuild   R   ] dev-java/icedtea-6.1.10.1  USE="cacao hs20 jamvm* javascript nio2 nsplugin nss webstart xrender zero* -debug -doc -examples -pulseaudio (-systemtap)"

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


grep -hiIB 8 "^make.*\[jamvm\] error" /var/tmp/portage/dev-java/icedtea-6.1.10.1/temp/build.log:
Code:

checking /var/tmp/portage/dev-java/icedtea-6.1.10.1/work/icedtea6-1.10.1/openjdk/jdk/src/solaris/hpi/export/hpi_md.h presence... yes
checking for /var/tmp/portage/dev-java/icedtea-6.1.10.1/work/icedtea6-1.10.1/openjdk/jdk/src/solaris/hpi/export/hpi_md.h... yes
checking where hpi.h is installed... /var/tmp/portage/dev-java/icedtea-6.1.10.1/work/icedtea6-1.10.1/openjdk/jdk/src/share/hpi/export
./.libs/libcore.a(dll.o): In function `setJNIMethod':
dll.c:(.text+0x10fc): undefined reference to `convertSig2Simple'
./.libs/libcore.a(dll.o):(.got2+0x5c): undefined reference to `jni_static_stubs'
./.libs/libcore.a(dll.o):(.got2+0x60): undefined reference to `jni_stubs'
collect2: ld returned 1 exit status
make[4]: *** [jamvm] Error 1
--
/bin/sh ../libtool --tag=CC   --mode=link gcc  -mcpu=G5 -mtune=G5 -O2 -pipe -fomit-frame-pointer  -Wl,-O1 -Wl,--as-needed -o jamvm jam.o libcore.la -lz -ldl -lm -lrt -lpthread
libtool: link: gcc -mcpu=G5 -mtune=G5 -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed -o jamvm jam.o  ./.libs/libcore.a -lz -ldl -lm -lrt -lpthread
configure: creating ./config.status
./.libs/libcore.a(dll.o): In function `setJNIMethod':
dll.c:(.text+0x10fc): undefined reference to `convertSig2Simple'
./.libs/libcore.a(dll.o):(.got2+0x5c): undefined reference to `jni_static_stubs'
./.libs/libcore.a(dll.o):(.got2+0x60): undefined reference to `jni_stubs'
collect2: ld returned 1 exit status
make[3]: *** [jamvm] Error 1


And please if you need more information/details please elaborate what exactly you wish for instead of saying "not enough information, cannot help" because that's not going to help anyone at all... :roll:
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu May 26, 2011 4:41 pm    Post subject: Reply with quote

Well, the last time I asked for anything, we needed to see more of the build log, which was what I asked for. You had posted just the output from Portage rather than the actual error.

As for this issue, I'm not a Java person, nor do i maintain the packages, but I might suggest trying the unstable versions of all these packages (perhaps even switching to using ACCEPT_KEYWORDS="~ppc" install). I was able to build the regular icedtea build in an unstable chroot, but I'll try to reproduce your issues using your USE flags.

You may also have some luck asking the Java team, it's possible that this isn't ppc related.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum