Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no jdk/jre ebuilds working on ppc
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
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Mon Oct 01, 2012 9:44 pm    Post subject: no jdk/jre ebuilds working on ppc Reply with quote

I'm so close to getting this iBook G4 to a point where I can ditch the debian ppc distro! But I'm tripping up on getting a jdk and jre installed for development.

emerge icedtea-bin results in:

Code:

Package:    dev-java/icedtea-bin-7.2.3.2
Repository: gentoo
Maintainer: java@gentoo.org
USE:        X elibc_glibc kernel_linux ppc userland_GNU
FEATURES:   sandbox
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/dev-java/icedtea-bin-7.2.3.2/work
>>> Preparing source in /var/tmp/portage/dev-java/icedtea-bin-7.2.3.2/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/icedtea-bin-7.2.3.2/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/icedtea-bin-7.2.3.2/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/icedtea-bin-7.2.3.2
ERROR: dev-java/icedtea-bin-7.2.3.2 failed (install phase):
  The source directory '/var/tmp/portage/dev-java/icedtea-bin-7.2.3.2/work/icedtea-bin-7.2.3.2' doesn't exist

Call stack:
           ebuild.sh, line 708:  Called ebuild_main 'install'
  phase-functions.sh, line 955:  Called dyn_install
  phase-functions.sh, line 527:  Called die
The specific snippet of code:
        die "The source directory '${S}' doesn't exist"

The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-bin-7.2.3.2/temp/environment'.
Working directory: '/var/tmp/portage/dev-java/icedtea-bin-7.2.3.2'
S: '/var/tmp/portage/dev-java/icedtea-bin-7.2.3.2/work/icedtea-bin-7.2.3.2'


emerge --info '=dev-java/icedtea-bin-7.2.3.2':

Code:

Portage 2.1.11.9 (default/linux/powerpc/ppc32/10.0, gcc-4.5.4, glibc-2.15-r2, 3.4.9-gentoo ppc)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.4.9-gentoo-ppc-7447A,_altivec_supported-with-gentoo-2.1
Timestamp of tree: Sun, 30 Sep 2012 19:00:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
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/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 bash-completion bzip2 cli cracklib crypt cxx dri fortran gdbm git gnuplot gnutls gpm gzip iconv ipv6 latex mbox modules mudflap mysql ncurses nls nptl openmp pam pcre ppc pppd python readline session ssh ssl tcpd threads unicode vim-syntax 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="kexi words flow plan sheets stage tables krita karbon braindump" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident dummy v4l" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


I've read a bunch of older forum threads, and a couple of them made me think that java on ppc isn't possible without overlays. Is that the case?

[Edited 10/3/2012]
I can't get any of the jdk/jre packages installed. They each have their own problems:
- oracle: doesn't support ppc.
- ibm: binary file not available on their website for download.
- icedtea: circular dependency, depends on icedtea for build.
- icedtea-bin: fails with missing directory, original error above)./


Last edited by bryanvick on Wed Oct 03, 2012 4:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1028
Location: Romania

PostPosted: Wed Oct 03, 2012 9:53 am    Post subject: Reply with quote

You have these options:
=dev-java/icedtea-6.1.11.4 (must be build from sources)
dev-java/ibm-jdk-bin (version 6/1.6, you have to sign up and download the binary package from ibm's web site)
_________________
My Smooth Computer
MB: VIA 82C598MVP on DFI P5BV3+/Rev. B+
CPU: AMD K6-II 333 MHz | RAM: 256 MB SDRAM
Video: Asus MB19TU on nVidia GeForce MX4000 64 MB
Sound: CM8738 | Net: RTL-8139
PATA HDD WD 80 GB & DVD-RW LG 16x
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Wed Oct 03, 2012 4:48 pm    Post subject: Reply with quote

=dev-java/icedtea-6.1.11.4 results in circular dependencies:

Code:

dev-java/icedtea-6.1.11.4::gentoo, ebuild scheduled for merge) depends on
dev-java/icedtea-6.1.11.4::gentoo, ebuild scheduled for merge) (buildtime)


As this guy mentioned in January, the file needed from IBM isn't available.
http://forums.gentoo.org/viewtopic-p-7032516.html

I'm not even able to find the binary file he found.

He also asks a question that makes me think that I need overlays to make icedtea work on ppc:
Quote:

