On 16-05-2012 22:22, Fernando de Oliveira wrote: > On 14-05-2012 20:26, DJ Lucas wrote: >> On 05/14/2012 10:38 AM, Fernando de Oliveira wrote: >>> --- Em seg, 14/5/12, DJ Lucas escreveu: >>> >>>> De: DJ Lucas >>>> Assunto: [blfs-dev] OpenJDK downloads >>>> Para: "BLFS Development List" >>>> Data: Segunda-feira, 14 de Maio de 2012, 2:16 >>>> The makefile will download the needed files as part of the build process >>>> (alternately you can use the "download" make target). > I will try one of these in my next build. Think It sould be this way in the > book, like LibreOffice, so, in the next version, book's instructions could be > used just changing the version. I believe that the versions in Anduin will be > useless then. >> I have not built on i686 yet. Help would be appreciated >> here, but I'll get to it in a few days if nobody steps up. I've included >> a tar.xz extract of the Fedora i686 RPM to use as an initial bootstrap >> compiler. If anybody would like to create the i686 binary, please do a >> bootstrap build using the Fedora JDK, followed by a bootstrap using the >> previously created one, and then tar it up with the format of the x86_64 >> file, after having run the test suite against the final. I'm currently >> looking into the few remaining test suite failures, but I suspect a >> number of them are related to running in twm (windows not automatically >> anchored in awt tests). > I had a fatal failure in make, due to the fact that oracle jdk was installed > and found by configure. Moved out the /opt/jdk* (link and versioned dir), and > still failed. Next, linked /opt/jdk to icedtea-bin, and next failure: no > cpio. so, cpio is a requirement. Had noticed this requirement months ago also > in book's version. > > Phase1: using Fedora-bin > Phase2: using New-bin > > I have done phase 1 > > START - Building OpenJDK-1.7.0.3-i686-bin - Qua Mai 16 14:41:02 BRT 2012 > END - Building OpenJDK-1.7.0.3-i686-bin - Qua Mai 16 18:32:12 BRT 2012 > > real 231m10.016s > user 156m43.051s > sys 36m36.799s > > For make -j1: 66m22.809s > For make -k jtregcheck: 164m15.324s > > > For phase2, after make, the tests are running, now. > > Please, keep on reading below. > >> Files are available here: >> Bin builds: >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/OpenJDK-1.7.0.3-x86_64-bin.tar.xz >> or >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/java-1.7.0-openjdk-1.7.0.3-i686-fedora-18.tar.xz >> >> Source files: >> http://icedtea.classpath.org/download/source/icedtea-2.1.tar.gz >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/corba.tar.gz >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/hotspot.tar.gz >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/jaxp.tar.gz >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/jaxws.tar.gz >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/jdk.tar.gz >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/langtools.tar.gz >> http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK/openjdk.tar.gz >> ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R3.zip >> >> Patches: >> http://www.linuxfromscratch.org/patches/downloads/icedtea/icedtea-2.1-upstream_fixes-2.patch >> http://www.linuxfromscratch.org/patches/downloads/icedtea/icedtea-2.1-fixed_paths-1.patch >> http://www.linuxfromscratch.org/patches/downloads/icedtea/icedtea-2.1-add_cacerts-1.patch >> >> >> Instructions: >> >> Extract the binary installation, and move it to /opt/icedtea-bin >> Extract Rhino and put the js.jar and js-14.jar files into /usr/share/java >> >> Extract the icedtea-2.1 tarball as would normally be done. >> link the other tar.gz downloads into the source tree: >> >> ln -s ../openjdk.tar.gz .&& >> ln -s corba.tar.gz .&& >> ln -s jaxp.tar.gz .&& >> ln -s jaxws.tar.gz .&& >> ln -s jdk.tar.gz .&& >> ln -s langtools.tar.gz .&& >> ln -s hotspot.tar.gz . > Of course, "ln -s ../" everywhere, above, right? > >> Apply the patches and prep for build: >> >> patch -Np1 -i ../icedtea-2.1-upstream_fixes-2.patch&& >> patch -Np1 -i ../icedtea-2.1-fixed_paths-1.patch&& >> patch -Np1 -i ../icedtea-2.1-add_cacerts-1.patch&& >> ./autogen.sh >> >> >> Finally, build and install the thing: >> >> ./configure --with-jdk-home=/opt/icedtea-bin \ >> --enable-nss \ >> --enable-pulse-java&& > Here, failure, as I do not have pulse installed, so, another requirement, and > "--enable-pulse-java" was dropped. Having read troubles from others with > puse, which I do no need untill now, after finished current build, will make > a copy of this machine to install pulse and rebuild. This will be done after > I install xulrunner and build IcedTea plugin. > >> make&& > Here, race failure, with make -j4. Used -j1. Same behavior in phase 1 and 2. > >> make -k jtregcheck&& > For phase1: > > $ grep "Test results" > /home/fernando/Downloads/blfs/OpenJDK-1.7.0.3-i686-bin-with-Fedora-2012.05.16.log > Test results: passed: 144 > Test results: passed: 3,643; failed: 452; error: 10 > Test results: passed: 1,920; failed: 1 > Test results: passed: 144 > Test results: passed: 3,643; failed: 452; error: 10 > Test results: passed: 1,920; failed: 1 > > Seems the tests are run twice? > > For "Test results: passed: 3,643; failed: 452; error: 10": > --------------- jtreg console summary for langtools --------------- > FAILED: tools/javac/processing/6499119/ClassProcessor.java > Test results: passed: 1,920; failed: 1 > : # kill testsuite processes still hanging > killing processes... > ... > >> sudo install -vdm755 /opt/OpenJDK-1.7.0.3&& >> ln -sv OpenJDK-1.7.0.3 /opt/openjdk&& >> sudo cp -R openjdk-build/j2sdk-image/* /opt/OpenJDK-1.7.0.3 > Here, a failure: > > cp: impossível obter estado de "openjdk-build/j2sdk-image/*": Arquivo ou > diretório não encontrado > > freely translated into: > > cp: impossible to get state of "openjdk-build/j2sdk-image/*": File or > directory not found > > Thus, s/openjdk-build/openjdk.build/ > > Fortunately, the script failure avoided build directory removal, and I could > do last step by hand. > >> >> Finally, set JAVA_HOME and CLASSPATH (adjusting for what is currently in the >> book vs new directories), and test. >> >> -- DJ Lucas >> >> > DJ, again, thank you very much indeed, for the instructions. >
Final results, phase 2: With du -sck: BUILD_DIR_SIZE: 5188472 (including linked file sizes) With df -k: USED_BEFORE: 7883532 USED_AFTER: 8152380 USED_AFTER - USED_BEFORE = 268848 (including log size) $ grep "Test results" /home/fernando/Downloads/blfs/OpenJDK-1.7.0.3-i686-bin-2012.05.16.log Test results: passed: 144 Test results: passed: 3,646; failed: 449; error: 10 Test results: passed: 1,920; failed: 1 Test results: passed: 144 Test results: passed: 3,646; failed: 449; error: 10 Test results: passed: 1,920; failed: 1 $ grep START /home/fernando/Downloads/blfs/OpenJDK-1.7.0.3-i686-bin-2012.05.16.log START - Building OpenJDK-1.7.0.3-i686-bin - Qua Mai 16 19:45:19 BRT 2012 $ grep END /home/fernando/Downloads/blfs/OpenJDK-1.7.0.3-i686-bin-2012.05.16.log | grep Building END - Building OpenJDK-1.7.0.3-i686-bin - Qua Mai 16 23:40:12 BRT 2012 $ grep -P 'real\t' /home/fernando/Downloads/blfs/OpenJDK-1.7.0.3-i686-bin-2012.05.16.log real 66m18.563s make -j1 real 166m38.704s make -k jtregcheck real 234m52.887s total $ head /home/fernando/Downloads/blfs/OpenJDK-1.7.0.3-i686-bin-2012.05.16.log START - Building OpenJDK-1.7.0.3-i686-bin - Qua Mai 16 19:45:19 BRT 2012 mkdir: foi criado o diretório "/home/fernando/tmp/paco-build-2012.05.16" Archive: rhino1_7R3.zip creating: /home/fernando/tmp/paco-build-2012.05.16/rhino1_7R3/ creating: /home/fernando/tmp/paco-build-2012.05.16/rhino1_7R3/deprecatedsrc/ creating: /home/fernando/tmp/paco-build-2012.05.16/rhino1_7R3/deprecatedsrc/org/ creating: /home/fernando/tmp/paco-build-2012.05.16/rhino1_7R3/deprecatedsrc/org/mozilla/ creating: /home/fernando/tmp/paco-build-2012.05.16/rhino1_7R3/deprecatedsrc/org/mozilla/javascript/ $ tail /home/fernando/Downloads/blfs/OpenJDK-1.7.0.3-i686-bin-2012.05.16.log Totalseconds: 14093 real 234m52.887s user 157m30.755s sys 38m36.177s END - Building OpenJDK-1.7.0.3-i686-bin - Qua Mai 16 23:40:12 BRT 2012 -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page