[Bug 591] Unable to build openjdk/icedtea on Slack 13.1
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Tue Nov 16 03:37:23 PST 2010
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=591
------- Comment #12 from robert at linux-source.org 2010-11-16 11:37 -------
Same error even if I added: with-javac. I will post the script which builds
icedtea, maybe Im doing something wrong:
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
if [ -r /etc/profile.d/apache-ant.sh ]; then
source /etc/profile.d/apache-ant.sh
else
ANT_HOME="/usr/share/ant"
fi
build_gcj()
{
JVM=$1
BINDIR=/usr/bin
rm -fr $JVM
mkdir -p $JVM
mkdir -p $JVM/bin
mkdir -p $JVM/jre/bin
mkdir -p $JVM/jre/lib/i386/client
mkdir -p $JVM/jre/lib/i386/server
mkdir -p $JVM/lib
ln -sf $BINDIR/gjar $JVM/bin/jar
ln -sf $BINDIR/grmic $JVM/bin/rmic
ln -sf $BINDIR/gjavah $JVM/bin/javah
ln -sf $BINDIR/jcf-dump $JVM/bin/javap
ln -sf $BINDIR/gappletviewer $JVM/bin/appletviewer
ln -sf $BINDIR/grmiregistry $JVM/bin/rmiregistry
ln -sf $BINDIR/grmiregistry $JVM/jre/bin/rmiregistry
ln -sf $BINDIR/gkeytool $JVM/bin/keytool
ln -sf $BINDIR/gkeytool $JVM/jre/bin/keytool
ln -sf $BINDIR/gij $JVM/bin/java
ln -sf $BINDIR/gcj $JVM/bin/javac
ln -sf /usr/lib/gcj-4.5.1-11/libjvm.so $JVM/jre/lib/i386/client/libjvm.so
ln -sf /usr/lib/gcj-4.5.1-11/libjvm.so $JVM/jre/lib/i386/server/libjvm.so
ln -sf /usr/lib/gcj-4.5.1-11/libjawt.so $JVM/jre/lib/i386/libjawt.so
ln -sf /usr/share/java/libgcj-4.5.1.jar $JVM/jre/lib/rt.jar
ln -sf /usr/share/java/libgcj-tools-4.5.1.jar $JVM/lib/tools.jar
ln -sf /usr/include/c++/4.5.1/gnu/java $JVM/include
}
# Exit on most errors
set -e
# Setup some temporary variables
unset JAVA_HOME
unset CLASSPATH
_jdkver=b20
_javaver=6
_jvmdir=usr/lib/jvm/java-${_javaver}-openjdk
_icedtea=icedtea6-1.9.1
_gcjjvm=/usr/lib/jvm/gcj-jdk
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/${_icedtea}.tar.gz || exit 1
cd ${_icedtea}
chmod -R u+w,go+r-w,a-s .
chown -R root:root .
build_gcj ${_gcjjvm}
ln -sf $CWD/openjdk-${_javaver}-src-${_jdkver}-21_jun_2010.tar.gz .
ln -sf $CWD/hotspot.tar.gz .
cp -f $CWD/patch/*.diff ./patches/
autoreconf -i
#./autogen.sh
export DISTRIBUTION_PATCHES="patches/fix_jdk_cmds_path.diff
patches/aatext_by_default.diff patches/fontconfig-paths.diff
patches/fix_corba_cmds_path.diff patches/nonreparenting-wm.diff"
export ALT_PARALLEL_COMPILE_JOBS="${MAKEFLAGS/-j3}"
export HOTSPOT_BUILD_JOBS="${ALT_PARALLEL_COMPILE_JOBS}"
unset MAKEFLAGS
export CFLAGS="$SLKCFLAGS" &&
export CXXFLAGS="$SLKCFLAGS" &&
./configure \
--with-parallel-jobs=${HOTSPOT_BUILD_JOBS} \
--with-ant-home=${ANT_HOME} \
--with-hotspot-src-zip=hotspot.tar.gz \
--with-jaxp-drop-zip=$CWD/jdk6-jaxp-${_jdkver}.zip \
--with-jaxws-drop-zip=$CWD/jdk6-jaxws-${_jdkver}.zip \
--with-jaf-drop-zip=$CWD/jdk6-jaf-${_jdkver}.zip \
--with-javac=${_gcjjvm}/bin/javac \
--with-xalan2-jar=${ANT_HOME}/lib/xalan.jar \
--with-xerces2-jar=${ANT_HOME}/lib/xercesImpl.jar \
--with-rhino=${ANT_HOME}/lib/rhino.jar \
--with-gcj-home=${_gcjjvm} \
--disable-docs \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux \
--target=$ARCH-slackware-linux
# Build
export LD_PRELOAD=""
make -j3 || make || exit 1
File list:
ls |egrep 'tar|zip|jar'
ecj-3.6.1.jar
hotspot.tar.gz
icedtea6-1.9.1.tar.gz
jdk6-jaf-b20.zip
jdk6-jaxp-b20.zip
jdk6-jaxws-b20.zip
openjdk-6-src-b20-21_jun_2010.tar.gz
Path:
ls patch/
aatext_by_default.diff fix_corba_cmds_path.diff fix_jdk_cmds_path.diff
fontconfig-paths.diff nonreparenting-wm.diff
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the distro-pkg-dev
mailing list