LFS 6.1
BLFS 6.1-pre2
Link to jdk section in book:
http://www.linuxfromscratch.org/blfs...neral/jdk.html
Trying to install Java from source. The book uses jdk-1.5.0_03, I used jdk-1.5.0_04 and changed the appropriate variables. Other than that its by the book.
Code:
Linux lfs 2.6.11.2 #1 Sat Aug 6 21:50:47 CDT 2005 i686 athlon-4 i386 GNU/Linux
Code:
WARNING: Your are not building INSTALL workspace from
the control build. This will result in a development-only
build of the J2SE workspace, lacking the installation bundles
WARNING: Your build environment has the variable DEV_ONLY
defined. This will result in a development-only
build of the J2SE workspace, lacking the documentation
build and installation bundles.
WARNING: You are building on an unsupported brand of Linux.
The supported version is Red Hat Linux release Advanced Server.
WARNING: You are using an unsupported kernel version of Linux.
The supported kernel version is 2.4.*.
Your kernel version is 2.6.11.2
WARNING: The version of make being used does not match
the expected version for this platform.
The version of make found was -><-
The version expected matches the pattern ->3.7[89].1,<-.
WARNING: You are building on an unsupported brand of Linux.
The supported version is Red Hat Linux release Advanced Server.
ERROR: The Linux GCC compiler must be version 3.2.1*.
You are using the following compiler version: 3.4.3
The compiler was obtained from the following location:
/usr/bin/
Please change your compiler.
ERROR: You do not have a valid GCC29_COMPILER_PATH setting.
Please check your access to
/java/devtools/linux/gcc29/usr/
and/or check your value of ALT_GCC29_COMPILER_PATH.
This will affect you if you build the plugin target.
ERROR: There is no GNU CC compiler at the location:
/usr/bin/
ERROR: There is no zip file at the location:
zip
ERROR: Your BOOTDIR environment variable does not point
to a valid Java 2 SDK for bootstrapping this build.
A Java 2 SDK 1.5.0 build must be bootstrapped using
J2SDK 1.4.2 fcs (or later).
Apparently, your bootstrap JDK is version 1.5.0_04
Please update your ALT_BOOTDIR setting and start your build again.
INSANE mode requested.
Sanity will not force a build termination, even with errors.
mkdir -p ../build/linux-i586/hotspot-i586/tmp
(cd ./../build/linux-i586/hotspot-i586/tmp; \
make -f /sources/jdk-build/hotspot/build/linux/Makefile product \
HOTSPOT_BUILD_VERSION=1.5.0-internal-blfs-6.1-pre2 GAMMADIR=/sources/jdk-build/hotspot ; )
make[1]: Entering directory `/sources/jdk-build/control/build/linux-i586/hotspot-i586/tmp'
if [ `/opt/jdk/jdk-precompiled-1.5.0/bin/java -fullversion 2>&1 | grep -c '1\.[45]'` -eq 0 ] ; then \
/opt/jdk/jdk-precompiled-1.5.0/bin/java -version; \
echo "*** An XSLT processor (J2SE 1.4.x or newer) is required to bootstrap this build"; \
exit 1; \
Removed the creating *.cpp notifications
Code:
cd ../generated; cp includeDB includeDB.current
cd ../generated; cp /sources/jdk-build/hotspot/build/linux/platform_i486 platform.current
make: the `-j' option requires a positive integral argument
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from commands.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-n, --just-print, --dry-run, --recon
Don't actually run any commands; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-p, --print-data-base Print make's internal database.
-q, --question Run no commands; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo commands.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.
This program built for i686-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
make: Entering an unknown directorymake: Leaving an unknown directorymake[2]: *** [ad_stuff] Error 2
make[2]: Leaving directory `/sources/jdk-build/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[1]: *** [product] Error 2
make[1]: Leaving directory `/sources/jdk-build/control/build/linux-i586/hotspot-i586/tmp'
make: *** [product] Error 2
I have the gcc patch applied and all the others listed on that page. I did them manualy rather than the simple script they provide to ensure they were applied.
Code:
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,objc,f77,ada,java
Thread model: posix
gcc version 3.4.3
I had alot more errors but was able to clear them up but not sure where to go from here. Any ideas?