IcedTea - a first step towards OpenJDK  
Author Message
Matthias Klose





PostPosted: 2007-8-23 5:10:00 Top

java-programmer, IcedTea - a first step towards OpenJDK IcedTea is a temporary fork of OpenJDK which allows building with a free
toolchain and adding/replacing code which is not yet available under a free
license. First deb Packages for amd64 and i386 are available at

deb http://people.ubuntu.com/~doko/ubuntu/ gutsy/
deb-src http://people.ubuntu.com/~doko/ubuntu/ gutsy/

Although the packages are built on gutsy, they are installable on sid as well.
These packages target developers only. Feedback about the following topics is
appreciated:

- packaging and installation issues; the packaging is derived from the
sun-javaX packages, so the packages do have the same "features" and
bugs.

- license issues; we currently cannot upload the packages, because some
files still have non-free or no licenses. Unfortunately there doesn't
exist yet a list of problematic files.

- usability; do packages and applications build and run with the new
jre and jdk (focus on main)?

Please contact Michael Koch or me if you do want to join the packaging and
maintainance effort. Thanks for any input.

Matthias


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
Arnaud Vandyck





PostPosted: 2007-8-23 14:30:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK Many thanks for your work (of course I don't forget Michael ;-)).

On 8/22/07, Matthias Klose <email***@***.com> wrote:
> IcedTea is a temporary fork of OpenJDK which allows building with a free
> toolchain and adding/replacing code which is not yet available under a free
> license. First deb Packages for amd64 and i386 are available at
>
> deb http://people.ubuntu.com/~doko/ubuntu/ gutsy/
> deb-src http://people.ubuntu.com/~doko/ubuntu/ gutsy/
>
> Although the packages are built on gutsy, they are installable on sid as well.
> These packages target developers only. Feedback about the following topics is
> appreciated:
>
> - packaging and installation issues; the packaging is derived from the
> sun-javaX packages, so the packages do have the same "features" and
> bugs.
>
> - license issues; we currently cannot upload the packages, because some
> files still have non-free or no licenses. Unfortunately there doesn't
> exist yet a list of problematic files.
>
> - usability; do packages and applications build and run with the new
> jre and jdk (focus on main)?
>
> Please contact Michael Koch or me if you do want to join the packaging and
> maintainance effort. Thanks for any input.
>
> Matthias
>
>
> --
> To UNSUBSCRIBE, email to email***@***.com
> with a subject of "unsubscribe". Trouble? Contact email***@***.com
>
>


--
Arnaud Vandyck


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
peter green





PostPosted: 2007-8-31 10:10:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK >IcedTea is a temporary fork of OpenJDK which allows building with a free
>toolchain and adding/replacing code which is not yet available under a free
>license. First deb Packages for amd64 and i386 are available at
>
> deb http://people.ubuntu.com/~doko/ubuntu/ <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/
> deb-src http://people.ubuntu.com/~doko/ubuntu/ <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/
>
>
>Although the packages are built on gutsy, they are installable on sid as well.
Unfortunately while the binary may be installable on sid the source doesn't seem to be buildable on it.

firstly I needed to do some tweaks to build-deps were needed to provide
alternatives to ubuntu only packages. I added xbase-clients as an alternative
for xprop and libxul-dev as an alternative for firefox-dev. wget was also missing from the build-deps.

However even with those things fixed it still doesn't build for me, in a 64 bit chroot on a 64 bit box and a 32 bit chroot on a 32 bit box I get the following errors

find rt -name '*.java' | sort > rt-source-files.txt
nowarn -g -d lib/rt -bootclasspath '' -source 1.6 \
-sourcepath rt:openjdk/j2se/src/share/classes:openjdk/j2se/src/solaris
/classes:generated:jce \
@rt-source-files.txt
make[1]: nowarn: Command not found
make[1]: [rt-class-files.stamp] Error 127 (ignored)
touch rt-class-files.stamp
mkdir -p bootstrap/jdk1.7.0/jre/lib
/usr/bin/gjar-4.2 cf bootstrap/jdk1.7.0/jre/lib/rt.jar -C lib/rt com -C lib/rt g
nu -C lib/rt java \
-C lib/rt javax -C lib/rt sun
jar: internal error:
java.io.FileNotFoundException: lib/rt/com (No such file or directory)
at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.81)
at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.81)
at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.81)
at java.io.FileInputStream.<init>(libgcj.so.81)
at gnu.classpath.tools.jar.Creator.writeFile(libgcj-tools.so.81)
at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.81
)
at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.81
)
at gnu.classpath.tools.jar.Creator.run(libgcj-tools.so.81)
at gnu.classpath.tools.jar.Main.run(libgcj-tools.so.81)
at gnu.classpath.tools.jar.Main.main(libgcj-tools.so.81)
make[1]: *** [bootstrap/jdk1.7.0/jre/lib/rt.jar] Error 1
make[1]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822'
make: *** [stamps/build] Error 2
debian:/icedtea-java7-7~b18-1.2+20070822#

and in a 32 bit chroot on a 64 bit host I got the following error

