From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 1C4773858439 for ; Fri, 1 Jul 2022 06:52:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1C4773858439 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-96-NsYc0ocJPfi23mTa-PHJjQ-1; Fri, 01 Jul 2022 02:52:46 -0400 X-MC-Unique: NsYc0ocJPfi23mTa-PHJjQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4A2743821C0C; Fri, 1 Jul 2022 06:52:46 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.112]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 95149C28115; Fri, 1 Jul 2022 06:52:45 +0000 (UTC) From: Florian Weimer To: Miguel Bernal Marin Cc: libc-help@sourceware.org Subject: Re: Error on compile Glibc 2.34 (32 bit) on 64 bit References: Date: Fri, 01 Jul 2022 08:52:44 +0200 In-Reply-To: (Miguel Bernal Marin's message of "Thu, 30 Jun 2022 18:41:41 -0500") Message-ID: <87zghtgw8z.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Fri, 01 Jul 2022 06:52:49 -0000 * Miguel Bernal Marin: > I'm trying to build a 32 bit glibc 2.34 (Centos Stream 9 GLIBC), > using a 64 bit OS. > > I do "rpmbuild -ba SPECS/glibc.spec --target i686", which give me > the following error: For some CentOS packages, you need to use the i386/i686 buildroot and mock, not an installed operating system. The --target option does not work with all packages. The buildroot is published here: I'm including a possible mock configuration file below. Thanks, Florian config_opts['basedir'] = '/var/lib/mock' config_opts['chroot_setup_cmd'] = 'groupinstall build' config_opts['chroothome'] = '/builddir' config_opts['dnf_warning'] = False config_opts['package_manager'] = 'dnf' config_opts['root'] = 'c9s-i686' config_opts['rpmbuild_networking'] = False config_opts['rpmbuild_timeout'] = 86400 config_opts['target_arch'] = 'i686' config_opts['use_host_resolv'] = False config_opts['yum.conf'] = '[main]\ncachedir=/var/cache/yum\ndebuglevel=1\nlogfile=/var/log/yum.log\nreposdir=/dev/null\nretries=20\nobsoletes=1\ngpgcheck=0\nassumeyes=1\nkeepcache=1\ninstall_weak_deps=0\nstrict=1\n\n# repos\n\n[build]\nname=build\nbaseurl=https://kojihub.stream.centos.org/kojifiles/repos/c9s-build/latest/i386/\n' config_opts['plugin_conf']['ccache_enable'] = False config_opts['plugin_conf']['root_cache_enable'] = False config_opts['plugin_conf']['yum_cache_enable'] = True config_opts['macros']['%_host'] = 'i686-koji-linux-gnu' config_opts['macros']['%_host_cpu'] = 'i686' config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' config_opts['macros']['%_topdir'] = '/builddir/build' config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el9%{?with_bootstrap:%{__bootstrap}}' config_opts['macros']['%distribution'] = 'Koji Testing' config_opts['macros']['%packager'] = 'Koji' config_opts['macros']['%vendor'] = 'Koji'