X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B883386182B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1612551999;
	bh=eh9uy5fJSFcDgDC26L6NAtsMRgRCHMfBj2ZjV3SkaPo=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=g8YYpdGUetALlqiUUvNTm9v5MVF7euqiODRpcxBtIrZJtXwMPr7RNKGbEAMOxHtaQ
	 2/ghr44BHLkZT9FSdCGpURts5yEIXuJwWqzjp7UbaHn6V8mzTaWUqGg+8ksRKuja+j
	 nzIM4UwPma/NduCPpVJlnB/JwGvQuye2Uqjrbv8U=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8A4653854815
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=8TZigltONjhWY/R71GzGimNbBFcwimAwg0+lKpUtEtE=;
 b=kFeDqPHuUnHnlhuzWEMzjYHJjEB7I9E6nl4qDaL6SdQa9L/4T1zYQQRa6vTV+fdhwI
 1TPgYPN4P0woCj1umNiQoqotH2MmUbY0XOtHSsib5iZs82/CSSci7hp7eGggchUE2U7W
 cnWAeuPctZuwrcTiRcghv3k5nS9Msujb+bWniJyfbtRUAKUx1i9PWfTZslRWnSxLzSs5
 zEzZ/I1/7uVZbrRO4JisXfCCRlmFKKB9Zw5Ansb97x1/OB3DWJiAd2umulJ2/PHaUezy
 Kdh72cUsn6Tg4Zka9SS2T6/qYfmU+DCWzs0+xy3P6Tnxyqc6GU6+MAnPaC7jihFnXOYg
 Emxw==
X-Gm-Message-State: AOAM532nzqpXQByCrq+uwShU02CZDsjJvSwCOxgYodj8UWcJZ7PXYygG
 rsAwfteeM1a9/nmuxz5I6mpyUGy2kwAsOw==
X-Google-Smtp-Source: ABdhPJwIp9A2yUZBe+cKmhHbc2ZZ3z9qVh/reLDBMpi2qKgwcB/I7AqSWupJO5k9oSL/XfWcqijHGw==
X-Received: by 2002:a5d:4203:: with SMTP id n3mr6550856wrq.49.1612551994536;
 Fri, 05 Feb 2021 11:06:34 -0800 (PST)
Subject: Re: Cygwin GDB won't start or hangs at startup
To: cygwin@cygwin.com
References: <trinity-0937b06d-2b4c-4bed-a1c4-b447895092ff-1612511724221@3c-app-webde-bap19>
 <d746ca37-d681-e9c9-8d8c-bd03cb4d10e9@gmail.com>
 <20210206001809.f2d27fddcf3cfec75e348d71@nifty.ne.jp>
 <VI1PR03MB6446DCD9433CEC03BD8E566ABEB29@VI1PR03MB6446.eurprd03.prod.outlook.com>
Message-ID: <b7d1da20-af6f-24b1-14db-9cef93f564c4@gmail.com>
Date: Fri, 5 Feb 2021 20:06:33 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.7.0
MIME-Version: 1.0
In-Reply-To: <VI1PR03MB6446DCD9433CEC03BD8E566ABEB29@VI1PR03MB6446.eurprd03.prod.outlook.com>
Content-Language: it
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Reply-To: Marco Atzeri <marco.atzeri@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 115J7DVI018281

On 05.02.2021 17:39, Lemke, Michael SF/HZA-ZIC2 wrote:
> On Friday, February 5, 2021 4:18 PM Takashi Yano wrote:
>> On Fri, 5 Feb 2021 10:07:46 +0100
>> Marco Atzeri wrote:
>>> On 05.02.2021 08:55, Daniel RÃ¶hrborn via Cygwin wrote:
>>>>> On 04.02.2021 13:13, Daniel RÃ¶hrborn via Cygwin wrote:
>>>

>>
>> I looked into this problem and found this issue causes if iconv
>> cannot be found in the search path.
>>
>> Installing libiconv package should solve the issue, I guess.
> 
> I can confirm that installing libiconv solves the problem. So it
> was not a case of BLODA here.
> 
>>
>> It seems that the GDB package should set a dependency on libiconv.
>>
> 
> I had libiconv2 installed. Is that somehow related?


gdb always needed the shared lib in libiconv2

$ cygcheck /usr/bin/gdb.exe | grep iconv
   D:\cygwin64\bin\cygiconv-2.dll

$ cygcheck -f /usr/bin/cygiconv-2.dll
libiconv2-1.16-2

but is seems the last versions are also calling
the program that is packaged separately

$ cygcheck -f /usr/bin/iconv.exe
libiconv-1.16-2

this dependency is more difficult to catch
and it was missed when GDB was packaged

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

