From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 43C703858C78 for ; Wed, 10 Apr 2024 12:50:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43C703858C78 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 43C703858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::634 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712753435; cv=none; b=jP6nETybRIos/7A5Vyl/vQdL1J8eVgMPRDS3zYYVgpWguSnH6joU0WxyPBx3+9FvLBBLAjj0yxYNAUHfXA1HMm/aTC8AfAHnQcO3F/W6k/IUxmnZEfpHWn2sWa9//7jVFWL65qTandYEVXkKQfB3mZULSVujP1XHZcMqJF52HLE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712753435; c=relaxed/simple; bh=CQT2AjOcA2n8gveOsPFXQ1CnWR0Vxa/06Uo/HUVwCU8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=R8jEfRzfoBkRpXckXi8OPK/zuEKvAfkc0k7/xa8vZkPuV/Bv9ISZXgGPHDMOBYPhHWigYBSbViEuxR9La6Ss2rchWFpS73T1lY0zWWKTO+EzHC0EMKQrDD/WUNgOC5NKnJv4RLllt4dADltEtzSgZNAw4+xEPJGp0GkzBipw9bA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a519e1b0e2dso704088866b.2 for ; Wed, 10 Apr 2024 05:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712753432; x=1713358232; 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=rrNr3KfJDiNMKQpkjB/VRgjKo784DPg4V15Pu5fziHA=; b=iPv5Dfn0XbfqYbG5L+96gDzx38BVy2PDKV5TpIjuYFp0iWpnsH9R3BZbRZXuGpOalr MWPbPjUj6FNipmNYFdbFviXWhemGcCYJnWF63zGINBddE/bntXLEsloAWD0zfqOYJCN4 tAKNDGRXdv4hFkGCKScLykh2NpqRA93I2abTIcUIfZvh3VZN0OzLYrmCZh/5u33J/htH qNykZ6rVIddQhjnf6HxrVjtBD0fh7+nTomRcfql6jG3Aoh65eMEk/VikMWZCWMb1LP+L MSk/wYTg/d9dYjVKZDmcm/4BtTfDYAddLo9WriuxTnSPEajs0mTYZrKO88DlGmv1zQKe l8pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712753432; x=1713358232; 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=rrNr3KfJDiNMKQpkjB/VRgjKo784DPg4V15Pu5fziHA=; b=HV7mXSDSqDMDC4+vBt1152ZW0eotNCFyIFTKkwca64727VsUzCpDehgOl8xvjpb6yx J+EE96c9wPZevbgoaZB4G7X5rEVePpuwgjsPwMcYyPTe6iUK9QgFbAtVNFXdEdXcLRbJ 8iqylRvaq5dxS4HD+BB/2JoFD2MFMxEQghWGWeG6XKS6pvsLJWvq5C34jaLPQDd06WlJ fj9vYkM6+8rR9NDoOW08zxtZGTogtSIC2klt3pF2VxmS1vBPnROFySXu4BZPd29Bz7gr 9cBMOZ/MjzWoRp2dGpNF+cEh6ZtVu0x/pcKvcBljfkLgkmstFew+x8D8FE67yFNXrrr/ UNOA== X-Gm-Message-State: AOJu0Ywth3S/ymtpJAQoJJXNtM+68/svP+LcqCiZO4GD/gDQV4uPur8B AKfzAfWjeYKWPGwJHe2UAFn8+5IXMwFOXtnY+zH5RCviZuF3ZDOy X-Google-Smtp-Source: AGHT+IHVBdiHOTkFLf9DVItjukrVULHyN8mVXJdDeob9Vs6l1f7wGE2JcK8015TVHqcDLEh30HmjDg== X-Received: by 2002:a17:906:29cc:b0:a4e:7a36:4c38 with SMTP id y12-20020a17090629cc00b00a4e7a364c38mr2032193eje.20.1712753431424; Wed, 10 Apr 2024 05:50:31 -0700 (PDT) Received: from [0.0.0.0] ([94.177.207.80]) by smtp.googlemail.com with ESMTPSA id dr19-20020a170907721300b00a4a33cfe593sm6893038ejc.39.2024.04.10.05.50.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 05:50:31 -0700 (PDT) Message-ID: <290c8346-5c9f-4d2e-80b8-80bdabfe833f@gmail.com> Date: Wed, 10 Apr 2024 15:50:28 +0300 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> <98b5b573-67b8-4110-8759-ca67fab6f85b@gmail.com> <874jc92znl.fsf@oldenburg.str.redhat.com> Content-Language: en-US From: =?UTF-8?B?0JPQvtGA0LHQtdGI0LrQviDQkdC+0LPQtNCw0L0=?= In-Reply-To: <874jc92znl.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.0 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 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 10/04/2024 15:03, Florian Weimer wrote: > * Горбешко Богдан: > >> 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. > You don't have to build on the target system directly, you just need to > use a container/chroot environment that matches the target distribution > version. These containers tend to be fairly lightweight, requiring less > space and resources than a full glibc build. An unpacked binary Glibc package takes just 12 MB. A minimal Debian image is orders of magnitude larger. And the primary problem with Docker is that continuous rebuilds occupy the disk space rapidly fast, as it normally preserves old builds, which is not a case with builds on a host system. This has to be fought in non-trivial ways, like thorough caching. And cleaning needs to be precise and accurate, otherwise it would involve a full recompilation, which is much longer than partial recompilation. I attempted to go with a balanced approach, by building only the C++ library part in Docker, exporting it and linking the Golang part against it and old Glibc/libssl, but forfeited even with that, as symbols requiring a new Glibc still somehow leak into the build. So I still have to suffer with Docker BuildKit now. > > Thanks, > Florian >