Is everyone else using icedtea through an overlay for ppc java now?


The same thread also mentions that oracle's jdk/jre doesn't support ppc.

I'm new to gentoo, so this is raising a bunch of questions:

I looked into the ebuild of icedtea-bin, and it seems the problem is that there is no URL for ppc, or any other mention of ppc in the ebuild. Shouldn't emerge know that ppc isn't supported by that ebuild, and then require me to set a USE flag to proceed?

I've never submitted a gentoo bug report, is this a valid bug? Should I file a bug for icedtea, icedtea-bin, and ibm-jdk-bin since none seem to work for ppc?

This is my first gentoo install; do gentoo users ever bypass portage and install from source? If portage doesn't have a ppc java solution, I suppose I could go this route, but then I'm in dependency hell. Should I try and help the ppc/java team to get their ebuilds working?
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1028
Location: Romania

PostPosted: Wed Oct 03, 2012 5:56 pm    Post subject: Reply with quote

Try to emerge dev-java/gcj-jdk first then =dev-java/icedtea-6.1.11.4.
_________________
My Smooth Computer
MB: VIA 82C598MVP on DFI P5BV3+/Rev. B+
CPU: AMD K6-II 333 MHz | RAM: 256 MB SDRAM
Video: Asus MB19TU on nVidia GeForce MX4000 64 MB
Sound: CM8738 | Net: RTL-8139
PATA HDD WD 80 GB & DVD-RW LG 16x
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Wed Oct 03, 2012 6:59 pm    Post subject: Reply with quote

gcc failed to compile.

Should I try to install an older version? I had to set a bunch of ~ppc keywords in my package.use:
Code:

sys-devel/gcc-4.6.3 ~ppc
dev-java/gcj-jdk-4.6.3-r1 ~ppc
dev-java/ecj-gcj-3.6 ~ppc


For example, looking at the ebuilds available in sys-devel/gcc on my system, it looks like gcc 4.5.4 is the latest that doesn't have ~ppc. Should I try installing that version of gcc, since it is marked as stable?

Build failure log:
Code:

Package:    sys-devel/gcc-4.6.3
Repository: gentoo
Maintainer: toolchain@gentoo.org
USE:        cxx doc elibc_glibc fortran gcj go gtk kernel_linux mudflap nls nptl openmp ppc userland_GNU
FEATURES:   sandbox

LTO support is still experimental and unstable.
Any bugs resulting from the use of LTO will not be fixed.

>>> Unpacking source...
>>> Unpacking gcc-4.6.3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-patches-1.7.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-piepatches-v0.5.2.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.4.3-specs-0.2.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
Applying Gentoo patches ...
...(many patches applied)
>>> Source unpacked in /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Compiling source in /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3 ...
CFLAGS="-O2 -pipe -mcpu=G4 -fno-strict-aliasing"
CXXFLAGS="-O2 -pipe -mcpu=G4 -fno-strict-aliasing"
Configuring gcc ...
configuring for GCC_LANG: c,c++,java,go,fortran

PREFIX:         /usr
BINPATH:         /usr/powerpc-unknown-linux-gnu/gcc-bin/4.6.3
LIBPATH:         /usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3
DATAPATH:      /usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3
STDCXX_INCDIR:   /usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3/include/g++-v4

Configuring GCC with:
   --prefix=/usr
   --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.6.3
   --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3/include
   --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3
   --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3/man
   --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3/info
   --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3/include/g++-v4
   --host=powerpc-unknown-linux-gnu
   --build=powerpc-unknown-linux-gnu
   --disable-altivec
   --disable-fixed-point
   --without-ppl
   --without-cloog
   --enable-lto
   --enable-nls
   --without-included-gettext
   --with-system-zlib
   --enable-obsolete
   --disable-werror
   --enable-secureplt
   --disable-multilib
   --enable-libmudflap
   --disable-libssp
   --enable-libgomp
   --with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3/python
   --enable-checking=release
   --enable-java-awt=gtk
   --enable-languages=c,c++,java,go,fortran
   --enable-shared
   --enable-threads=posix
   --enable-__cxa_atexit
   --enable-clocale=gnu
   --enable-targets=all
   --with-bugurl=http://bugs.gentoo.org/
   --with-pkgversion=Gentoo 4.6.3 p1.7, pie-0.5.2

