public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [BUG] Package mingw64-x86_64-icu is broken
@ 2018-06-06 19:13 Stefan Weil
  2018-06-18 12:20 ` Stefan Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Weil @ 2018-06-06 19:13 UTC (permalink / raw)
  To: cygwin

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

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Package mingw64-x86_64-icu is broken
  2018-06-06 19:13 [BUG] Package mingw64-x86_64-icu is broken Stefan Weil
@ 2018-06-18 12:20 ` Stefan Weil
  2018-06-19 21:21   ` JonY
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Weil @ 2018-06-18 12:20 UTC (permalink / raw)
  To: cygwin

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?

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Package mingw64-x86_64-icu is broken
  2018-06-18 12:20 ` Stefan Weil
@ 2018-06-19 21:21   ` JonY
  2018-06-19 23:46     ` Stefan Weil
  0 siblings, 1 reply; 5+ messages in thread
From: JonY @ 2018-06-19 21:21 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 1036 bytes --]

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?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Package mingw64-x86_64-icu is broken
  2018-06-19 21:21   ` JonY
@ 2018-06-19 23:46     ` Stefan Weil
  2018-06-20 18:10       ` JonY
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Weil @ 2018-06-19 23:46 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BUG] Package mingw64-x86_64-icu is broken
  2018-06-19 23:46     ` Stefan Weil
@ 2018-06-20 18:10       ` JonY
  0 siblings, 0 replies; 5+ messages in thread
From: JonY @ 2018-06-20 18:10 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 1928 bytes --]

On 06/19/2018 10:18 AM, Stefan Weil wrote:
> 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.
> 
The cygport post-install debug strip is probably stripping too much.
Whoever the maintainer of this package can do a test rebuild with llvm-*
binutils temporarily moved away as a test if Cygport is used.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-19 23:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06 19:13 [BUG] Package mingw64-x86_64-icu is broken Stefan Weil
2018-06-18 12:20 ` Stefan Weil
2018-06-19 21:21   ` JonY
2018-06-19 23:46     ` Stefan Weil
2018-06-20 18:10       ` JonY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).