delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/19/06:18:46

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Ymv9Lw0zNdbtl90r
eFXgMLXku2iBCCcfMxk0Tu/hEOf9wVOmkwpDqWfo2qNdxKwi+PLcwy2b8XCiKPmM
u3wBtgUJXViO5MmKxK9Bs1j6OlXeOGZOZgEkKAH1N7QY2v3h0I/KdwH0BDXycH8D
SwqTDa+G6sBnPJD/aXvlINjJ0wE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=kDcucQBd+Ey2jjLJeWGamr
Ncf3Q=; b=cUj/dtxW13wMNiOZ2GFqPXZlJF+EJ/Io1+SaAOxScQ7kxDFW4TUYre
XmNvPK05ROisC3szTvzJrdsNRqqYIe4/Y4nw57YcW+ysvVajHO0la3vuotK3m6SK
ODvSsD0F+Cgu+HweAMy9y1w0GpGogyLSizDFtogDShvaU5b1Q5T3w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=nov, Nov, 19062018, mingw
X-HELO: smtp.mail.uni-mannheim.de
Subject: Re: [BUG] Package mingw64-x86_64-icu is broken
To: cygwin AT cygwin DOT com
References: <df0243df-ca15-408b-a277-f0af7174d4c0 AT weilnetz DOT de> <63d2b80c-42ce-7aa2-dcb2-2fb5f821b96a AT weilnetz DOT de> <ebbb7826-5a4b-ee1e-7444-d30a0542203c AT gmail DOT com>
From: Stefan Weil <sw AT weilnetz DOT de>
Openpgp: preference=signencrypt
Message-ID: <7cf87ba8-c298-cacb-63d7-54ff2c50da2c@weilnetz.de>
Date: Tue, 19 Jun 2018 12:18:27 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <ebbb7826-5a4b-ee1e-7444-d30a0542203c@gmail.com>
X-IsSubscribed: yes

Am 19.06.2018 um 11:53 schrieb JonY:
> On 06/18/2018 12:12 PM, Stefan Weil wrote:
>> Am 06.06.2018 um 21:13 schrieb Stefan Weil:
>>> Both mingw64-x86_64-icu-57.1-1 and mingw64-x86_64-icu-57.1-2 are broken:
>>>
>>> This code always fails:
>>>
>>> icu::Normalizer2::getInstance(nullptr, "nfkc", UNORM2_COMPOSE, error_code);
>>>
>>> The problem was detected when comparing Tesseract for Windows
>>> executables: while the 32 bit version worked fine, the 64 bit version
>>> failed. The failure could be localized, and the mingw64-x86_64-icu
>>> package was identified to be causing it.
>>>
>>> https://github.com/tesseract-ocr/tesseract/issues/1625#issuecomment-395161152
>>> contains details and also a short test code which can be used to
>>> reproduce the problem.
>>>
>>> The 32 bit package mingw64-i686-icu-57.1-2 works fine.
>>>
>>> Kind regards
>>> Stefan Weil
>>
>> Ping. How can I help to get this issue fixed?
> 
> I noticed cygport is using llvm version of binutils, not sure if that
> broke things.
> 
> Was the issue there if you built it yourself with gcc/binutils?


No, a local build with x86_64-w64-mingw32-gcc works fine.
Tested with 57.1-2, but also with recent versions of icu.

A good indicator of a broken installation is a small icudata57.dll:

$ ls -l /usr/*/sys-root/mingw/bin/icudata57.dll
-rwxr-xr-x 1 25680896 Nov 10  2016
/usr/i686-w64-mingw32/sys-root/mingw/bin/icudata57.dll
-rwxr-xr-x 1    15872 Nov 10  2016
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/icudata57.dll

The (good) file for 32 bit is much larger than the (broken) file for 64 bit.

Stefan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019