From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by sourceware.org (Postfix) with ESMTPS id 867C7385803F for ; Thu, 4 Mar 2021 22:37:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 867C7385803F Received: by mail-ua1-x930.google.com with SMTP id v5so67424uac.10 for ; Thu, 04 Mar 2021 14:37:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YoDbtSPJd/amLWFV9NovmufdPSFd2291duyDFf/8aw4=; b=EWzRIk3/Enc0FCADFPh139dPWIWlDKW+XaFsewjI3od7AI4VaY5IPA3i5a9RYwJqj9 C8KrNJ+uHE7oLB8CeUea4/eFmT5HQ1YWE0/r2dxduU6JowE6X3PYaeVhcEou47zG3uM/ cdeOhdhBDwrEJ+4YJz6tPLvGj5PIXtJYxPZLArswxKUlhxDLAOYP5IYYvFTSJjHG0jw+ Sr1IThkI5GGdYh+/1ubpGBYtQh3PvFcNciWqE3BpwtVPouW6Aw1K0hH5NPkxhfXX0a3s W9HSu1Zy5cSAACapwmcHRSu9wgTKvsjn9Zk2TrUGKvnORwRhKlOI0SUVGBM/o+qyw2gZ xJ7g== X-Gm-Message-State: AOAM531D1kM2AM1UcLs7CM7sY3/1Wfe87QfOoMrS7T3/uD1E5JHe0Gnk YPo7Nwkkh/UHoaumOmD1TeLC3MVBh4xicUSLWtw= X-Google-Smtp-Source: ABdhPJzNATgZgQ+MahG3iz07C/ZPADUCNSy/oLYmVa+yXe7JpnPe18HFFb/lYDE+ppfqqgp9yOsBPry1k5q/zQ67imw= X-Received: by 2002:a9f:24c4:: with SMTP id 62mr4301549uar.84.1614897424091; Thu, 04 Mar 2021 14:37:04 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a9f:2309:0:0:0:0:0 with HTTP; Thu, 4 Mar 2021 14:37:02 -0800 (PST) In-Reply-To: References: <87wnunnq3q.fsf@oldenburg.str.redhat.com> From: Peng Yu Date: Thu, 4 Mar 2021 16:37:02 -0600 Message-ID: Subject: Re: Directory structure of glibc and header files installed on Linux To: Adhemerval Zanella Cc: Florian Weimer , Peng Yu via Libc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2021 22:37:05 -0000 Hi Adhemerval, > The usual process of installing the glibc is during either a work rebuild on > a > sysroot (like Linux From Scratch does) or within a sysroot (like > build-many-glibcs.py > does). These are too complicated at this moment. I do think that a verbal explanation of the directory structure (target Linux as an example) is more helpful. >> Do you have to build glibc before running build-many-glibcs.py? How to >> run build-many-glibcs.py? It seems that it have options. I am not sure >> what options I should use. Could you show me the complete command? > > The build-many-glibcs.py requires some tools, like a working gcc, python3, > bison, and the other usual tools required to build gcc and glibc. The > simplest > way to use is: This also could be a problem due to the dependencies. Is there a walkthrough with the exact set of commands based on a vanilla ubuntu system? For example, you mentioned sysroot. I am not familiar with it. An exact sequence of commands should be helpful as the goal here is not to learn sysroot. > (1) glibc-git$ ./scripts/build-many-glibcs.py checkout > /path/to/place/source/and/binaries > (2) glibc-git$ ./scripts/build-many-glibcs.py host-libraries > (3) glibc-git$ ./scripts/build-many-glibcs.py compilers x86_64-linux-gnu > (4) glibc-git$ ./scripts/build-many-glibcs.py glibcs x86_64-linux-gnu > > The (1) will download the required source (binutils, linux, gcc, > glibc, math libraries), (2) will > build the math libraries used in gcc built, (3) will build a bootstrap > compiler targetting > x86_64-linux-gnu, and finally (4) will build a glibc using the > bootstrap compiler built. -- Regards, Peng