From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) by sourceware.org (Postfix) with ESMTPS id 0278A3858D3C for ; Wed, 19 Oct 2022 17:09:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0278A3858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-xe29.google.com with SMTP id 1so14058224vsx.1 for ; Wed, 19 Oct 2022 10:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZdhNwSeLmqo3rZRK/NwQjg2jBEizTG2YNKycEedgU7Q=; b=babmhRknH4Y4qsqc9BbwBqCogfut6TOZFL7iOtKG1OczwVYuZL75Uw5Qh9F076KPVy DDxTcYvviSbvI9Z5pe0dbyKUneK1z+JQU+9nz1quWpr0edJiTI2W7R2zte52GcJaMYK5 DXkCleSysJVM8SXKuIQVD4BUIdG8sbpu/DU5ugjCBDh+vQUntUqHEbQpTq4+jVtBm7wI P8b05TYuvh+W4TjVsxLcIRxR3HtKe9QFfs9frxRiaGQJv4NlkHigGXidzS5Urxr/n+Sb oVFXxXigAekZTBSeP3SpYzIomgqbvrXP4PmkiogHwTr3G1/EmiDNbfKdyftxjySR9XRo jaMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZdhNwSeLmqo3rZRK/NwQjg2jBEizTG2YNKycEedgU7Q=; b=Wfd96PUYUEfe4w/0f/prxFTui4V4n4ayVfW16rRnu8+Oh+Xc8JXjpMLzkcPw88nEoK xWiMgD6wsxdkOXgYdf+1NeV0bLuCj7SEg8p2DLvLDY4uwnraCK3jhuFtspaGHh77Xzia KDLKuhBYTtGoPAUHHQY06F2rrmAdsWXXL1x4WSA22VOb2mV5+84xCAOnbXB93fNUKwll +/djER0AjAx+5WRG2rqN7rpWMqkClnNgkyf+0G8bZQ/8rMT7fXCwrPYJvJzYg4gYRvKg 2caoiiFlgBvdqu8M4do9tWEr7WoAO5o9uEEehvW70oK8TKQiXhsBG8YfLYc/Z0pDhO/n YDbQ== X-Gm-Message-State: ACrzQf12VMsmcoP1SzOr+XEzFDem+GWMVenyl48xPz+WepwqqF6JIuMN xzu6795MXNfdaPhU2qJsYVSplNOuUYVXAsIlMaMSGYgB X-Google-Smtp-Source: AMsMyM73YNooENRNEEiSjH6CRTeUp8xeFfiVkKBeMNekGTEkKtrtKUS81Da0Go6YYDwBpo0mBvbvJhB/s3yd8em4csA= X-Received: by 2002:a67:fc06:0:b0:3a6:efb6:74a9 with SMTP id o6-20020a67fc06000000b003a6efb674a9mr4816098vsq.0.1666199355261; Wed, 19 Oct 2022 10:09:15 -0700 (PDT) MIME-Version: 1.0 References: <0986a08f-c28f-882c-8236-f5f3ecc5cb6a@bothner.com> In-Reply-To: <0986a08f-c28f-882c-8236-f5f3ecc5cb6a@bothner.com> From: Panicz Maciej Godek Date: Wed, 19 Oct 2022 19:09:04 +0200 Message-ID: Subject: Re: Building for Android To: Per Bothner Cc: kawa@sourceware.org Content-Type: multipart/alternative; boundary="000000000000b2077a05eb6644f5" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: --000000000000b2077a05eb6644f5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable So, I did check, and USE_SYMBOLIC is set to true. I followed your instruction: I removed selected-java-source, make clean, and then I typed this: ./configure --prefix=3D$HOME/usr --without-awt --without-swt --without-sax2 --without-swing --with-java-source=3D8 --without-httpserver --disable-xquery --disable-echo2 --disable-jemacs --disable-brl --with-android=3D/data/data/com.termux/files/usr/share/java/android.jar (I also tried --disable-xml, but then make reported an error while attempting to compile some scm module) But despite that, USE_SYMBOLIC is still set to true in Mangle.java The output of make that I think might be relevant: javac -d . -g gnu/kawa/util/PreProcess.java CLASSPATH=3D".:$CLASSPATH" java gnu.kawa.util.PreProcess \ %java8 -use:com.sun.net.httpserver +enable:XML -with:jline3 -with:lsp4j -use:java.awt \ `sed -e 's|\([^ ]*\)|./\1|' < ./patch-source-list` (variant java8 maps to: +JAVA5 +JAVA2 +use:java.util.IdentityHashMap +use:java.lang.CharSequence +use:java.lang.Throwable.getCause +use:java.net.URI +use:java.util.regex +SAX2 +use:java.nio +use:org.w3c.dom.Node +use:javax.xml.transform +JAXP-1.3 -JAXP-QName +JAVA6 +JAVA7 +JAVA8 -JAVA9 -JAVA6COMPAT5 +use:java.text.Normalizer +use:javax.lang.model +use:java.lang.invoke -Android) make[1]: Leaving directory '/data/data/com.termux/files/home/Kawa2' echo "%java8 -use:com.sun.net.httpserver +enable:XML -with:jline3 -with:lsp4j -use:java.awt" >selected-java-source =C5=9Br., 19 pa=C5=BA 2022, 18:05 u=C5=BCytkownik Per Bothner napisa=C5=82: > > > On 10/19/22 02:15, Panicz Maciej Godek wrote: > > However, even after fixing that, I get another error: > > > > Error: Field name '\=3Dandroid\,view\,View' cannot be represented in dex > format. > > > > I really don't know how to overcome that one (IIRC Kawa 1.13 used $Dt as > a replacement for a dot) > > There is still logic in Kawa to use-old style mangling (such as "$Dt" for > ".") when Kawa > is build for Android. Notice the /* #ifdef Android */ in > gnu/expr/Magling.java. > > This code is supposed to be enable by the gnu/kawa/util/PreProcess.java > helper, > specifically if you configure --with-android. > > So the first step is to make sure your working copy of Mangling.java > actually does have the USE_SYMBOLIC > set to false. If it doesn't, delete the file selected-java-source, and > re-run configure and make. > Check the PreProcess in the 'make' log. > -- > --Per Bothner > per@bothner.com http://per.bothner.com/ > --000000000000b2077a05eb6644f5--