(all checks pass...)

configure: updating cache ../config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders.almost
config.status: creating config.h

(make does its thing for a couple thousand lines ending with this...)

powerpc-unknown-linux-gnu-gcc     -O1 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-O1 -Wl,--as-needed -o build/genenums \
    build/genenums.o build/read-md.o build/errors.o ../build-powerpc-unknown-linux-gnu/libiberty/libiberty.a
build/genhooks \
      /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/doc/tm.texi.in > tmp-tm.texi
echo timestamp > doc/gcc.1
(pod2man --center="GNU" --release="gcc-4.6.3" --date=2012-03-01 --section=1 gcc.pod > doc/gcc.1.T$$ && \
   mv -f doc/gcc.1.T$$ doc/gcc.1) || \
   (rm -f doc/gcc.1.T$$ && exit 1)
case `echo X|tr X '\101'` in \
  A) tr -d '\015' < tmp-tm.texi > tmp2-tm.texi ;; \
  *) tr -d '\r' < tmp-tm.texi > tmp2-tm.texi ;; \
esac
mv tmp2-tm.texi tmp-tm.texi
/bin/sh /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/../move-if-change tmp-tm.texi tm.texi
powerpc-unknown-linux-gnu-gcc      -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-O1 -Wl,--as-needed -o build/genconstants \
    build/genconstants.o build/read-md.o build/errors.o ../build-powerpc-unknown-linux-gnu/libiberty/libiberty.a
powerpc-unknown-linux-gnu-gcc      -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-O1 -Wl,--as-needed -o build/genmddeps \
    build/genmddeps.o build/read-md.o build/errors.o ../build-powerpc-unknown-linux-gnu/libiberty/libiberty.a
powerpc-unknown-linux-gnu-gcc      -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-O1 -Wl,--as-needed -o build/genmodes \
    build/genmodes.o build/errors.o ../build-powerpc-unknown-linux-gnu/libiberty/libiberty.a
powerpc-unknown-linux-gnu-gcc      -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-O1 -Wl,--as-needed -o build/gengenrtl \
    build/gengenrtl.o build/errors.o ../build-powerpc-unknown-linux-gnu/libiberty/libiberty.a
powerpc-unknown-linux-gnu-gcc      -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-O1 -Wl,--as-needed -o build/gengtype \
    build/gengtype.o build/errors.o build/gengtype-lex.o build/gengtype-parse.o build/gengtype-state.o build/version.o ../build-powerpc-unknown-linux-gnu/libiberty/libiberty.a
build/genmodes -m > tmp-min-modes.c
/bin/sh /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/../move-if-change tmp-min-modes.c min-insn-modes.c
echo timestamp > s-modes-m
build/genhooks > tmp-target-hooks-def.h
/bin/sh /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/../move-if-change tmp-target-hooks-def.h \
                 target-hooks-def.h
echo timestamp > s-target-hooks-def-h
build/genmodes > tmp-modes.c
/bin/sh /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/../move-if-change tmp-modes.c insn-modes.c
echo timestamp > s-modes
build/genmddeps /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/config/rs6000/rs6000.md > tmp-mddeps
/bin/sh /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/../move-if-change tmp-mddeps mddeps.mk
echo timestamp > s-mddeps
build/genmodes -h > tmp-modes.h
/bin/sh /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/../move-if-change tmp-modes.h insn-modes.h
echo timestamp > s-modes-h
build/gengenrtl > tmp-genrtl.h
/bin/sh /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/../move-if-change tmp-genrtl.h genrtl.h
echo timestamp > s-genrtl-h
build/gengtype  \
                    -S /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc -I gtyp-input.list -w gtype.state
build/gengtype  \
                    -r gtype.state

make[3]: *** [s-gtype] Killed
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
ERROR: sys-devel/gcc-4.6.3 failed (compile phase):
  emake failed with bootstrap-lean

Call stack:
    ebuild.sh, line   85:  Called src_compile
  environment, line 4007:  Called toolchain_src_compile
  environment, line 4662:  Called gcc_do_make
  environment, line 2338:  Called die
The specific snippet of code:
      emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";



Last edited by bryanvick on Wed Oct 03, 2012 10:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Wed Oct 03, 2012 10:27 pm    Post subject: Reply with quote

