LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-12-2005, 09:33 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
Java Source Compile


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?
 
Old 08-13-2005, 02:53 PM   #2
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
After some searching I deleted and then recompiled using jdk-1.5.0_03.bin as it is shown in the book and I get the same errors.
 
Old 08-13-2005, 02:57 PM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
I found a fix. I set HOTSPOT_BUILD_JOBS="" instead of [3] and that fixed the issue. I still get the errors/warnings but the build does not stop, and the lfs book says that this will happen so everything should be good now. Its currently building and I hope it finishes without problems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Compile Java - .class, .java, .jar ? woranl Programming 2 11-09-2004 10:12 PM
Compile from source meodihia Debian 5 09-11-2004 12:29 PM
Compile from source? Gamezace Linux - Newbie 4 04-18-2004 01:31 AM
Java: Compile Large number of source files ? mikeshn Programming 7 10-07-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration