From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by sourceware.org (Postfix) with ESMTPS id 434BD3858C50 for ; Tue, 18 Oct 2022 14:57:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 434BD3858C50 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-xe33.google.com with SMTP id h29so14945439vsq.9 for ; Tue, 18 Oct 2022 07:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KJ4Mlm///AdbKW+UZ141cr2nYPoDl1IqrjXW2J9WqkI=; b=AblgFQMjP1B2TC2I2ifCSBCvDm8Wiojl0YjNIzQxCJH66FAUWgNc7jWTyWdPnMhK+H P8r/ZMQBQbJUOH2RQGf3F/YbbK0R1zBxQUHpyGDmrz4JJdTGi0bMY0ZBJib6GvkJ8aIP MEMHN8i+dLe6LIWWXBi6pN5FlKeA/jjf5STacF161ja8n5nVeh3oG7Y4R4JeyrMYpOcG /vzdV2XNsTpeOiCe70SA/N9mfluCpZ2P3i70+0SvUWmf2n4YriZSOYJNe6Ubx24hHL/r sV7j9yWEEozXGw/58v5/YomqUenrbPrAjQrBW6MaYigsEL6ogHyuxagEGZkS7xgcQ+E6 2AcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KJ4Mlm///AdbKW+UZ141cr2nYPoDl1IqrjXW2J9WqkI=; b=Oj3GOe90ri6bzl+PjjSEaR/8ZdNqL9zA+ec+vJYN34PpG+22xQCvMBNwdw/9MVxgrI wmcBNjM1rE/QL8pdoOskyMUFXxIOqH4QtBhTzldal+LEQJ8TGI7OFJPqj+2W1v885UGd jHAVvbENHYx9pg1TkzwcntvXSp67+MZdTYFY+ykJWhBv35wfkZbAisic98PsGwq9EMl8 wxqOr22mTDTInBOh1AqOoaVrVmDEq1PwK2sqVWsy4ufMLtEgCRNJHrBF/5Pqha8C6hLA h3RftWXLKwHModJGTvwxOPQbV5JodsW1Lv7mGPCEliCEbmFFPZb35Zp9MROlWm38aiR+ TnUQ== X-Gm-Message-State: ACrzQf3Hfeqch8idPn9dhURo0POsf0V6HYxBfcx6MMWpy/qLJUWZerai yBzO205WHon76fO+mnG/94utbAXv7Kt8tE8cM5mVmNtO X-Google-Smtp-Source: AMsMyM4GzJRvXatk9LES6Ij+fjUkZsX3D3CPmkEuc6aco0dXj4qElGt3k83c56snqi82MtmD5d8vfbQCTo+yvs6W4So= X-Received: by 2002:a67:fad5:0:b0:3a6:5bc5:ffd8 with SMTP id g21-20020a67fad5000000b003a65bc5ffd8mr1704735vsq.23.1666105046284; Tue, 18 Oct 2022 07:57:26 -0700 (PDT) MIME-Version: 1.0 From: Panicz Maciej Godek Date: Tue, 18 Oct 2022 16:57:15 +0200 Message-ID: Subject: Building for Android To: kawa@sourceware.org Content-Type: multipart/alternative; boundary="000000000000713f6905eb504f54" 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: --000000000000713f6905eb504f54 Content-Type: text/plain; charset="UTF-8" Hi, I've been trying to build a stub for GRASP running in the Android environment. My earlier prototype was written in Java, based on the scripts from a github project called 'buildAPKs', that lets one build Android projects on Android (using the Termux app). Also, I found a github project that showd how to build apps written in Kawa for Android, and even managed to build and run an example application: https://github.com/abarbu/android-kawa However, the caveat is that it comes with a kawa.jar file with version 1.13, which is quite old (and there are many features from the more recent Kawa releases that GRASP relies on). But when I try to build the KawaHello example using a kawa.jar built from the most recent version, I get an error from the Android's ''dexer" tool (which translates JVM bytecode to Dalvik/ART): 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. I tried building Kawa having passed --with-java-source=7 to the 'configure' script, but that didn't help. I also tried cosplaying javac by ecj (which is the compiler that the buildAPKs uses), but this results with a bunch of warnings and some errors: 180. WARNING in /data/data/com.termux/files/home/Kawa2/gnu/kawa/util/AbstractHashTable.java (at line 243) static class AbstractEntrySet, K, V> extends AbstractSet ^^^^^ The type parameter Entry is hiding the type Map.Entry ---------- 181. ERROR in /data/data/com.termux/files/home/Kawa2/gnu/kawa/util/AbstractHashTable.java (at line 287) nextEntry = htable.table[nextIndex]; ^^^^^^^^^^^^^^^^^^^^^^^ Type mismatch: cannot convert from Map.Entry to Entry ---------- 182. ERROR in /data/data/com.termux/files/home/Kawa2/gnu/kawa/util/AbstractHashTable.java (at line 298) nextEntry = htable.getEntryNext(currentEntry); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type mismatch: cannot convert from Map.Entry to Entry ---------- I'm not really sure where these errors stem from - I suppose ecj supports a different subset of Java than the one that was used to write Kawa (I was forcing source and tarfet I also tried aliasing javac as javac -release 7, but it still seens to produce the class file version 61.0. Does anyone know how to produce a kawa.jar that would satisfy the dexer? (The dexer version from the termux repo is 1.16) --000000000000713f6905eb504f54--