I though maybe installing an older version of gcc that didn't have ppc masked out might work. But then I realized that I currently have gcc-4.5.4 installed, which *is* the latest version of gcc that doesn't have ppc installed. So I guess that avenue won't work.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Thu Oct 04, 2012 12:02 am    Post subject: Reply with quote

Code:
 make[3]: *** [s-gtype] Killed
Check dmesg for signs of the OOM killer. Maybe you ran out of memory, in that case add more swap.
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Fri Oct 05, 2012 2:53 am    Post subject: Reply with quote

Yep, I was running out of swap. I though 800MB would be enough, but I guess gcc is a beast! I increased it and have gcc building now. I'll update the thread with results.
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Fri Oct 05, 2012 1:59 pm    Post subject: Reply with quote

That didn't work. Didn't run out of swap this time.

The log has this error in a few places:
Code:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory


I trimmed the log, but left in the make errors, which occurred in a few places:
Code:

Package:    sys-devel/gcc-4.6.3
Repository: gentoo
Maintainer: toolchain@gentoo.org
USE:        cxx doc elibc_glibc fortran gcj go gtk kernel_linux mudflap nls nptl openmp ppc userland_GNU
FEATURES:   sandbox
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

LTO support is still experimental and unstable.
Any bugs resulting from the use of LTO will not be fixed.

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
>>> Unpacking source...
>>> Unpacking gcc-4.6.3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-patches-1.7.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-piepatches-v0.5.2.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.4.3-specs-0.2.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
(applies gentoo patches...)
>>> Source unpacked in /var/tmp/portage/sys-devel/gcc-4.6.3/work
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
>>> Compiling source in /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3 ...
CFLAGS="-O2 -pipe -mcpu=G4 -fno-strict-aliasing"
CXXFLAGS="-O2 -pipe -mcpu=G4 -fno-strict-aliasing"
Configuring gcc ...
configuring for GCC_LANG: c,c++,java,go,fortran

PREFIX:         /usr
BINPATH:         /usr/powerpc-unknown-linux-gnu/gcc-bin/4.6.3
LIBPATH:         /usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3
DATAPATH:      /usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3
STDCXX_INCDIR:   /usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3/include/g++-v4

Configuring GCC with:
   --prefix=/usr
   --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.6.3
   --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3/include
   --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3
   --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3/man
   --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3/info
   --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.6.3/include/g++-v4
   --host=powerpc-unknown-linux-gnu
   --build=powerpc-unknown-linux-gnu
   --disable-altivec
   --disable-fixed-point
   --without-ppl
   --without-cloog
   --enable-lto
   --enable-nls
   --without-included-gettext
   --with-system-zlib
   --enable-obsolete
   --disable-werror
   --enable-secureplt
   --disable-multilib
   --enable-libmudflap
   --disable-libssp
   --enable-libgomp
   --with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/4.6.3/python
   --enable-checking=release
   --enable-java-awt=gtk
   --enable-languages=c,c++,java,go,fortran
   --enable-shared
   --enable-threads=posix
   --enable-__cxa_atexit
   --enable-clocale=gnu
   --enable-targets=all
   --with-bugurl=http://bugs.gentoo.org/
   --with-pkgversion=Gentoo 4.6.3 p1.7, pie-0.5.2

...

*** This configuration is not supported in the following subdirectories:
     zlib gnattools target-libada target-libobjc target-libssp
    (Any other directories should still work fine.)
...

