From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simon Pugnet Newsgroups: gmane.emacs.bugs Subject: bug#63257: Android port: unable to build using javac 20.0.1 on Arch Linux Date: Thu, 04 May 2023 10:10:52 +0100 Message-ID: <87sfcco3hy.fsf@polaris64.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19676"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu To: 63257@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 04 11:23:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puVBN-0004tb-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 May 2023 11:23:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puVB3-0007Wo-1h; Thu, 04 May 2023 05:23:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puVB1-0007WN-9h for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 05:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puVB0-0007jK-S8 for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 05:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puVB0-0002UZ-Co for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 05:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simon Pugnet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 May 2023 09:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63257 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16831921619525 (code B ref -1); Thu, 04 May 2023 09:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 May 2023 09:22:41 +0000 Original-Received: from localhost ([127.0.0.1]:48562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puVAe-0002TY-EL for submit@debbugs.gnu.org; Thu, 04 May 2023 05:22:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puVAb-0002TP-6Y for submit@debbugs.gnu.org; Thu, 04 May 2023 05:22:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puVAa-0007T7-NX for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 05:22:36 -0400 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1puVAX-0007bY-Sx for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 05:22:36 -0400 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QBpHb2XV8z9sxN; Thu, 4 May 2023 11:22:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polaris64.net; s=MBO0001; t=1683192139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=SR3xqRDtV0mynkJ7IycPorFxOXhDqzLLWToTaNEQ5Gk=; b=WnNVPUH6fropV9j81yD6coVIXoNsGG2GQSHMhb2P5vtJ+VOMXz0E72W1uo+h+KVqXB4Vn+ PkE80fj6YlwiyBQ80cMq0+H3eom5p2sOJdvCk9YUcmOiewjpcoyrIw2T2ZUBexxbdnhVmx vmMcATN8nn7belfQ3iK860CkhVeOXpChynZdbaH1F1Ak7Itf192mWadAw3IGiAbxI9XoTs M9dA8devCQRlOY4XgDVyl4SrLvM3YHodx5INq/T19wTnGhWH2/6qCDwb1Ixy+nL2Zs1U2s 4/yUoYikzV5kKOFuDa8Zq3ZEGHeV3KuRRJ3o/NeRyq1C0eTk8E5OAIVOKSKVhA== Received-SPF: pass client-ip=80.241.56.172; envelope-from=simon@polaris64.net; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261005 Archived-At: --=-=-= Content-Type: text/plain; format=flowed I have been building the Android port from source regularly and after a recent Arch Linux package update I am no longer able to configure the build. The JDK package I currently have installed is: extra/jdk-openjdk 20.0.1.u9-3 When running configure I get: - [...] checking whether the Java compiler works... no configure: error: The Java compiler does not work, or you did not specify a valid path to android.jar. See config.log for more details. make: *** [Makefile:586: config.status] Error 1 Checking config.log shows: - [...] configure:7603: checking whether the Java compiler works warning: [options] bootstrap class path not set in conjunction with -source 7 error: Source option 7 is no longer supported. Use 8 or later. error: Target option 7 is no longer supported. Use 8 or later. configure:7634: result: no configure:7638: error: The Java compiler does not work, or you did not specify a valid path to android.jar. See config.log for more details. [...] When I run javac I see the following: - [...] --source , -source Provide source compatibility with the specified Java SE release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 [...] --target , -target Generate class files suitable for the specified Java SE release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 [...] I can see a few lines in configure.ac which are like this: - ("$JAVAC" -classpath "$with_android" -target 1.7 -source 1.7 conftest.java \ So I'm assuming the error comes from this version of javac not supporting -target/-source 1.7. I hope that provides enough information, please let me know if you'd like me to test anything else. Kind regards, -- Simon Pugnet https://www.polaris64.net/ PGP key fingerprint: 3BF7 85DE 162C 00C8 FB4D A6FD BA13 59A8 2C0B 3EF9 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCAAyFiEEO/eF3hYsAMj7Tab9uhNZqCwLPvkFAmRTeUkUHHNpbW9uQHBv bGFyaXM2NC5uZXQACgkQuhNZqCwLPvmv4Q//XrVoKc8/OnXjA6bZUzog07eS8wfi ZKV2NhQVlFYLyuhcpO69DjJEH1XHZHCq04ZX2FQ2+WM0xvjyN7+mf/ApZMbnbIYr F6FyeS35ovQdvSjq1CtwQBCXbMYGmCZo2YDpr+6pgua+28Rk7xkb1pQBhZR1UNga uvF7HFO9eeJ60HN6Wd2UOs5Z0zwXMuCJcG4/rfDcFgSzqt21tP+GZutgHU6uM/Wq C9+xqcdY/oOegYtuqjpqCqS7NvACc3cDRFM90Zh1AQ0vvBQBRMRzhrLq1FRVF9p0 q3PhHIZurEpynsA4APvDYeOKknm/tRYUgf4FMoylZJmdNop3POIqdGpXpNy7IWFM Tp9TRU+Rp1sI+koqSId6fMaEHR1IH1oHH/NDcI7vyOxZUdXShZFUOasjLkzEQTSg V9c6Olq/bpY1v3TuD8MaN2lkUpGPSDolYG7mnz4+l9vm/eZ3/5Ehwwtj49jCu1AJ 4PBqgh1T+R9w35fgAIL3QzjCUQCe4TTwcRzSYygD+8bMIYKEGCxUx7Ww0onPn0xv T7EvfR+Kobufc8CHe16hwWDGAIft/EcAX6fSZQrn/PLzsQdtJg72AkE+vqWIv1NG UB4LjhbMzA8wpn4pWRRMSOuJ89BYZTGbYvOPwVkVj7cDWaXK7PrluGIyKqBTvZFX tE9ZmspjwuDxvyE= =VxkZ -----END PGP SIGNATURE----- --=-=-=--