From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95721 Path: news.gmane.org!.POSTED!not-for-mail From: Jose Luis Arellano Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt on linux-armhf Date: Mon, 8 Aug 2016 16:16:46 -0300 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5112055892615591974==" X-Trace: blaine.gmane.org 1470683834 24568 195.159.176.226 (8 Aug 2016 19:17:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 19:17:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 08 21:17:10 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWq2v-0006Ev-LM for gctc-ntg-context-518@m.gmane.org; Mon, 08 Aug 2016 21:17:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9E0D114854; Mon, 8 Aug 2016 21:17:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gndUZcUF1Kft; Mon, 8 Aug 2016 21:17:01 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id DCA361488E; Mon, 8 Aug 2016 21:17:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AB3E614854 for ; Mon, 8 Aug 2016 21:17:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w931qyML-b8M for ; Mon, 8 Aug 2016 21:16:59 +0200 (CEST) Original-Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6953F147C4 for ; Mon, 8 Aug 2016 21:16:49 +0200 (CEST) Original-Received: by mail-qk0-f177.google.com with SMTP id t7so55835976qkh.0 for ; Mon, 08 Aug 2016 12:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=oGWXesv4CAtNaVO3qdk8ZFOUAwZBvN9qztfcTo+P7Ko=; b=D8JZJIDmo1e0Oq/2oriiP4vjzjJp+Vg3orRECBvfk0JRRDiJOB3G+wW28LvtulP3ee rQQW0UIA7XlPIkBmSaFaIyUqEu2lNrNVHeCHuaEtsYKXIcPIdfi1yMqEF4Dpbb8c01Qt hx9cAnQzn/znTuPZsRXc0v3ec9TqnRtDRYat5yTJvVRC2dej/pcxm65O9ihKuE9U9IHN TyHCfxy92/yYc9kq3eQzoxi98vZkupAnk2HrPpaJ5P6CG4shZ3xD9d4mO+pUi60kQ1a5 PUKlRytM1PRFJjm2WGUZtXypSbQ4Q883Tjgz+68ZbkaU0oCEGuuOepkssLVZ9pnfCKjM C8Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=oGWXesv4CAtNaVO3qdk8ZFOUAwZBvN9qztfcTo+P7Ko=; b=ES/vXGTVHFwt5C3ukxzLliw05+VYb191awRmACDpobgPEAyvmpE3jD8vmBx1lC+Q0t BdCGmD7SL3xgpQTMyprwptqsR57Z0i4/86q7sSCFXnUm5xUipXwG4aaO3UaYBxEIETrE aHkN5WHr2WtWCYGYhJVmSaJn2dzulVkvq4xWC9RAnBL2LzVn5QLWCadQTQROYHinezPj 4ePCVBuf4PbHUbmkA2xqSyjJPck4Y8RaDRLwb8zmZW88igsKTaXGqyVKWbUjUNTEpc2X i/iGWHtg5gFlNldmDF+u8c/Wx6S+a/ybzLnrfgkIMJBLD3K/ytDFKddFNf5sTNXNbvRM 4pXg== X-Gm-Message-State: AEkooutSRdxhghzBGriiKoH3e9srKuAsTUGVIXr2nUk35yCd6mn6cqC3z3v7fdUnHYAqxP1TDSsOjpGWSBCVAg== X-Received: by 10.55.20.90 with SMTP id e87mr28456397qkh.260.1470683807113; Mon, 08 Aug 2016 12:16:47 -0700 (PDT) Original-Received: by 10.140.81.9 with HTTP; Mon, 8 Aug 2016 12:16:46 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95721 Archived-At: --===============5112055892615591974== Content-Type: multipart/alternative; boundary=001a1144d1fee667ba0539944157 --001a1144d1fee667ba0539944157 Content-Type: text/plain; charset=UTF-8 Well, if i use the binary from http://tug.org/svn/texlive/trunk/Master/bin/armel-linux/ (Revision 41089) i get "Segmentation fault". However, the binary from http://tug.org/svn/texlive/trunk/Master/bin/armhf-linux/ (Revision 41117) seems to work perfectly fine. Thanks guys. 2016-08-08 5:14 GMT-03:00 Henri Menke : > Hi, > > as far as I know, there is no such thing like the standard ARM chip. The > ARM company designs chips to fit the needs of their customers. Therefore, > the Raspberry Pi processor and the processor in a smartphone may have a > very different instruction set. > > The Wikipedia page for the ARM Cortex-A7 (Raspberry Pi 2 Model B) lists > several other chips implementing the Cortex-A7 instruction set. I would > only guarantee compatibility with these chips if the binaries were built > for this architecture. > > https://en.wikipedia.org/wiki/ARM_Cortex-A7 > > Another issue I could think of is the filesystem format. This is very > heterogeneous among Android vendors. I think Samsung uses f2fs, HTC uses > YAFFS, and LG uses ext4. It could be that the luatex binary runs on some > kind of compatibility layer within Android which is either lacking correct > filesystem syscalls or is doing them wrong. > > These are just ideas. I hope it helps anyway. > Cheers, Henri > > On 08/08/2016 09:46 AM, Mojca Miklavec wrote: > > On 8 August 2016 at 06:53, Jose Luis Arellano wrote: > >> Hi Mojca, > >> > >> The binaries comes from armhf (your build), as you can see in logs > attached. > >> While the version of Tex Live installed is texlive-bin-2016.41290-5 > -armv7h. > > > > armv7h looks like "armhf". > > > > But I checked the logs and you are most likely using the binaries that > > were compiled for Arch Linux and your machine (CPU) specifically > > rather than the ones that are compiled by the TeX Live team. > > > > Can you try replacing the luatex binary in ConTeXt distribution with > > the binaries from > > http://tug.org/svn/texlive/trunk/Master/bin/ > > please try once with armel-linux/luatex and once with > > armhf-linux/luatex. (You can fetch the binary via SVN or via viewvc, > > but make sure that the downloaded file will be executable.) > > > > I'm curious whether that binary works for you (try with armhf-linux > first). > > > >> Maybe the problem is related to architecture of cpu, the latest > raspbian use > >> ARMv8. > > > > The exact architecture depends on hardware rather than software. I > > guess we have RPi2 B (Hans must know). For some reason I cannot access > > the machine at the moment, but I guess that RPi2+ is also armv7 (ARM > > Cortex-A7). I'm not 100% sure though. > > > > The question is whether an older version of OS would help in any way. > > > > In any case you should be able to just copy the luatex from your > > distro to the minimals and get a working PDF. > > > > Mojca > > ____________________________________________________________ > _______________________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > ____________________________________________________________ > _______________________ > > > > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --001a1144d1fee667ba0539944157 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Well, if i use the binary from=C2=A0http://tug.org/svn/texl= ive/trunk/Master/bin/armel-linux/=C2=A0(Revision 41089) i get "Segmen= tation fault".
However, the binary from=C2= =A0htt= p://tug.org/svn/texlive/trunk/Master/bin/armhf-linux/=C2=A0(Revision 41= 117) seems to work perfectly fine.
Thanks guys.

