From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by sourceware.org (Postfix) with ESMTPS id EFDE03844008 for ; Mon, 19 Oct 2020 19:33:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EFDE03844008 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joel.sherrill@gmail.com Received: by mail-ej1-f50.google.com with SMTP id a3so654127ejy.11 for ; Mon, 19 Oct 2020 12:33:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=eCZGKCxYLaSKiV1+uoZMIO6JNbGthZ8eL/53yuGMl+I=; b=Lu6TE90EDP3fRet1L3GSv0HnrHy26i2bOUGdL/NIKzZFKcTV+zjmxFc166ISveBl+G B3yxM47nNVGTYi7JOzrtcKR8OWxv1IsU0sascQZSIEmCSOZlBqMD3gjnmKwkr6EYvPRX pfcNDWFEjupnKsyGeoTwFJixiIbQm1fFkfbHBd6tgKgMKqrtAzY42/0GmTWExRtbLZye 4dr0Hr5SkdFvxIGhQYrfzidgEDLsunzEYyMe0S6K6gZqzWaGEmt7OqmDmP0bK7jn+GPE yv1c8HYViGtopFXH+RmNaVlCq5iNy4+TERGHuSxFBAlzbeNKP+x8gdUIlg+OgBkiDvwz E9LQ== X-Gm-Message-State: AOAM533NEn0Mdd+mWtasfGjdd3OnOMDnGloW1Nz66RdjB/5LeSv2LvpL Qcf17ETJvpI0GmQDwLC0PD0KTx369YE= X-Google-Smtp-Source: ABdhPJy8dFsIE/9VRAAChlBBqRtI7RM3H3I0U0pEtOLR5kmLhRiSTqILO8AcGqY8HAqvL6b5wmNveA== X-Received: by 2002:a17:906:cc53:: with SMTP id mm19mr1434047ejb.514.1603136037789; Mon, 19 Oct 2020 12:33:57 -0700 (PDT) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com. [209.85.218.50]) by smtp.gmail.com with ESMTPSA id f20sm1181061ejc.90.2020.10.19.12.33.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Oct 2020 12:33:57 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id e22so723719ejr.4 for ; Mon, 19 Oct 2020 12:33:57 -0700 (PDT) X-Received: by 2002:a17:906:52d1:: with SMTP id w17mr1502370ejn.164.1603136037466; Mon, 19 Oct 2020 12:33:57 -0700 (PDT) MIME-Version: 1.0 References: <339649978.1780844.1603129592020@mail.yahoo.com> In-Reply-To: <339649978.1780844.1603129592020@mail.yahoo.com> Reply-To: joel@rtems.org From: Joel Sherrill Date: Mon, 19 Oct 2020 14:33:45 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Build Failure on Cygwin To: Hannes Domani Cc: "gdb@sourceware.org" X-Spam-Status: No, score=-3032.2 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 19:34:00 -0000 On Mon, Oct 19, 2020 at 12:46 PM Hannes Domani wrote: > Am Montag, 19. Oktober 2020, 19:26:28 MESZ hat Joel Sherrill < > joel@rtems.org> Folgendes geschrieben: > > > Hi > > > > I am getting a build failure on Cygwin > > > > > /home/jrs007/rtems-cron-6/rtems-source-builder/rtems/build/aarch64-rtems6-gdb-8a6e98c-x86_64-pc-cygwin-1/build/gdb/../../sourceware-mirror-binutils-gdb-8a6e98c/gdb/cp-support.c:1619:(.text+0x5502): > > relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS > > init function for thread_local_segv_handler' > > > /home/jrs007/rtems-cron-6/rtems-source-builder/rtems/build/aarch64-rtems6-gdb-8a6e98c-x86_64-pc-cygwin-1/build/gdb/../../sourceware-mirror-binutils-gdb-8a6e98c/gdb/cp-support.c:1619:(.text+0x551b): > > relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS > > init function for thread_local_segv_handler' > > collect2: error: ld returned 1 exit status > > > > This is a build targeting RTEMS based on a tarball fetched from > > git:(sourceware-mirror-binutils-gdb-8a6e98c). It should correspond to > this > > recent commit: > > > > ommit 8a6e98c4a3049d7fb8ffc24b231e8cf3577fd90a > > Author: GDB Administrator > > Date: Mon Oct 12 00:00:07 2020 +0000 > > > > Automatic date update in version.in > > > > Any suggestions on how to fix this? > > Isn't that the same problem you already started a thread about in march?: > https://sourceware.org/pipermail/gdb/2020-March/048436.html > > And it ended with you planning to file a gdb bug. > Yes and I have completely forgotten about that. I sent that about a week after I started working from home. Apparently I forgot to file this. I will file it. Hopefully that will prod someone to fix it. And to this from Christian. > I've seen this error on various toolchains. I believe it to be a gcc > bug; however, since it still seems to be an issue on some platforms, > maybe gdb should avoid using global (nonstatic) threadlocal > variables... (and instead abstract access to this variable through > getters/setters) I emailed Corrina from Cygwin and she thought it was a gdb issue and not a Cygwin issue. I didn't know which project was best to file this on. I'm not sure of the solution and based on the results from a Google search people just hack around it. It does need a proper solution. --joel > > > Hannes >