On 05/16/2012 10:52 PM, Fernando de Oliveira wrote:
> 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

Hmm, I have a feeling that you had a screen saver or your monitor 
entered power save while running the tests and all of the interactive 
tests failed as a result. Here are my results:

--------------- jtreg console summary for hotspot ---------------
Test results: passed: 144
--------------- jtreg console summary for jdk ---------------
FAILED: com/sun/net/httpserver/bugs/B6341616.java
FAILED: com/sun/net/httpserver/Test2.java
FAILED: java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java
FAILED: 
java/awt/EventDispatchThread/HandleExceptionOnEDT/HandleExceptionOnEDT.java
FAILED: java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.html
FAILED: 
java/awt/Focus/CloseDialogActivateOwnerTest/CloseDialogActivateOwnerTest.java
FAILED: java/awt/Focus/FocusOwnerFrameOnClick/FocusOwnerFrameOnClick.java
FAILED: java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java
FAILED: java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java
FAILED: java/awt/GraphicsDevice/CloneConfigsTest.java
FAILED: 
java/awt/image/ImagingOpsNoExceptionsTest/ImagingOpsNoExceptionsTest.java
FAILED: java/awt/print/PrinterJob/PrtException.java
FAILED: java/awt/Robot/AcceptExtraMouseButtons/AcceptExtraMouseButtons.java
FAILED: java/awt/Toolkit/ToolkitPropertyTest/ToolkitPropertyTest_Enable.java
Error:  java/lang/invoke/ClassValueTest.java
FAILED: java/lang/invoke/InvokeDynamicPrintArgs.java
Error:  java/lang/invoke/InvokeGenericTest.java
Error:  java/lang/invoke/JavaDocExamplesTest.java
Error:  java/lang/invoke/MethodHandlesTest.java
Error:  java/lang/invoke/MethodTypeTest.java
Error:  java/lang/invoke/PermuteArgsTest.java
Error:  java/lang/invoke/RicochetTest.java
FAILED: java/net/Authenticator/AuthNPETest.java
FAILED: java/net/Authenticator/B4678055.java
FAILED: java/net/Authenticator/B4722333.java
FAILED: java/net/Authenticator/B4759514.java
FAILED: java/net/Authenticator/B4769350.java
FAILED: java/net/Authenticator/B4921848.java
Error:  java/net/Authenticator/B4933582.sh
FAILED: java/net/Authenticator/B4962064.java
FAILED: java/net/Authenticator/B6870935.java
FAILED: java/net/Authenticator/BasicTest.java
FAILED: java/net/Authenticator/BasicTest3.java
FAILED: java/net/Authenticator/BasicTest4.java
FAILED: java/net/Authenticator/Deadlock.java
FAILED: java/net/URL/TestHttps.java
FAILED: java/nio/channels/AsynchronousServerSocketChannel/Basic.java
FAILED: java/nio/channels/AsynchronousSocketChannel/Basic.java
FAILED: java/nio/channels/etc/NetworkChannelTests.java
FAILED: java/nio/channels/ServerSocketChannel/NonBlockingAccept.java
FAILED: java/nio/channels/SocketChannel/ExceptionTranslation.java
FAILED: java/nio/file/Files/probeContentType/Basic.java
FAILED: java/security/KeyPairGenerator/Failover.java
FAILED: javax/imageio/plugins/shared/BitDepth.java
FAILED: javax/management/openmbean/TabularDataOrderTest.java
FAILED: javax/print/attribute/AttributeTest.java
FAILED: javax/print/attribute/GetCopiesSupported.java
FAILED: javax/print/attribute/SidesPageRangesTest.java
FAILED: javax/print/attribute/SupportedPrintableAreas.java
FAILED: javax/print/CheckDupFlavor.java
FAILED: javax/script/VersionTest.java
FAILED: javax/swing/JComponent/4337267/bug4337267.java
FAILED: javax/swing/JComponent/6683775/bug6683775.java
FAILED: javax/swing/JEditorPane/6917744/bug6917744.java
FAILED: javax/swing/JFileChooser/6738668/bug6738668.java
FAILED: javax/swing/JInternalFrame/Test6325652.java
FAILED: javax/swing/JInternalFrame/Test6505027.java
FAILED: javax/swing/JInternalFrame/Test6802868.java
FAILED: javax/swing/JLabel/6596966/bug6596966.java
FAILED: javax/swing/JLabel/7004134/bug7004134.java
FAILED: javax/swing/JLayer/6824395/bug6824395.java
FAILED: javax/swing/JPopupMenu/6495920/bug6495920.java
FAILED: javax/swing/JPopupMenu/6987844/bug6987844.java
FAILED: javax/swing/JScrollBar/6542335/bug6542335.java
FAILED: javax/swing/JScrollPane/Test6526631.java
FAILED: javax/swing/JSlider/6848475/bug6848475.java
FAILED: javax/swing/JTable/6777378/bug6777378.java
FAILED: javax/swing/JTableHeader/6884066/bug6884066.java
FAILED: javax/swing/JTableHeader/6889007/bug6889007.java
FAILED: javax/swing/Security/6657138/ComponentTest.java
Error:  javax/swing/system/6799345/TestShutdown.java
FAILED: javax/swing/text/CSSBorder/6796710/bug6796710.java
FAILED: sun/java2d/cmm/ColorConvertOp/MTSafetyTest.java
FAILED: sun/java2d/cmm/ProfileOp/ReadWriteProfileTest.java
FAILED: sun/net/idn/TestStringPrep.java
FAILED: sun/net/www/protocol/http/BasicLongCredentials.java
FAILED: sun/net/www/protocol/http/DigestTest.java
FAILED: sun/net/www/protocol/http/NTLMTest.java
FAILED: sun/net/www/AuthHeaderTest.java
FAILED: sun/security/ec/TestEC.java
FAILED: sun/security/krb5/auto/HttpNegotiateServer.java
FAILED: sun/security/krb5/runNameEquals.sh
FAILED: sun/security/pkcs11/Provider/ConfigShortPath.java
FAILED: sun/security/pkcs11/Signature/TestRSAKeyLength.java
FAILED: 
sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/HttpsProxyStackOverflow.java
Error:  
sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/PostThruProxyWithAuth.sh
FAILED: sun/security/tools/jarsigner/ec.sh
FAILED: tools/launcher/ExecutionEnvironment.java
Test results: passed: 4,017; failed: 78; error: 10
--------------- jtreg console summary for langtools ---------------
FAILED: tools/javac/processing/6499119/ClassProcessor.java
Test results: passed: 1,920; failed: 1

