Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
icedtea compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
wolf550e
n00b
n00b


Joined: 20 May 2005
Posts: 17
Location: Israel

PostPosted: Wed Jul 30, 2008 10:15 pm    Post subject: icedtea compile Reply with quote

I'm using java-overlay trying to build icedtea-9999 on ~x86.

Code:
/bin/mkdir -p /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp
rm -f /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/manifest.tmp
/bin/sed -e "s/@@RELEASE@@/1.7.0_0/" /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/jdk/make/tools/manifest.mf >> /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/manifest.tmp
/bin/echo -e >> /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/manifest.tmp
/bin/cat /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/jdk/make/javax/swing/beaninfo/manifest >> /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/manifest.tmp
/bin/mkdir -p /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp
rm -f /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar
(cd /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/classes && /bin/cat /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists/rt_jar_list | \
        /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/bootstrap/jdk1.6.0/bin/jar c0mf@ /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/manifest.tmp /var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar \
            -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m)
Illegal option: @
Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
Options:
    -c  create new archive
    -t  list table of contents for archive
    -x  extract named (or all) files from archive
    -u  update existing archive
    -v  generate verbose output on standard output
    -f  specify archive file name
    -m  include manifest information from specified manifest file
    -e  specify application entry point for stand-alone application
        bundled into an executable jar file
    -0  store only; use no ZIP compression
    -M  do not create a manifest file for the entries
    -i  generate index information for the specified jar files
    -C  change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name, the archive file name and the entry point name are
specified in the same order as the 'm', 'f' and 'e' flags.

Example 1: to archive two class files into an archive called classes.jar:
       jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
           files in the foo/ directory into 'classes.jar':
       jar cvfm classes.jar mymanifest -C foo/ .

make[2]: *** [/var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj/jdk/make'
make[1]: *** [jdk-build] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-java/icedtea-9999/work/icedtea/openjdk-ecj'
make: *** [stamps/icedtea-ecj.stamp] Error 2
 * ERROR: dev-java/icedtea-9999 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4578:  Called die
 * The specific snippet of code:
 *       emake -j 1 || die "make failed"
 *  The die message:
 *   make failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/icedtea-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-9999/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/layman/java-overlay/'
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


I have installed this:
Code:
$java -version
java version "1.6.0_10-rc"
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)


So it would compile, after seeing that nasty crash with the latest stable JDK. It's the latest "promoted" binary JDK6 from Sun (a weekly build).
Now I have a problem with jar. I know it was patched so it would recognize when jar understands or doesn't understand "@" but it's using "@" with a jar that doesn't know what it is.

The jar says:
Code:
/var/tmp/portage/dev-java/icedtea-9999/work/icedtea/bootstrap/jdk1.6.0/bin/jar -version
Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
Options:
    -c  create new archive
    -t  list table of contents for archive
    -x  extract named (or all) files from archive
    -u  update existing archive
    -v  generate verbose output on standard output
    -f  specify archive file name
    -m  include manifest information from specified manifest file
    -e  specify application entry point for stand-alone application
        bundled into an executable jar file
    -0  store only; use no ZIP compression
    -M  do not create a manifest file for the entries
    -i  generate index information for the specified jar files
    -C  change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name, the archive file name and the entry point name are
specified in the same order as the 'm', 'f' and 'e' flags.

Example 1: to archive two class files into an archive called classes.jar:
       jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
           files in the foo/ directory into 'classes.jar':
       jar cvfm classes.jar mymanifest -C foo/ .


I know I'm supposed to use GCJ to build icedtea, but this should still work. And since I can use icedtea to bootstrap itself, in the end I get the same result, no matter what initial java implementation I used.

So, can anyone help me make it work?
Back to top
View user's profile Send private message
temnozor
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2008
Posts: 121
Location: Germany

PostPosted: Thu Jul 31, 2008 8:36 am    Post subject: Reply with quote

Code:
eselect java-vm list
Back to top
View user's profile Send private message
wolf550e
n00b
n00b


Joined: 20 May 2005
Posts: 17
Location: Israel

PostPosted: Thu Jul 31, 2008 12:13 pm    Post subject: Reply with quote

temnozor wrote:
Code:
eselect java-vm list


Code:
eselect java-vm list
Available Java Virtual Machines:
  [1]   sun-jdk-1.6  system-vm
Back to top
View user's profile Send private message
pijalu
Guru
Guru


Joined: 04 Oct 2004
Posts: 365

PostPosted: Sun Aug 03, 2008 5:26 pm    Post subject: Reply with quote

maybe of some interest for you
https://forums.gentoo.org/viewtopic-p-5171632.html#5171632
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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