From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 93D78385E445 for ; Fri, 15 Mar 2024 19:22:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 93D78385E445 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 93D78385E445 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710530560; cv=none; b=CRGP7BUME+s2lSCLiQVL0gzFcW/+j7vZpGzqxobK4q1BprPQoDlTdNFnPX0xRH9MxZam8lMIT3AYFDJ/s5kYo6ZWvi0rVDpS7QhhpCU62e7MLkW61M+myc9tLyagLzaEdYqLbLYqpbNYxiqUjvec81ksA8FKSZbbwoM7q38xsIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710530560; c=relaxed/simple; bh=USJnOgfOtb9kQFQTUYK6vWE9/cYhTJkvbk5R5ikdd5Y=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=altmThahybg23MlM1ODC+HaQzTaFb046VEx8ci81w2Zfr7Gg+DLfgDL5JBDCzFetw1ibVT+kSkaXRf2e1dhQZGsRKBQ70s+wQ1+MOLUKifumKc7xEMMd2cJUPmuLR2g+OrEBaKXagaJCMpkVUccfL8vV0+b7ZgGtaaoprnyEubk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a450bedffdfso290657666b.3 for ; Fri, 15 Mar 2024 12:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710530557; x=1711135357; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4xD/hk2lSWfaWqKsxuMy2M+xl84+vBx0LNPUitILSZA=; b=XDpJbBeC7Hx7Xm5VSJQE3uj/NSjiCNvLfLkZ7IqWojhu9m5m+y2y5AHYjlhQBwrniz 2Zo2ffL2g3JCV2Vl0/6ZkWQugxdJbBs7mhUaQh08yPT/556O1HXbJ79OqEAZ17ujYDKJ JIAQ22Q0S9Tdbi4L7Odh2hD0445PtaLxIz8KiGX2tXWKUmO2PZfmhoR2NFD4eSwNmCVm SCTQYnXbG3VoNtzSWZSE0q4dtxfgeMjw1mtQRs2vhTwYe1PGzAoVwv73Fja0bbmAFQa2 GUexyXEt/9iC0ujKDZ1YbhitddHD1kLOtkQhPltVHT5V2ArK2dgeKDTkPw4Q7tVV7F/2 JzlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710530557; x=1711135357; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4xD/hk2lSWfaWqKsxuMy2M+xl84+vBx0LNPUitILSZA=; b=PtUmcn1E43FojdQj/OgUhnVVMQI+BfOq7EYtih4m9neShqkgeT+4YvSA2D9JAe3cgn jh86zkYXPmPr9gfLe6hWlhzv5lCd7DAZbXyUn3RFDLrfUDZQCKqWF4TRMvZxNidNXK6o 5kMPtLAFZryDJpHhuhWo29Ru5yal36GKSqgkX9bQb+vm1asmccDaCG4sF2venMOpEmue LWj6GSpYCdCV5SKXZhzzR2k0YF5E9JEUc5IvM68EEdnU5F5uyo/0shjMMeJLR+wyplB3 NVReEhAj1vD/PalDjUehsGwJyhiL/i6bmSFd6bIx1ZofWttNlG8vvSnhffHeuO2qk5Rh 81CA== X-Gm-Message-State: AOJu0YzWFBy25XIMVXSja7gu/6lDrxRLv9x5AWGgvV85HUek424/r3ms ShUtqe674PIJO/fDqGkp8nfEVZzK82CDH4xruebZFHcQLZMHM9Qh X-Google-Smtp-Source: AGHT+IGEnCiiHiIi1nv208Q1Z2XIRUL13tpntLU9l0lhpK/e0mYNH7GfwcelmLC4OB3iTzB0EYrYag== X-Received: by 2002:a17:907:c706:b0:a45:ed7f:2667 with SMTP id ty6-20020a170907c70600b00a45ed7f2667mr4857775ejc.17.1710530556638; Fri, 15 Mar 2024 12:22:36 -0700 (PDT) Received: from [0.0.0.0] ([94.177.207.80]) by smtp.googlemail.com with ESMTPSA id s5-20020a1709062ec500b00a4452ed413asm1991917eji.16.2024.03.15.12.22.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Mar 2024 12:22:36 -0700 (PDT) Message-ID: <98b5b573-67b8-4110-8759-ca67fab6f85b@gmail.com> Date: Fri, 15 Mar 2024 21:22:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: libstdc++ link errors in support/links-dso-program To: Florian Weimer Cc: =?UTF-8?B?0JPQvtGA0LHQtdGI0LrQviDQkdC+0LPQtNCw0L0gdmlhIExpYmMtaGVscA==?= References: <87msr0hs3n.fsf@oldenburg.str.redhat.com> <8734srh194.fsf@oldenburg.str.redhat.com> Content-Language: en-US From: =?UTF-8?B?0JPQvtGA0LHQtdGI0LrQviDQkdC+0LPQtNCw0L0=?= In-Reply-To: <8734srh194.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 15/03/2024 19:07, Florian Weimer wrote: > * Горбешко Богдан: > >> I'm not going to install it system-wide, just to build it for >> cross-compiling a Golang project for a Debian Buster system, by >> specifying -rpath and --dynamic-linker. > Is this because you need a newer GCC? Not really, GCC 12 is just the default on Bullseye, GCC 10 seems to be available there too. So I should attempt to build and link with GCC 10? > If not, it's easier to use > pbuilder (or one of its variants) to build the program in a chroot with > Debian buster. Many people nowadays use podman or docker with a Debian > image for the same purpose. The pbuilder approach is perhaps preferable > if you already build a .deb archive, and podman can be scripted more > easily to build something that isn't. I don't really build .deb packages, Golang compiler produces one static binary, so that would be redundant. We already have a solution to build this in Docker, though the target test VPS is tight on resources and I wouldn't really like to mess with Docker there. My scenario is developing the project on one VPS, building it there and sending test builds (just copying one binary file, pretty easy) to another VPS where they are run. Previously they had the same Debian version, so this was a non-issue; recently I upgraded the first one to Bullseye, but the target VPS has some legacy and 3rd party software running, so an upgrade would be complicated and I postponed it for now. I could actually run the builds on the development VPS as well, migrate project data there and bind a remote port via SSH, but this would make it more prone to network interruptions. > > Thanks, > Florian >