6 of those listed above were know to fail based on the results of other 
consumers and existing bug reports (as well as the 10 errors which are 
-samevm issues). I'm pretty sure the mass majority of them are due to 
the windows not being automatically anchored in twm (swing, java2d, awt, 
imagio). I think the print errors are related to not having xprint in 
xorg-server anymore, but not sure, have yet to look into them. The two 
com/sun/net errors are know to fail previously specific to Linux hosts. 
Pretty sure the lang failure is also related to the -samevm change, but 
not positive. I haven't actually looked at it yet, but it'd be funny for 
all other tests to pass and only one fail in langtools. The net and nio 
failures I am lost on. I don't recall seeing them before, but might 
possibly be due to running the tests as an unprivileged user(?), just 
not ready to say so just quite yet. Security errors are all provided by 
NSS, and I believe still expected to fail (used to be a bug but I 
haven't found it yet). The "ClassProcessor" failure plagued us in 
OpenJDK6 as unexplained too, not sure what the other distros are seeing yet.

>
> $ 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
>
I didn't even bother to script it yet. I guess I should. :-) Thanks for 
the i686 timings though. Oh, the i686 build will be larger than the 
amd64 build. Jvm contains both client and server VMs on i686, only 
server on x86_64.
> $ 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
>
-- DJ


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to