Making adlc
g++-4.1 -m64 -Xlinker -O1 -m64 -export-dynamic -o ../generated/adfiles/adlc ../g
enerated/adfiles/adlparse.o ../generated/adfiles/archDesc.o ../generated/adfiles
/arena.o ../generated/adfiles/dfa.o ../generated/adfiles/dict2.o ../generated/ad
files/filebuff.o ../generated/adfiles/forms.o ../generated/adfiles/formsopt.o ..
/generated/adfiles/formssel.o ../generated/adfiles/main.o ../generated/adfiles/a
dlc-opcodes.o ../generated/adfiles/output_c.o ../generated/adfiles/output_h.o
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.s
o when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a
when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.s
o when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a
when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[7]: *** [../generated/adfiles/adlc] Error 1
make[7]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/build/linux-amd64/hotspot/outputdir/linux_amd64_compiler2/product'
make[6]: *** [ad_stuff] Error 2
make[6]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/build/linux-amd64/hotspot/outputdir/linux_amd64_compiler2/product'
make[5]: *** [product] Error 2
make[5]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/build/linux-amd64/hotspot/outputdir'
make[4]: *** [generic_build2] Error 2
make[4]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/hotspo
t/make'
make[3]: *** [product] Error 2
make[3]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/hotspo
t/make'
make[2]: *** [hotspot-build] Error 2
make[2]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/make'
make[1]: *** [icedtea-ecj.stamp] Error 2
make[1]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822'
make: *** [stamps/build] Error 2
debian:/icedtea-java7-7~b18-1.2+20070822#

any ideas how to solve theese issues?


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
 
Arnaud Vandyck





PostPosted: 2007-8-31 16:40:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK On 8/31/07, peter green <email***@***.com> wrote:
[...]
> However even with those things fixed it still doesn't build
> for me, in a 64 bit chroot on a 64 bit box and a 32 bit chroot
> on a 32 bit box I get the following errors
>
> find rt -name '*.java' | sort > rt-source-files.txt
> nowarn -g -d lib/rt -bootclasspath '' -source 1.6 \
> -sourcepath rt:openjdk/j2se/src/share/classes:openjdk/j2se/src/solaris
> /classes:generated:jce \
> @rt-source-files.txt
> make[1]: nowarn: Command not found
[...]
> any ideas how to solve theese issues?

nowarn is not a command I know to compile java sources ;-)

An envirronment variable has been badly configured, it shoud be something like:

java -nowarn ...

--
Arnaud Vandyck


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
 
Matthias Klose





PostPosted: 2007-8-31 17:40:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK peter green schrieb:
>> IcedTea is a temporary fork of OpenJDK which allows building with a free
>> toolchain and adding/replacing code which is not yet available under a
>> free
>> license. First deb Packages for amd64 and i386 are available at
>>
>> deb http://people.ubuntu.com/~doko/ubuntu/
>> <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/
>> deb-src http://people.ubuntu.com/~doko/ubuntu/
>> <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/
>>
>>
>> Although the packages are built on gutsy, they are installable on sid
>> as well.
> Unfortunately while the binary may be installable on sid the source
> doesn't seem to be buildable on it.
>
> firstly I needed to do some tweaks to build-deps were needed to provide
> alternatives to ubuntu only packages. I added xbase-clients as an
> alternative for xprop and libxul-dev as an alternative for firefox-dev.
> wget was also missing from the build-deps.

ok, except wget should not be part of the b-d's, if the zip file already exists.

> However even with those things fixed it still doesn't build for me, in a
> 64 bit chroot on a 64 bit box and a 32 bit chroot on a 32 bit box I get
> the following errors
>
> find rt -name '*.java' | sort > rt-source-files.txt
> nowarn -g -d lib/rt -bootclasspath '' -source 1.6 \
> -sourcepath
> rt:openjdk/j2se/src/share/classes:openjdk/j2se/src/solaris
> /classes:generated:jce \
> @rt-source-files.txt
> make[1]: nowarn: Command not found

ok, please install ecj by hand; that may be the dependency error (ecj-gcj not
depending on ecj).

> and in a 32 bit chroot on a 64 bit host I got the following error

did you set the 32bit personality before entering the chroot? If not try to use
schroot which does this for you (if correctly configured).


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
 
peter green





