X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2F6C385783A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1636227273; bh=LDdKxn6tYkcqxWwOH4PmVRKuTK904MZL254Ll2ZcP2Y=; 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=CB9iU/QXYVMCrs4U/0Sgw3MjX6N+qkjGroQ4XU05dgze3qzLGpz8SK6R2xKDhRfPT 4h9sD3/3qyrkIQfxtTT63VIhtz9Fhmn35sH3LYb8+CJLG9Ik4Kg7EXHYTSaF5lS2gg MC+8r7dUzExPK4Jd4Fa4XAX8YqZwNR1EzDyQYCDc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E2E2F3857C72 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-language; bh=3N50LvR5R/gClfkHFmQuh0E5feEqsUeaU9gUY7ihV3s=; b=8K3aQjdnz75kLzvRmvU0JmBdE/uQygy4i5xdLnrPBPReGo97SaMvShSzxdD5sFzHg5 h80WNpzap86TqXptVg4d/hdEc+7AAXKs5d1XBll0koddc8UiOhqkobDNzpk54LGVgpYd dG1hom9TdwmsR6A1A3YWsMvClkvja8J5QdzL1rCC1ScCMO20kO4JTVhWt2f6W/fHEPfY 9wMFdws2EE29z+vJ0KHvBwe3ITTMk15PVlUu97iZ6ShFqSF1vJYDorsyaa/ANli9x5aZ 0au+JTS8TGakslRLZZ7Y0Genw9AhOiGuwW4QT3/iciMmHx9/pqYNzo4U+GgwPHNdQ7Rg wslg== X-Gm-Message-State: AOAM531QACdz7cbWQEyIfR7aDn5g41TzCeZDssSX6qKS+z5/5r9nAKkB R+Wj6EUODVxGa5hbVMAGrix5hfpTxjg= X-Google-Smtp-Source: ABdhPJxz33JhIqt+gkvYDqRdvdNuXYA1b646Xi8DS4hfZDLQ/npEyx5AmyDef3nFpBZz8ubInMGtxQ== X-Received: by 2002:a17:907:7ea4:: with SMTP id qb36mr12851432ejc.146.1636227230185; Sat, 06 Nov 2021 12:33:50 -0700 (PDT) Subject: Re: cygport - avoid stripping binaries To: cygwin AT cygwin DOT com References: Message-ID: <9674a878-a59c-6ea0-9d09-ff45d3f5c579@gmail.com> Date: Sat, 6 Nov 2021 20:29:22 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------642E29910918B17771C0C4DF" Content-Language: en-US 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, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Federico Kircheis via Cygwin Reply-To: Federico Kircheis Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" This is a multi-part message in MIME format. --------------642E29910918B17771C0C4DF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 06/11/2021 18.30, Corinna Vinschen via Cygwin wrote: > On Nov 6 15:31, Federico Kircheis via Cygwin wrote: >> it seems that cygport always strip binaries, but I have one program that >> when stripped does not work correctly. > > Out of curiosity, what program is that? And why does it require the > symbols to be present in the executable? > > > Corinna > Hi Corinna, it's pari-gp the program I'm having trouble packaging. If I compile it manually, without cygport, then I'm able to execute it. If I use cygport, then the program misbehaves. I've noticed that cygport strips the binaries, so I thought that could be the issue. Also setting RESTRICT="strip" and STRIP=/usr/bin/true seems to strip some information compared to the manually built binary. Best Federico PS: Why does cygport strip binaries by default? Doesn't it generally makes harder to debug issues? If stripping removes unused data I would actually expect the compiler to not generate it, and if the data is used.... Is it a common practice for GNU/Linux distribution to strip binaries when creating packages? --------------642E29910918B17771C0C4DF Content-Type: text/plain; charset=UTF-8; name="pari.cygport" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pari.cygport" IyBwYXJpLmN5Z3BvcnQKTkFNRT0icGFyaSIKVkVSU0lPTj0yLjEzLjMKUkVMRUFTRT0xClNV TU1BUlk9ImFkZCBzdW1tYXJ5IgpERVNDUklQVElPTj0iYWRkIGRlc2NyaXB0aW9uIgpDQVRF R09SWT0iTWFpbCIgI0ZJWE1FLCBmaW5kIGNhdGVnb3J5CgpIT01FUEFHRT0iaHR0cHM6Ly9w YXJpLm1hdGgudS1ib3JkZWF1eC5mciIKU1JDX1VSST0iaHR0cHM6Ly9wYXJpLm1hdGgudS1i b3JkZWF1eC5mci9wdWIvcGFyaS91bml4L3BhcmktJHtWRVJTSU9OfS50YXIuZ3oiClNSQ19E SVI9InBhcmktJHtWRVJTSU9OfSIKCgoKIyBmb3IgZG9jdW1lbnRhdGlvbiBuZWVkcyBsYXRl eCAocGRmbGF0ZXggZm9yIGNyZWF0aW5nIHBkZikKQlVJTERfUkVRVUlSRVM9ImxpYm5jdXJz ZXMtZGV2ZWwgbGlicmVhZGxpbmUtZGV2ZWwgbGliZ21wLWRldmVsIgpSRVFVSVJFUz0ibGli cmVhZGxpbmUgbGliZ21wMTAiCgpQS0dfTkFNRVM9InBhcmkiCgpzcmNfY29tcGlsZSgpIHsK CWxuZGlycwoJY2QgJHtCfQoJc2ggLi9Db25maWd1cmUgXAoJICAtLXByZWZpeD0vdXNyCglj eWdtYWtlIGdwCn0KCnNyY19pbnN0YWxsKCkgewoJY2QgJHtCfQoJY3lnaW5zdGFsbAp9Cgpz cmNfdGVzdCgpIHsKCWN5Z21ha2UgYmVuY2gKfQo= --------------642E29910918B17771C0C4DF Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --------------642E29910918B17771C0C4DF--