2016-08-08 = 5:14 GMT-03:00 Henri Menke <henrimenke@gmail.com>:
Hi,

as far as I know, there is no such thing like the standard ARM chip.=C2=A0 = The ARM company designs chips to fit the needs of their customers.=C2=A0 Th= erefore, the Raspberry Pi processor and the processor in a smartphone may h= ave a very different instruction set.

The Wikipedia page for the ARM Cortex-A7 (Raspberry Pi 2 Model B) lists sev= eral other chips implementing the Cortex-A7 instruction set.=C2=A0 I would = only guarantee compatibility with these chips if the binaries were built fo= r this architecture.

https://en.wikipedia.org/wiki/ARM_Cortex-A7

Another issue I could think of is the filesystem format.=C2=A0 This is very= heterogeneous among Android vendors.=C2=A0 I think Samsung uses f2fs, HTC = uses YAFFS, and LG uses ext4.=C2=A0 It could be that the luatex binary runs= on some kind of compatibility layer within Android which is either lacking= correct filesystem syscalls or is doing them wrong.

These are just ideas.=C2=A0 I hope it helps anyway.
Cheers, Henri

On 08/08/2016 09:46 AM, Mojca Miklavec wrote:
> On 8 August 2016 at 06:53, Jose Luis Arellano wrote:
>> Hi Mojca,
>>
>> The binaries comes from armhf (your build), as you can see in logs= attached.
>> While the version of Tex Live installed is texlive-bin-2016.41290-5-armv7h.
>
> armv7h looks like "armhf".
>
> But I checked the logs and you are most likely using the binaries that=
> were compiled for Arch Linux and your machine (CPU) specifically
> rather than the ones that are compiled by the TeX Live team.
>
> Can you try replacing the luatex binary in ConTeXt distribution with > the binaries from
>=C2=A0 =C2=A0 =C2=A0http://tug.org/svn/texlive/= trunk/Master/bin/
> please try once with armel-linux/luatex and once with
> armhf-linux/luatex. (You can fetch the binary via SVN or via viewvc, > but make sure that the downloaded file will be executable.)
>
> I'm curious whether that binary works for you (try with armhf-linu= x first).
>
>> Maybe the problem is related to architecture of cpu, the latest ra= spbian use
>> ARMv8.
>
> The exact architecture depends on hardware rather than software. I
> guess we have RPi2 B (Hans must know). For some reason I cannot access=
> the machine at the moment, but I guess that RPi2+ is also armv7 (ARM > Cortex-A7). I'm not 100% sure though.
>
> The question is whether an older version of OS would help in any way.<= br> >
> In any case you should be able to just copy the luatex from your
> distro to the minimals and get a working PDF.
>
> Mojca
> ____________________________________________________________= _______________________
> If your question is of interest to others as well, please add an entry= to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-contex= t
> webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net > archive=C2=A0 : http://foundry.supelec.fr/pr= ojects/contextrev/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ____________________________________________________________= _______________________
>

_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/project= s/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a1144d1fee667ba0539944157-- --===============5112055892615591974== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5112055892615591974==--