PostPosted: 2007-9-1 6:50:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK Matthias Klose wrote:
> peter green schrieb:
>
>>> IcedTea is a temporary fork of OpenJDK which allows building with a free
>>> toolchain and adding/replacing code which is not yet available under a
>>> free
>>> license. First deb Packages for amd64 and i386 are available at
>>>
>>> deb http://people.ubuntu.com/~doko/ubuntu/
>>> <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/
>>> deb-src http://people.ubuntu.com/~doko/ubuntu/
>>> <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/
>>>
>>>
>>> Although the packages are built on gutsy, they are installable on sid
>>> as well.
>>>
>> Unfortunately while the binary may be installable on sid the source
>> doesn't seem to be buildable on it.
>>
>> firstly I needed to do some tweaks to build-deps were needed to provide
>> alternatives to ubuntu only packages. I added xbase-clients as an
>> alternative for xprop and libxul-dev as an alternative for firefox-dev.
>> wget was also missing from the build-deps.
>>
>
> ok, except wget should not be part of the b-d's, if the zip file already exists.
>
The configure script checks for it and errors if it is not there.
>
>> However even with those things fixed it still doesn't build for me, in a
>> 64 bit chroot on a 64 bit box and a 32 bit chroot on a 32 bit box I get
>> the following errors
>>
>> find rt -name '*.java' | sort > rt-source-files.txt
>> nowarn -g -d lib/rt -bootclasspath '' -source 1.6 \
>> -sourcepath
>> rt:openjdk/j2se/src/share/classes:openjdk/j2se/src/solaris
>> /classes:generated:jce \
>> @rt-source-files.txt
>> make[1]: nowarn: Command not found
>>
>
> ok, please install ecj by hand; that may be the dependency error (ecj-gcj not
> depending on ecj).
>
ok that seems to fix the 64 on 64 case. The 32 on 32 case is still
building (my 32 bit box isn't very fast)
>
>> and in a 32 bit chroot on a 64 bit host I got the following error
>>
>
> did you set the 32bit personality before entering the chroot? If not try to use
> schroot which does this for you (if correctly configured).
>
>
no, I've never had to for building debian packages before and i've no
idea how to do it either. I really would rather avoid switching to a
soloution like schroot if I can. Is there a way I can set it manually?
(googling for linux kernel personality brought up mostly info on the
linux compatibility features in sco unix)



--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
 
Matthias Klose





PostPosted: 2007-9-1 7:00:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK peter green schrieb:
> Matthias Klose wrote:
>> ok, except wget should not be part of the b-d's, if the zip file
>> already exists.
>>
> The configure script checks for it and errors if it is not there.

well, then its cheaper to add it.

>> did you set the 32bit personality before entering the chroot? If not
>> try to use
>> schroot which does this for you (if correctly configured).
>>
>>
> no, I've never had to for building debian packages before and i've no
> idea how to do it either. I really would rather avoid switching to a
> soloution like schroot if I can. Is there a way I can set it manually?
> (googling for linux kernel personality brought up mostly info on the
> linux compatibility features in sco unix)

well, this is wrong, you are lacking the correct libraries. see linux32(1) for
the personality thing.


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
 
peter green





PostPosted: 2007-9-2 7:10:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK This is a multi-part message in MIME format.


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com

> well, then its cheaper to add it.
>
>
>
I've attatched a new debian/control with the build-deps fixed up to
allow for building on sid.
> well, this is wrong, you are lacking the correct libraries. see linux32(1) for
> the personality thing.
>
I've attatched a new debian/rules with a check added so it errors out early and with instructions on what to do if it detects someone trying to build in a i386 chrot on an amd64 system without switching personality.


 
 
peter green





PostPosted: 2007-9-2 9:50:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK This is a multi-part message in MIME format.


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
I have also discovered that the plugin package that icedtea builds is
uninstallable if the plugin directories don't exist (which will happen
unless the user has every supported browser installed), a new postinst
that fixes this issue is attatched.

 
 
Matthias Klose





PostPosted: 2007-9-2 18:00:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK peter green schrieb:
>
>> well, then its cheaper to add it.
>>
>>
>>
> I've attatched a new debian/control with the build-deps fixed up to
> allow for building on sid.

fixed.

>> well, this is wrong, you are lacking the correct libraries. see
>> linux32(1) for
>> the personality thing.
>>
> I've attatched a new debian/rules with a check added so it errors out
> early and with instructions on what to do if it detects someone trying
> to build in a i386 chrot on an amd64 system without switching personality.

I don't like that one; this really is a setup issue of your chroot, it doesn't
belong into the package.

peter green schrieb:
> I have also discovered that the plugin package that icedtea builds is
> uninstallable if the plugin directories don't exist (which will happen
> unless the user has every supported browser installed), a new postinst
> that fixes this issue is attatched.

please send diffs instead of complete files; this is fixed for the next snapshot
package.

Matthias


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
 
Massimo Padovan





PostPosted: 2007-9-5 19:00:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK First: Thanks for your repo!
I've installed icedtea-java7-plugin and in /etc/alternatives/ and I've
found:
mozilla-javaplugin.so
-> /usr/lib/jvm/java-7-icedtea/jre/plugin/i386/gcjwebplugin.so
that does not exist. The proper plugin's location is:
/usr/lib/jvm/java-7-icedtea/jre/lib/i386/gcjwebplugin.so

Massimo




--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
 
 
Matthias Klose





PostPosted: 2007-9-6 22:30:00 Top

java-programmer >> IcedTea - a first step towards OpenJDK Matthias Klose writes:
> IcedTea is a temporary fork of OpenJDK which allows building with a free
> toolchain and adding/replacing code which is not yet available under a free
> license. First deb Packages for amd64 and i386 are available at
>
> deb http://people.ubuntu.com/~doko/ubuntu/ gutsy/
> deb-src http://people.ubuntu.com/~doko/ubuntu/ gutsy/
>
> Although the packages are built on gutsy, they are installable on sid as well.

the packages are now updated to the b19 build.

Matthias


--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com