From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [IPv6:2a0c:5a00:149::26]) by sourceware.org (Postfix) with ESMTPS id 4EA7A3858D32 for ; Tue, 18 Oct 2022 15:25:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4EA7A3858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1okoTA-00Dplt-A1; Tue, 18 Oct 2022 17:25:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID; bh=c0fq2ONFaQ0D73xaPvX+ZrP/9aD01jO3VyDpU/d50M8=; b=D7060Mt7uucklbvaHYoPdJ8coG yOrFwFFi6QFZmsUdwEraGbi/TOpXXp3CR2n2aYorFfmGa0V0WQuT2V51RVai+qtBg9kTOD1gNwbpi RxyezmKkXkiw827xU1xmKt1b5NFDsDvHz60UzK/BDaVf347IcFjWS7c9/SXvACqga3paPw8a/njDD h/u0oQfsVpU6Cqfs9vUhDOpzCxythJCdpAqijxuEeZdpuguw9jxpJibV3vFaXp/ShKpZAmN0QqYqj qUA3/+5opNG2FL+/zC2BDKfKr4NFfaDDHfnANH9VtZkqQhko4G3JC7Us6OQpEu3DB+SycxfYh6QRv KUGE/uuQ==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1okoT9-00075H-Nk; Tue, 18 Oct 2022 17:25:27 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1okoT8-0006Vh-0m; Tue, 18 Oct 2022 17:25:26 +0200 Message-ID: Date: Tue, 18 Oct 2022 08:25:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: Building for Android Content-Language: en-US To: Panicz Maciej Godek , kawa@sourceware.org References: From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 10/18/22 07:57, Panicz Maciej Godek via Kawa wrote: > PARSE ERROR: > unsupported class file version 61.0 > ...while parsing gnu/bytecode/Access.class > > So, what I suppose happens, is that the javac which builds Kawa emits byte > code that is unsupported by dx. Try specifying the --release to javac. This may be helpful: https://stackoverflow.com/questions/43102787/what-is-the-release-flag-in-the-java-9-compiler > I tried building Kawa having passed --with-java-source=7 to the 'configure' > script, but that didn't help. Yes, IIRC (if I recall correctly) that doesn't change teh options passed to javac. You can pass the --target option to the kawa command when compiling Scheme to class files, but that currently defaults to 52 (Java 8), which hopefuly dexer will handle. > I also tried aliasing javac as javac -release 7, but it still seens to > produce the class file version 61.0. Hm. That is weird. You can try an exlicit 'javac --target 8' (say). According to https://en.wikipedia.org/wiki/Java_version_history class file version 61.0 is Java 17. -- --Per Bothner per@bothner.com http://per.bothner.com/