From patchwork Thu Dec 23 16:44:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 49213 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 74B62385800D for ; Thu, 23 Dec 2021 16:44:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74B62385800D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1640277894; bh=4XJdAf8KH80BCNMCzBh4g+72JRj48WODB09r/mHHpZU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wmGd5nAFpbyNvsitB4g6DkWLFuABOHqOE22svE76Pg+1bGt7pOo0IcVnl9XbDuAjS 3gLVTwKL2i88esr7+MYJJ2fX1o8hCJ8nFrdY5eQF8jGD2dSBRsfwNhWr2yhZbK2ij3 /Z3W5qV4FnV+Cm3nXKhwY9vidxZcGDakjCAirxX4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id 370B93858418 for ; Thu, 23 Dec 2021 16:44:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 370B93858418 Received: by mail-pg1-x532.google.com with SMTP id 200so5423855pgg.3 for ; Thu, 23 Dec 2021 08:44:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=4XJdAf8KH80BCNMCzBh4g+72JRj48WODB09r/mHHpZU=; b=LyXeJjrjpupynAcu/12DlVAPwpRe/dDikIw25n9kqsB9WnT4BifkMWVNVGhHnseEWq rRCsuMJsb9w95AAxHHQlEdw0zy18997NaxBulYLpWPfqroIEzKclrOuojcqlQxh+UMQ0 ILOHYNStXfV3RllHJ2ig1av4C59idwvXBqPsxCtvsGX4ryzgYxV0T0obfRUEUCg4hGZm nWN153K6TgT3/mSaGS9Xfdv/WnXGt1QAwCkaerX4q9GbIdEloYfLTkmJHj4sVtCtvfmx gFglcagtbfU7vSd6IXZmCyBwYY0xM7h0IAk1mLnMQkIII7PqAxO3pd9TmAj2JEscQuUt As3g== X-Gm-Message-State: AOAM532ToXybaC4my5cUV88cuVOrET2ZhYU3ArVebVW19R7RbrEwzUCP ManlP1M7ZAvy9dzGebvoiD8dOQsKxwo= X-Google-Smtp-Source: ABdhPJx++w6piPZ+Rg9v0j2+PcO1H6ICDxoGwKchAZHDl8Vv0xfPIBifSTKDr3gHV+qCkCkYm89WPg== X-Received: by 2002:a63:6cc8:: with SMTP id h191mr2812940pgc.76.1640277872136; Thu, 23 Dec 2021 08:44:32 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.35.133]) by smtp.gmail.com with ESMTPSA id bk17sm9369865pjb.3.2021.12.23.08.44.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 08:44:31 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id B391DC0302 for ; Thu, 23 Dec 2021 08:44:30 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH] build-many-glibcs.py: Add ISL (0.24) support Date: Thu, 23 Dec 2021 08:44:30 -0800 Message-Id: <20211223164430.866399-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3029.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "H.J. Lu via Libc-alpha" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" --- scripts/build-many-glibcs.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index b83bc159fd..2b46044bae 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -535,20 +535,20 @@ class Context(object): self.clear_last_build_state(action) build_time = datetime.datetime.utcnow() if action == 'host-libraries': - build_components = ('gmp', 'mpfr', 'mpc') + build_components = ('gmp', 'mpfr', 'mpc', 'isl') old_components = () old_versions = {} self.build_host_libraries() elif action == 'compilers': build_components = ('binutils', 'gcc', 'glibc', 'linux', 'mig', 'gnumach', 'hurd') - old_components = ('gmp', 'mpfr', 'mpc') + old_components = ('gmp', 'mpfr', 'mpc', 'isl') old_versions = self.build_state['host-libraries']['build-versions'] self.build_compilers(configs) else: build_components = ('glibc',) - old_components = ('gmp', 'mpfr', 'mpc', 'binutils', 'gcc', 'linux', - 'mig', 'gnumach', 'hurd') + old_components = ('gmp', 'mpfr', 'mpc', 'isl', 'binutils', + 'gcc', 'linux', 'mig', 'gnumach', 'hurd') old_versions = self.build_state['compilers']['build-versions'] if action == 'update-syscalls': self.update_syscalls(configs) @@ -697,6 +697,8 @@ class Context(object): self.remove_recreate_dirs(installdir, builddir, logsdir) cmdlist = CommandList('host-libraries', self.keep) self.build_host_library(cmdlist, 'gmp') + self.build_host_library(cmdlist, 'isl', + ['--with-gmp=%s' % installdir]) self.build_host_library(cmdlist, 'mpfr', ['--with-gmp=%s' % installdir]) self.build_host_library(cmdlist, 'mpc', @@ -788,6 +790,7 @@ class Context(object): 'linux': '5.15', 'mpc': '1.2.1', 'mpfr': '4.1.0', + 'isl': '0.24', 'mig': 'vcs-mainline', 'gnumach': 'vcs-mainline', 'hurd': 'vcs-mainline'} @@ -970,6 +973,7 @@ class Context(object): 'linux': 'https://www.kernel.org/pub/linux/kernel/v%(major)s.x/linux-%(version)s.tar.xz', 'mpc': 'https://ftp.gnu.org/gnu/mpc/mpc-%(version)s.tar.gz', 'mpfr': 'https://ftp.gnu.org/gnu/mpfr/mpfr-%(version)s.tar.xz', + 'isl': 'https://libisl.sourceforge.io/isl-%(version)s.tar.xz', 'mig': 'https://ftp.gnu.org/gnu/mig/mig-%(version)s.tar.bz2', 'gnumach': 'https://ftp.gnu.org/gnu/gnumach/gnumach-%(version)s.tar.bz2', 'hurd': 'https://ftp.gnu.org/gnu/hurd/hurd-%(version)s.tar.bz2'} @@ -1092,7 +1096,7 @@ class Context(object): for a in actions: self.clear_last_build_state(a) self.exec_self() - check_components = {'host-libraries': ('gmp', 'mpfr', 'mpc'), + check_components = {'host-libraries': ('gmp', 'mpfr', 'mpc', 'isl'), 'compilers': ('binutils', 'gcc', 'glibc', 'linux', 'mig', 'gnumach', 'hurd'), 'glibcs': ('glibc',)} @@ -1455,7 +1459,8 @@ class Config(object): host_libs = self.ctx.host_libraries_installdir cfg_opts += ['--with-gmp=%s' % host_libs, '--with-mpfr=%s' % host_libs, - '--with-mpc=%s' % host_libs] + '--with-mpc=%s' % host_libs, + '--with-isl=%s' % host_libs] if bootstrap: tool_build = 'gcc-first' # Building a static-only, C-only compiler that is