From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94170 invoked by alias); 18 May 2017 16:57:57 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 94145 invoked by uid 89); 18 May 2017 16:57:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:D*gmx.net X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 May 2017 16:57:54 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dBOkM-00054t-QE; Thu, 18 May 2017 18:57:54 +0200 Received: from 70-36-239-209.dsl.dynamic.fusionbroadband.com ([70.36.239.209] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1dBOkJ-00080U-0c; Thu, 18 May 2017 18:57:51 +0200 Subject: Re: Android problems To: Peter , kawa@sourceware.org References: <8760gy4ikw.fsf@nexoid.at> From: Per Bothner Message-ID: Date: Thu, 18 May 2017 16:57:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <8760gy4ikw.fsf@nexoid.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00069.txt.bz2 On 05/18/2017 02:31 AM, Peter wrote: > 1) Kawa seems to be compiled against 1.8, which uses > java.lang.invoke.MethodHandle a lot, which Android does not seem to > support. Apparently Android O will support MethodHandles. > Is there a simple way to compile a kawa.jar against 1.6, so I > can use it for Android? You need to build Kawa from source, using the configure flag --with-android=/path/to/android.jar These instructions should help; however, they are a bit out-of-date: https://www.gnu.org/software/kawa/Building-for-Android.html (Advice for updating the instructions would be very welcome.) > 2) In the following code, I get a kawa segfault. It seems to be related > to the anonymous inner class, if I factor that out, things work fine. > ... > Is this somehow my fault, or is this a bug in the compiler? Could be both :-) As a general rule, any segfault or NullPointerException in the compiler is a compiler bug. (I don't count exceptions in for example user-written macro transformers - however, the compiler should catch those and print a helpful error message.) Sometimes a compiler bug is triggered by a bug in the application. I was able to reproduce the NullPointerException, so I'll take a look later. -- --Per Bothner per@bothner.com http://per.bothner.com/