From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 1A7523858D3C for ; Wed, 22 Feb 2023 00:25:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A7523858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4PLxkL4M42z1r1gC; Wed, 22 Feb 2023 01:24:58 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4PLxkL3sK8z1qqlR; Wed, 22 Feb 2023 01:24:58 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id gGA9bY-UKDYO; Wed, 22 Feb 2023 01:24:57 +0100 (CET) X-Auth-Info: /6go9BmK8ixHulT9y9O/fy4DJGQ/BwZMYqAisSiq8FZkZEgyJTPkShejPq7z0qJN Received: from igel.home (aftr-82-135-86-224.dynamic.mnet-online.de [82.135.86.224]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 22 Feb 2023 01:24:57 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 703242C14C4; Wed, 22 Feb 2023 01:24:57 +0100 (CET) From: Andreas Schwab To: Alan Modra via Binutils Cc: Paul Naidoo , Alan Modra Subject: Re: `strip: X.so could not create temporary file to hold stripped copy: cause of error unknown` References: X-Yow: A GRAM?? A BRAM... A GROOM... A BROOM... Oh, Yeh!! Wash the ROOM!! Date: Wed, 22 Feb 2023 01:24:57 +0100 In-Reply-To: (Alan Modra via Binutils's message of "Wed, 22 Feb 2023 10:32:11 +1030") Message-ID: <87y1oq4kdi.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Feb 22 2023, Alan Modra via Binutils wrote: > On Tue, Feb 21, 2023 at 08:43:56PM +0000, Paul Naidoo wrote: >> |strip --remove-section=.note.ABI-tag >> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5| >> >> However executing the command returns the error: |strip: >> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: could not create temporary file >> to hold stripped copy: cause of error unknown| > > You don't have write access in /usr/lib/x86_64-linux-gnu/. I think this will improve the error message: diff --git a/binutils/objcopy.c b/binutils/objcopy.c index cf830442b3c..98c567bd955 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -4884,6 +4884,7 @@ strip_main (int argc, char *argv[]) if (tmpname == NULL) { + bfd_set_error (bfd_error_system_call); bfd_nonfatal_message (argv[i], NULL, NULL, _("could not create temporary file to hold stripped copy")); status = 1; -- 2.39.1 -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."