From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 576313835839 for ; Fri, 22 Jul 2022 03:05:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 576313835839 Received: by mail-pg1-x52d.google.com with SMTP id 23so3321936pgc.8 for ; Thu, 21 Jul 2022 20:05:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=A343OIfF+O3gaegO6iBs39KPQMQ3l0xY0wRV9Dwpvlk=; b=V1DjC3fzQlfGqsfNgJttvwglc+2q6nahaUfoVL62f5qXFYe2wd5Qw4HFyisEv50WnN HBhnS7YxNLoukaHCctPsXU6Cm8dPe2o7ZpkcmqRj43r1+tmcW8QKdZIFKpDq52l5htYb X/7FhyQ9NipP33kp8c+e7G5Um1RuBYHNxb+bgeboPAXQQWH/x9+FZyICyGsEVw1p2302 bOyefRFnYUU7PKMxyvwS8rVSGTT5XuKHyrV6uYW7td5gAX9A9rP/AF3LD+kPpCX3db7j JCQwjPz4+LarzHqxs0wbQ4Z0lEmJnODa7mp28NE34yMzqQKTDq4LgyR50FwZ8JuwSZD9 /iUA== X-Gm-Message-State: AJIora+tibMpp6UtJy/62SGeI/4Dox2v1TCRPw6o14tI/4U22h+fjf2B kxZnnKBzUcAjY7TlNMSqemQW6sEBN0Q= X-Google-Smtp-Source: AGRyM1uKO8i8lbF4M5pnc7b3lompyU1xJUVG8tdqGTnqXQAJWdCGG/fzCW1HMOBGa+G3u96yJo//tw== X-Received: by 2002:a63:6d5:0:b0:412:ac9d:814e with SMTP id 204-20020a6306d5000000b00412ac9d814emr1346322pgg.90.1658459110334; Thu, 21 Jul 2022 20:05:10 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:228b:3e46:62b1:44c4]) by smtp.gmail.com with ESMTPSA id a24-20020a1709027d9800b0016c3affe60esm2485903plm.46.2022.07.21.20.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 20:05:09 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 04EF51141B67; Fri, 22 Jul 2022 12:35:07 +0930 (ACST) Date: Fri, 22 Jul 2022 12:35:07 +0930 From: Alan Modra To: Sim Tov Cc: Jan Beulich , binutils@sourceware.org Subject: Re: Cross-compilation related bug Message-ID: References: <7a39bd41-ac93-85ac-e046-965417f28e7e@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3028.6 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2022 03:05:13 -0000 On Thu, Jul 21, 2022 at 09:40:35PM +0300, Sim Tov via Binutils wrote: > If you don't have a Windows machine to install MSYS2: > > https://www.msys2.org/ > > We would be more than happy to follow your instructions in a live > session (e.g. via IRC, etc) and provide you > with the outputs, logs, screenshots and screen sharing... I'm sorry, the reality is that trying to debug remotely is extremely time consuming and frustrating for everyone involved. > > But maybe one, who is familiar with the internals of binutils, can > > guess what is wrong, being provided with the file names and lines: > > > > binutils-gdb/bfd/cofflink.c:2279 > > binutils-gdb/bfd/coff-x86_64.c:696 All that says to me is "something went wrong", likely long before the assertions triggered. If you expect someone to look at your bug, you need to package up a set of object files so that someone can reproduce the problem by running the linker on an entirely different machine. Note that the inputs to the linker are needed, not source files. We don't want to and can't debug your compiler for you.. That means *all* the inputs to ld, so system libraries too. Please do test that what you package up is a complete testcase, by running a cross-linker on a non-windows machine. -- Alan Modra Australia Development Lab, IBM