make[4]: *** [syscalls/syscall.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/powerpc-unknown-linux-gnu/libgo'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/powerpc-unknown-linux-gnu/libgo'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/powerpc-unknown-linux-gnu/libgo'
make[1]: *** [all-target-libgo] Error 2
make[1]: *** Waiting for unfinished jobs....

...

make: *** [bootstrap-lean] Error 2
emake failed
ERROR: sys-devel/gcc-4.6.3 failed (compile phase):
  emake failed with bootstrap-lean

Call stack:
    ebuild.sh, line   85:  Called src_compile
  environment, line 4007:  Called toolchain_src_compile
  environment, line 4662:  Called gcc_do_make
  environment, line 2338:  Called die
The specific snippet of code:
      emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";

If you need support, post the output of `emerge --info '=sys-devel/gcc-4.6.3'`,
the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.6.3'`.

Please include /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc-build-logs.tar.bz2 in your bug report

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory



It seems like I'm getting further from what I'm trying to accomplish: get any sort of java development environment on ppc. I don't care if its the most recent version etc. At this point I don't even care who the vendor is. It doesn't seem that there is a java solution for ppc currently. Currently, I'm wrestling with trying to get a new version of gcc, which isn't stable for ppc yet, just so I can get a jdk/jre that also is marked as unstable for ppc.

Is there no tested and stable java implementation for ppc? Reading the forums, is sounds like there was at one point. Is there any way to install an older, stable/ppc tested version of icedtea?

I would love to help in testing or whatever else needs to happen. I want to figure out how to get java on ppc, and then help get the docs updated, since they are still recommending things like IBM and Oracle, which don't work for ppc as stated in my original post. Should I contact the gentoo java team directly?
Back to top
View user's profile Send private message
sno35
Guru
Guru


Joined: 15 May 2004
Posts: 332
Location: Paris, France

PostPosted: Fri Oct 05, 2012 8:03 pm    Post subject: Reply with quote

Hi
I still keep a 4.3.x version of gcc, just in case.
For RAM consumption ... I emerge icedtea7 last WE, took the whole 1G, and most of the 1768M swap, got it in the end.
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Tue Oct 09, 2012 8:49 pm    Post subject: Reply with quote

Well I tried increasing my swap to almost 3.5Gb total, and am still getting the same error.
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1028
Location: Romania

PostPosted: Thu Oct 11, 2012 6:50 pm    Post subject: Reply with quote

You don't have to upgrade gcc, unmask a version < 4.6.0 of dev-java/gcj-jdk:

=dev-java/gcj-jdk-4.5.3
dev-java/ecj-gcj
=dev-java/icedtea-6.1.11.4

> emerge -av dev-java/icedtea
_________________
My Smooth Computer
MB: VIA 82C598MVP on DFI P5BV3+/Rev. B+
CPU: AMD K6-II 333 MHz | RAM: 256 MB SDRAM
Video: Asus MB19TU on nVidia GeForce MX4000 64 MB
Sound: CM8738 | Net: RTL-8139
PATA HDD WD 80 GB & DVD-RW LG 16x
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Fri Oct 12, 2012 5:20 pm    Post subject: Reply with quote

I don't know how to interpret these results:

Code:

$ emerge =dev-java/gcj-jdk-4.5.3 --pretend

These are the packages that would be merged, in order:

Calculating dependencies  ... done!
[ebuild     UD ] sys-devel/gcc-4.5.3-r2 [4.5.4] USE="gcj*"
[ebuild  NS   ~] sys-devel/gcc-4.6.3 [4.5.4] USE="cxx fortran gcj mudflap nls nptl openmp -altivec -bootstrap -build -doc (-fixed-point) -go -graphite -gtk (-hardened) (-libssp) (-multilib) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
[ebuild  N    ~] dev-java/ecj-gcj-3.5.2-r2  USE="native"
[ebuild  N    ~] dev-java/gcj-jdk-4.5.3


I have gcc 4.5.4 installed. So is this dependency list telling me it will install an older version (4.5.3-r2), and then a newer version also (4.6.3)? Why are those two gcc versions listed as dependencies?
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1028
Location: Romania

PostPosted: Sat Oct 13, 2012 3:04 pm    Post subject: Reply with quote

bryanvick wrote:
I don't know how to interpret these results:

Code:

$ emerge =dev-java/gcj-jdk-4.5.3 --pretend

These are the packages that would be merged, in order:

Calculating dependencies  ... done!
[ebuild     UD ] sys-devel/gcc-4.5.3-r2 [4.5.4] USE="gcj*"
[ebuild  NS   ~] sys-devel/gcc-4.6.3 [4.5.4] USE="cxx fortran gcj mudflap nls nptl openmp -altivec -bootstrap -build -doc (-fixed-point) -go -graphite -gtk (-hardened) (-libssp) (-multilib) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
[ebuild  N    ~] dev-java/ecj-gcj-3.5.2-r2  USE="native"
[ebuild  N    ~] dev-java/gcj-jdk-4.5.3


I have gcc 4.5.4 installed. So is this dependency list telling me it will install an older version (4.5.3-r2), and then a newer version also (4.6.3)? Why are those two gcc versions listed as dependencies?


GCC UD -> gcj-jdk must have the same version as gcc
GCC NS -> maybe because you unmasked it, remove it from package.keywords
_________________
My Smooth Computer
MB: VIA 82C598MVP on DFI P5BV3+/Rev. B+
CPU: AMD K6-II 333 MHz | RAM: 256 MB SDRAM
Video: Asus MB19TU on nVidia GeForce MX4000 64 MB
Sound: CM8738 | Net: RTL-8139
PATA HDD WD 80 GB & DVD-RW LG 16x
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Sat Oct 13, 2012 11:50 pm    Post subject: Reply with quote

Code:
 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
This error comes when you run emerge from a directory which will later be removed. Such as the directory of a previous failed build. I think there is a bug open about that, but I can't find it right now.

There is no gcj-jdk-4.5.4 right now, so you cannot install it together with gcc-4.5.4. Installing gcj-jdk-4.6.3-r1 would be a better idea than downgrading gcc.
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Sun Oct 14, 2012 11:32 pm    Post subject: Reply with quote

chithanh wrote:

There is no gcj-jdk-4.5.4 right now, so you cannot install it together with gcc-4.5.4. Installing gcj-jdk-4.6.3-r1 would be a better idea than downgrading gcc.


That's what I was hoping to do earlier, but gcc 4.6.3 won't compile. See my earlier posts for the specific errors.

I got gcj-jdk and gcc 4.5.3-r2 compiled and installed, and ecj-gcj. However, when I try to install icedtea
Code:

emerge =dev-java/icedtea-6.1.11.4


I get the circular dependency problem that I got earlier in this thread.
Code:

These are the packages that would be merged, in order:

Calculating dependencies  ... done!


[nomerge       ] dev-java/icedtea-6.1.11.4  USE="X jbootstrap nsplugin nss source webstart -alsa -cacao -cjk -cups -debug -doc -examples -javascript -pax_kernel -pulseaudio (-systemtap) -test"
[ebuild  N    ~]  dev-java/icedtea-web-1.3  USE="nsplugin -build -doc -gtk2 -gtk3 -javascript -test" 965 kB
[ebuild  N     ]  dev-java/ant-nodeps-1.8.4  3,321 kB
[ebuild  N     ]   dev-java/ant-core-1.8.4  USE="-doc -source" 0 kB
[ebuild  N     ]    virtual/jdk-1.6.0  0 kB
[ebuild  N    ~]     dev-java/icedtea-6.1.11.4  USE="X jbootstrap nsplugin nss source webstart -alsa -cacao -cjk -cups -debug -doc -examples -javascript -pax_kernel -pulseaudio (-systemtap) -test" 66,628 kB

Total: 5 packages (5 new), Size of downloads: 70,913 kB

 * Error: circular dependencies:

(dev-java/icedtea-6.1.11.4::gentoo, ebuild scheduled for merge) depends on
 (dev-java/ant-core-1.8.4::gentoo, ebuild scheduled for merge) (buildtime)
  (virtual/jdk-1.6.0::gentoo, ebuild scheduled for merge) (buildtime)
   (dev-java/icedtea-6.1.11.4::gentoo, ebuild scheduled for merge) (runtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/glib:2

  (dev-libs/glib-2.32.4-r1::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-libs/glib-2.32 required by (x11-libs/gtk+-3.4.4::gentoo, ebuild scheduled for merge)
    (and 3 more with the same problem)

  (dev-libs/glib-2.30.3::gentoo, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


The following keyword changes are necessary to proceed:
#required by dev-java/icedtea-6.1.11.4[webstart], required by virtual/jdk-1.6.0, required by dev-java/ant-nodeps-1.8.4
=dev-java/icedtea-web-1.3 ~ppc
#required by =dev-java/icedtea-6.1.11.4 (argument)
=dev-java/icedtea-6.1.11.4 ~ppc

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).


So I tried installing icedtea-bin, and that failed as well:

Code:

Package:    dev-java/icedtea-bin-6.1.11.4
Repository: gentoo
Maintainer: java@gentoo.org
USE:        X elibc_glibc kernel_linux ppc userland_GNU
FEATURES:   sandbox
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/dev-java/icedtea-bin-6.1.11.4/work
>>> Preparing source in /var/tmp/portage/dev-java/icedtea-bin-6.1.11.4/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/icedtea-bin-6.1.11.4/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/icedtea-bin-6.1.11.4/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/icedtea-bin-6.1.11.4
ERROR: dev-java/icedtea-bin-6.1.11.4 failed (install phase):
  The source directory '/var/tmp/portage/dev-java/icedtea-bin-6.1.11.4/work/icedtea-bin-6.1.11.4' doesn't exist

Call stack:
           ebuild.sh, line 708:  Called ebuild_main 'install'
  phase-functions.sh, line 955:  Called dyn_install
  phase-functions.sh, line 527:  Called die
The specific snippet of code:
                die "The source directory '${S}' doesn't exist"


This is the same error I had in the very beginning, which makes sense because installing gcj/gcc etc doesn't effect icedtea-bin.

So now I have the gcj/gcc/ecj environment, and all I need to do is to be able to build icedtea. So how can I fix this circular dependency problem?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Sun Oct 14, 2012 11:40 pm    Post subject: Reply with quote

icedtea-bin will not work on ppc, as there exist only precompiled binaries for amd64 and x86.

Try to emerge jdk:1.5 after gcj-jdk was installed, then emerge --onlydeps icedtea then emerge icedtea.
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Mon Oct 15, 2012 5:28 pm    Post subject: Reply with quote

chithanh wrote:

Try to emerge jdk:1.5 after gcj-jdk was installed, then emerge --onlydeps icedtea then emerge icedtea.


Appreciate the help. Emergeing virtual/jdk-1.5.0 worked.

However, emerging icedtea --onlydeps has icedtea iteself as a dependency, so it tried to install it after all its other dependencies, and resulted in this error:

Code:

 * java-pkg_build-vm-from-handle: Failed to get active vm
 * java-pkg_switch-vm: No VM found for handles:
 *              icedtea-6 icedtea-bin-6 icedtea6 icedtea6-bin
 *              gcj-jdk
 * ERROR: dev-java/icedtea-6.1.11.4 failed (setup phase):
 *   java-pkg_switch-vm: Failed to determine VM for building
 *
 * Call stack:
 *                 ebuild.sh, line   85:  Called pkg_setup
 *   icedtea-6.1.11.4.ebuild, line  134:  Called java-pkg-2_pkg_setup
 *         java-pkg-2.eclass, line   53:  Called java-pkg_init
 *       java-utils-2.eclass, line 2187:  Called java-pkg_switch-vm
 *       java-utils-2.eclass, line 2655:  Called die
 * The specific snippet of code:
 *                                      die "${FUNCNAME}: Failed to determine VM for building"



I'm hoping that all that's needed is to tell my system which VM to use for building. Is this what's needed? How can I do this?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Mon Oct 15, 2012 5:34 pm    Post subject: Reply with quote

Code:
# java-config -L
shows that gcj-jdk is installed and selected? If not, select it. Also, if ecj-gcj was built with USE="native", then you must rebuild it every time you switch to a different gcc version with gcc-config (preferably should match the installed version of gcj-jdk).

EDIT: To make it more clear,
WRONG:
# java-config -L
The following VMs are available for generation-2:
1)      GCJ 4.6.3 [gcj-jdk]
CORRECT:
# java-config -L
The following VMs are available for generation-2:
*)      GCJ 4.6.3 [gcj-jdk]
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Mon Oct 15, 2012 10:32 pm    Post subject: Reply with quote

I did not have any VM selected. Sorry about that, new to gentoo, didn't know about java-config until now.

After selecting a VM, I tried again. This time it took a while building, then runs out of memory:

Code:

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError
bla bla bla: runs out of memory at Bits.java


dmesg doesn't show that I'm running out of swap. Does the virtual machine have its own memory limit separate from the available swap limit? how can I increase the memory for the build?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Mon Oct 15, 2012 11:14 pm    Post subject: Reply with quote

This could be a bug in the build system, best report that on https://bugs.gentoo.org/
Back to top
View user's profile Send private message
bryanvick
n00b
n00b


Joined: 27 Sep 2012
Posts: 16

PostPosted: Thu Oct 18, 2012 7:03 pm    Post subject: Reply with quote

chithanh wrote:
This could be a bug in the build system, best report that on https://bugs.gentoo.org/


Bug 438834: https://bugs.gentoo.org/show_bug.cgi?id=438834
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