From owner-freebsd-java@freebsd.org Thu Mar 25 15:29:25 2021 Return-Path: Delivered-To: freebsd-java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 635D95C1836 for ; Thu, 25 Mar 2021 15:29:25 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F5ptY0ZSyz3l53 for ; Thu, 25 Mar 2021 15:29:25 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: by mailman.nyi.freebsd.org (Postfix) id 139C15C1746; Thu, 25 Mar 2021 15:29:25 +0000 (UTC) Delivered-To: java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1358A5C1745 for ; Thu, 25 Mar 2021 15:29:25 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F5ptX4fMDz3l0G for ; Thu, 25 Mar 2021 15:29:23 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Date: Thu, 25 Mar 2021 16:29:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1616686162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=ekh0W2gaDNosUp1/K4JOnXzdmjm/kw24jalzQLNa2po=; b=z1SYSnAU2djFN77iXC0s1/EcQyeyyuiXUbk4PCX/eS2hw3/lR5X2AYjWiToyfcGoQmKtMe 2ZtQELftOiC1YKR8+5tzCCvOKdvbUyH8QmckHrHbjqfT5N9FdqNJqHMboTMBkKBLVnjGfu jMKkgMrUMyR5nqsRkyfCXVtr2aSN+CTTPuaC1gWmWE4MqT26yGga9I8uZvbwfTMZPjDMtw Ze6KK+rbaV+qze+QJd4Y1fFOj3G2XFYbVk1f65zhqsVk6f6bqX3NmwwFcBTmGRKVtQN+Mu P+hWsRIzPvILIQxBHijTSubtt7PZcUrupJt5K6xn3LZrtnNyWdUrqoqwmH3OvQ== From: Ronald Klop To: Greg Lewis , java@freebsd.org Message-ID: <784031113.1.1616686159275@localhost> In-Reply-To: <010101786978fe2d-f0dcdce8-fe2e-4747-af59-a3e61e0e2572-000000@us-west-2.amazonses.com> Subject: Re: Compiling openjdk8 takes forever on RPI4. MIME-Version: 1.0 X-Mailer: Realworks (553.97.b3296b9a8a5) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4F5ptX4fMDz3l0G X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2021 15:29:25 -0000 Hi, It was fixed by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253847 Temporary bug in the kernel. It is fixed in 13.0-RC4 also. The mail thread with the answer evolved in other mailing lists. Thanks for answering, Ronald. Van: Greg Lewis Datum: 25 maart 2021 14:00 Aan: Ronald Klop , java@freebsd.org Onderwerp: Re: Compiling openjdk8 takes forever on RPI4. > > > I'm happy to extend that option to arm64, but I'm curious as to what > might be contributing here. > > One thing is that the newly compiled code is hardly used at all in the > build, IIRC, so I have to wonder how enabling FPUHACK made the build > faster at all unless you built twice with it enabled. But it doesn't > sound like that was the situation? Another factor is that you're > building in a jail and that -CURRENT is involved somehow. Did the > version of -CURRENT change at all across the different builds? > > -- Greg > > On 3/22/21 3:15 PM, Ronald Klop wrote: > > > > Van: Ronald Klop > > Datum: maandag, 22 maart 2021 18:11 > > Aan: java@freebsd.org, arm@freebsd.org > > Onderwerp: Compiling openjdk8 takes forever on RPI4. > >> > >> Hi, > >> > >> I'm using poudriere to compile ports. It runs on an RPI4 8GB. > >> FreeBSD jail13 14.0-CURRENT #6 main-34d696110: Sat Feb 27 05:01:05 > >> CET 2021 > >> > >> Compilation is already going on for the second days. I have compiled > >> this port in the past in a couple of hours. NB: this compiles fine in > >> the official pkg builders. > >> http://www.ipv6proxy.net/go.php?u=http%3A%2F%2Fampere2.nyi.freebsd.org%2Fdata%2Fmain-arm64-default%2Fp568824_s7af04dff02%2Flogs%2Fopenjdk8-8.282.08.1.log&b=0&f=norefer > >> > >> > >> I used jstack to look at what it is doing. The main stack which keeps > >> showing up is this: > >> > >> "main" #1 prio=5 os_prio=15 tid=0x0000000041c41000 nid=0x3f560 > >> runnable [0x0000ffffbfff8000] > >> java.lang.Thread.State: RUNNABLE > >> at sun.misc.FDBigInteger.rightInplaceSub(FDBigInteger.java:890) > >> at > >> sun.misc.FloatingDecimal$ASCIIToBinaryBuffer.doubleValue(FloatingDecimal.java:1357) > >> at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) > >> at java.lang.Double.parseDouble(Double.java:538) > >> at java.lang.Double.valueOf(Double.java:502) > >> at > >> com.sun.tools.javac.parser.JavacParser.literal(JavacParser.java:720) > >> at > >> com.sun.tools.javac.parser.JavacParser.literal(JavacParser.java:659) > >> at > >> com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1196) > >> at > >> com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:909) > >> at > >> com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:880) > >> at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:836) > >> at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:816) > >> at > >> com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:779) > >> at > >> com.sun.tools.javac.parser.JavacParser.variableInitializer(JavacParser.java:2291) > >> at > >> com.sun.tools.javac.parser.JavacParser.variableDeclaratorRest(JavacParser.java:3035) > >> at > >> com.sun.tools.javac.parser.JavacParser.variableDeclaratorsRest(JavacParser.java:3006) > >> at > >> com.sun.tools.javac.parser.JavacParser.classOrInterfaceBodyDeclaration(JavacParser.java:3537) > >> at > >> com.sun.tools.javac.parser.JavacParser.classOrInterfaceBody(JavacParser.java:3436) > >> at > >> com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:3285) > >> at > >> com.sun.tools.javac.parser.JavacParser.classOrInterfaceOrEnumDeclaration(JavacParser.java:3226) > >> at > >> com.sun.tools.javac.parser.JavacParser.typeDeclaration(JavacParser.java:3215) > >> at > >> com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:3155) > >> at > >> com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:628) > >> at > >> com.sun.tools.javac.main.JavaCompiler.complete(JavaCompiler.java:772) > >> at > >> com.sun.tools.javac.main.JavaCompiler$1.complete(JavaCompiler.java:312) > >> at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2535) > >> ... more lines skipped for brevity... > >> > >> The tail of the buildlog is: > >> ... > >> [01:02:41] ## Starting jdk > >> ... > >> [01:05:50] [Error] encoded value was greater than 3: > >> encode(15.029411, 1.0, 14.0, 15.0) > >> [01:05:50] [Error] encoded value was less than 0: encode(-0.05882353, > >> 1.0, 24.0, 25.0) > >> [01:05:50] [Error] encoded value was greater than 3: > >> encode(15.029411, 1.0, 14.0, 15.0) > >> [01:05:50] [Error] encoded value was less than 0: encode(-0.05882353, > >> 1.0, 24.0, 25.0) > >> [01:05:57] [Error] Encountered Infinity: encode(-0.00877193, 0.0, > >> 7.0, 7.0) > >> [01:13:57] Verifying > >> /wrkdirs/usr/ports/java/openjdk8/work/openjdk-jdk8u-jdk8u282-b08.1/build/bsd-aarch64-normal-zero-release/jdk/gensrc_x11wrappers/sizes.64.verification.tmp > >> to > >> /wrkdirs/usr/ports/java/openjdk8/work/openjdk-jdk8u-jdk8u282-b08.1/build/bsd-aarch64-normal-zero-release/jdk/gensrc_x11wrappers/sizes.64 > >> > >> > >> And this is the last output for 32 hours already. I have no idea if > >> the last logline has anything todo with the current activity of the > >> compiling process. > >> > >> Any thoughts on how to fix or debug this? Would it be a Java, OS or > >> RPI4 problem? > >> > >> Regards, > >> Ronald. > >> > >> _______________________________________________ > >> freebsd-arm@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm > >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >> > >> > >> > > > > > > Hi, > > > > I have no idea why, but it seams that enabling > > /usr/ports/java/openjdk8/files/fpuhack.patch on aarch64 fixes my build > > on 14.0/aarch64. Does this make sense? In the Makefile it was only > > enabled on armv6 and armv7. > > > > Regards, > > Ronald. > > > > _______________________________________________ > > freebsd-java@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > > From owner-freebsd-java@freebsd.org Thu Mar 25 17:05:40 2021 Return-Path: Delivered-To: freebsd-java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9607B5C446F for ; Thu, 25 Mar 2021 17:05:40 +0000 (UTC) (envelope-from bugReporter@ib-haakh.de) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F5s1b4055z3tY1 for ; Thu, 25 Mar 2021 17:05:38 +0000 (UTC) (envelope-from bugReporter@ib-haakh.de) ARC-Seal: i=1; a=rsa-sha256; t=1616691936; cv=none; d=strato.com; s=strato-dkim-0002; b=OAP4p/kGDeMdRX+sf5UvP2EvPyCPyz4mxxnEWOvIa2Dli89dIExgM15mw+LqEDNend +kwUCU2KVtZnDvbYJ29SZaaMhqyPJzsVEOwShw9uWLpHzGQHaL/bkyQk/7feNA6hcqld nW2R79slMRtAoGmmVhE36dUtmktPyda5jx0bnqSiexYhQE0XqFjc6glAB4JVylbc6bKm ucHMOFyAaGpyzrSlc/WSeHNY28IoJsd30FR9CAc3HZUHDuwMGcvy+N9cGKzI/gD28fST 3eJ4wdF3VK5nu3PLQ+O5KX482TDm2MpEIecVQOfFIzJ35XgFphvknmFcTM4XK53umRsX EkbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1616691936; s=strato-dkim-0002; d=strato.com; h=Date:Message-ID:Subject:From:To:Cc:Date:From:Subject:Sender; bh=W+3U1Eet5V3pzp1knytHji+NLc2EcsRFWoaDhX7a0qI=; b=rk/9dWbRdUSAcIV0SjjQHa+zvvreTjVrX30anECqxlOcYRVNm93BPqGmVqZOviKX8T OPri/dupr6W2RZYhkTluclnJvblit59yh/NqZqKrAC3SxggmW7KlVrlRjTP1Kt6LJ9yA aqFVMf1QjxK8wA6GwF5LaM0sKsZE2V7kP1YDEqLLZlVgSR0gtBTHT8K4C/VUp8uahjxP XOqQF0Jp7+OYWR5AFj77/Wi/29KJPhRhwMagUFm91tXhvDPYZidFT5EW+mjsPBOSGR1H uQktZZcyKd9JWk2aFR+uXz6WZZltBmBWuJKBqacxY2lHk4wuOmOWCjTHHqemH+RXcCTL 2Fqw== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1616691936; s=strato-dkim-0002; d=ib-haakh.de; h=Date:Message-ID:Subject:From:To:Cc:Date:From:Subject:Sender; bh=W+3U1Eet5V3pzp1knytHji+NLc2EcsRFWoaDhX7a0qI=; b=fe2LVedtZ0bO7tCeUNs9SPd2PG0ymxfBhPYqTkXArENdSFpEBQSfY8Zw2BA1pUEEq1 uXtJ0jKOmiBrMIqmQaDitpTGr54DJvrA+RbkxE/B2z/dB1JxGruJpSbNlGMvyBp/GcID bPtRfJkG6HBOnMzd2I/0DmFMVnb/tqKf6FwsPsT0usnp3AlSZYOyr9iAoo5Qta1OBSFY 3a/4WKHn1+6pfb24ygnZ/SSEy3L1Q2IPEPLi4EmL5wW43R3LhxO71+2aFQvDqNAWNJ1Q KsoUyI24YvpQOxWkAIuC7tsXc3aMWwuWpzevJyOk277rvkjJA5hFktN+B5eQRACXrpHR LpXA== X-RZG-AUTH: ":LWQcbViwW/e6OTbW0dHzwKkCeoYk6TEdOyQt7eTSm7tGb2XqXTgXwTg/t+4nxqp6k4OltiMRacB4vrKgO/iuZ7vonhxMTlE4EyA=" X-RZG-CLASS-ID: mo00 Received: from pain.Haakh.de by smtp.strato.de (RZmta 47.22.0 AUTH) with ESMTPSA id J023bbx2PH5a7LV (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Thu, 25 Mar 2021 18:05:36 +0100 (CET) Received: from MyOffice.Haakh.de (myOffice.haakh.de [192.168.63.21]) by pain.Haakh.de (8.16.1/8.16.1) with ESMTPS id 12PH5ZD2075532 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Thu, 25 Mar 2021 18:05:36 +0100 (CET) (envelope-from bugReporter@ib-haakh.de) To: freebsd-java@freebsd.org From: "Dr. A. Haakh" Subject: fontpaths wrong in /usr/local/openjdk1?/lib/fontconfig.properties.src Message-ID: Date: Thu, 25 Mar 2021 18:05:35 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4F5s1b4055z3tY1 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ib-haakh.de header.s=strato-dkim-0002 header.b=fe2LVedt; arc=pass (strato.com:s=strato-dkim-0002:i=1); dmarc=none; spf=none (mx1.freebsd.org: domain of bugReporter@ib-haakh.de has no SPF policy when checking 85.215.255.25) smtp.mailfrom=bugReporter@ib-haakh.de X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[ib-haakh.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_ALLOW(-1.00)[strato.com:s=strato-dkim-0002:i=1]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; ASN(0.00)[asn:6724, ipnet:85.215.255.0/24, country:DE]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[ib-haakh.de:s=strato-dkim-0002]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; DMARC_NA(0.00)[ib-haakh.de]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[85.215.255.25:from]; FROM_NAME_HAS_TITLE(1.00)[dr]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_VERYGOOD(0.00)[85.215.255.25:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-java] X-Mailman-Approved-At: Thu, 25 Mar 2021 19:35:09 +0000 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2021 17:05:40 -0000 Hello, the subject tells the whole story. I almost went crazy when my java-based program for structural engineering presented me with garbled output. Fortunately there was an openjdk8-based version around... The last correct version is openjdk8, where the fontpaths are correct and java-programs create desired output. You can verify this by root@here:~# root@here:~#  for i in `cat /usr/local/openjdk12/lib/fontconfig.properties.src |awk 'BEGIN {FS="="} /^filename/ {print $2}'`; do j=$(basename $i); echo -n "$i  "; find /usr/local/share/fonts/ -name $j -print -prune; echo ""; done; Similar command and result for openjdk-versions 12-15. Regards Andreas Haakh