DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 56DDYq0Q3260524 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 56DDYq0Q3260524 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=pg5sJ2zg X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92AC83858C51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1752413690; bh=Dg4sYZ1/yymLsYYwkZX1/sEph2ojVZyvA4J4lPmKRb8=; h=Subject:In-Reply-To:Date:Cc:References:To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=pg5sJ2zgaMBHwOA5cZrHvMqRZ0GUfDLo/dBR6rqIBOYBcYo2A/pYYv7KgWTbjc7ny gaIpq5pMGM0A6svKhNVFFf6QJO/pYBgGblhOxu2Jr1fhSmEIPIpBbUBATTBAlauF6f PiZuLXqxWuiIpT50I7UkMl1yDyURbBDcaeD4W4iA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 00F473858C42 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 00F473858C42 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1752413645; cv=none; b=spoZPbteUTTjrxSI5zsOAlwFffTVTo/ioum/huK8yQgQtQt5qG/Rndcu0L4i6C57Ie25Mzm/3qKF0w4uVBlGvc8Juc66ojKDbnyWx27s0z2UcbuOIitnTGGF19w5MQ3GBsSBuwcI9BAPdZOKLN7INf+d4bf2PqfMeoyWbhgDr+g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1752413645; c=relaxed/simple; bh=3IMkVHP64Gxib4QjppSgDL+c4Oq8/TTXqf4Hk1s740I=; h=DKIM-Signature:Mime-Version:Subject:From:Date:Message-Id:To; b=S1M75l5LQ6c9I9UN0sgUIfvj+VbTRMjzMaH/5q1nfm9VzZ+pmK87FUVdrKzGcsHGxiDy39jQ+GmYni765SCnz8G6LpNqqJfALsbZ4GqZB0vOKaQ85B9PhVWH7AFTG8R1XK7ZmwaO0psKv7niO845KyWo5VsN/nb6yWvhs+BfDA0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 00F473858C42 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752413643; x=1753018443; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RmITHW3z88/yPh7IdAiIVr+gaJ0cnRsv6VIsQejAkkM=; b=Fs9VxkYMhfw/tLbXDtbxUQZNPoDx2bbn+YO9L1CKHr7RakWsDm6dpgg2HmfRWO6OZW R2ixq7C0IiejW5BKm6hjMB/FcOIsYZ1/lke4/TlV/HrwwQswJS8sQOGLP2kfqU0AknjL 9z4i3uO7xtdltg0UPmzdyziFuMNe9nwKJcYYN+Fad4LxuajrmZJ+JOmziRe8dX+dLwWn PmQftJS7Mcw9mIADzY2ogJ2szq70bmEmOcN8oWAPyqNal1ZZIwjo9vc+jCUHFWFnLQ9r Kqseo1saRQ6RT1JWVvgzS9RY0pcK/hAbAhgrwrd929LgAH+5WVib6Dw21Z2GohCIpu/M IiLA== X-Gm-Message-State: AOJu0YxC8YAzNndwNw5zig2dqVK7nHgh7+Fr4zMsqHOsvm6Pf4N+7CCA M/UOygeWCj/aF+FT0Nk+fxfZO2RU5ALw4Yo1trEa8xOKaVRHZrU01dG3B5vAPbfUFC0= X-Gm-Gg: ASbGncvmVod8VAkiwTKmQhYjdkSOTu4Q6M8naZT3laFxtjQ3HWKkkOdor0IxUcBqJyO uTPQfT44qCOA4R9/hAgSPrLmBnSglsZ3C9+gibfCj+b4x465KhGVb8S78pnbHtZ+zHMWVhHeyfJ 1+4XUTxq3QFjA2MpdRh+xWMXMP/E/ikmvVp0BM1VFe1uVTJSPN/kzJ4PLtOEBRmbj7h2UNjuJWU mrJeGeRvNF6+ex9OcKpx0uuiKp2UbHnqhMqIxJy+HaX8vg4XI741OJyV3c9mr5oFfcUnCQka4id pWFXOe/88ILv/L8chjqhvD+BnOL4Cs/yZj25sZSTMYBO4jUhIbt0xz8GrUoej8m4kVJPZ+EAb+O 8AKfxbxgHVwlCbMWa6An+ox7OFX6tD9G5IYS/sD5vL6rBYJwPFkbUfg9RB2t3N4bMUava/tQ= X-Google-Smtp-Source: AGHT+IECY4jUajoY//VXwaT9VKtZm6TvzCfj6gU9KRI+WogvC8QI/S0eJtcaD7vTCJOd7y6YLKUuBA== X-Received: by 2002:a17:907:7b8c:b0:ae3:60fb:1b3b with SMTP id a640c23a62f3a-ae6fcb65a5cmr1023863866b.58.1752413643300; Sun, 13 Jul 2025 06:34:03 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: Any help with a gcc command line? In-Reply-To: Date: Sun, 13 Jul 2025 15:34:01 +0200 Cc: "cygwin AT cygwin DOT com" Message-Id: References: To: Fergus Daly X-Mailer: Apple Mail (2.3826.600.51.1.1) X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Dimitry Andric via Cygwin Reply-To: Dimitry Andric Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 13 Jul 2025, at 10:10, Fergus Daly via Cygwin wrote: > > Sorry - this is very person- rather than Cygwin-specific, but any insight would be greatly appreciated. > In Cygwin and for many years I have compiled an executable myx.exe from source and then re-compiled it > as the need arises when revised or new {source}/*.c occur. > After creating the archive myx0.a the key gcc command line is > $ gcc -w -static -o myx -O3 ./myx0.a -lreadline -lncurses -lm > This worked flawlessly up to and including readline-8.1.2 but failed with 8.2.2 and this week's latest update to 8.3.1. What's the exact error message you are getting? > To get the compilation to work it is (thank Goodness) not necessary to revert entirely to 8.1.2. I simply > temporarily utilise the single previous file /lib/libreadline.a and then recover the current version. So the key > command now reads (3 lines not 1) > $ cp -v /lib/libreadline.8.1.2.a /lib/libreadline.a # grab the old working file > $ gcc -w -static -o sc -O3 ./clib.a -lreadline -lncurses -lm # i.e. UNCHANGED > $ cp -v /lib/libreadline.8.3.1.a /lib/libreadline.a # recover the current file > But I don't much like messing about within /lib/ and would like to avoid this intrusion if I can. Instead of doing this, it might be handier to figure out what the root cause of the failure is. In this particular case, I think the newer version of libreadline requires some additional libraries to be passed on the link command line, at least for static linking. -Dimitry -- 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