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 F34D4385803E for ; Sat, 16 Apr 2022 11:16:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F34D4385803E 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-354-wA1dgL_yNWWm2x8hh077nA-1; Sat, 16 Apr 2022 07:16:50 -0400 X-MC-Unique: wA1dgL_yNWWm2x8hh077nA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8D44D3C021A5; Sat, 16 Apr 2022 11:16:50 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CF42C20296B8; Sat, 16 Apr 2022 11:16:49 +0000 (UTC) From: Florian Weimer To: Manolo Padron Martinez via Libc-help Subject: Re: Help compiling glibc 2.31 wih System V abi for powerpc References: Date: Sat, 16 Apr 2022 13:16:48 +0200 In-Reply-To: (Manolo Padron Martinez via Libc-help's message of "Fri, 15 Apr 2022 23:42:15 +0100") Message-ID: <87k0bpth0f.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.78 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_BLACK autolearn=no 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-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: Sat, 16 Apr 2022 11:16:56 -0000 * Manolo Padron Martinez via Libc-help: > I'm trying to compile glibc for a device with a powerpc processor that have > an old distro. > I'm using debian and crosscompiling it. > It seems to compile but when I use readelf to check the abi of libc.so I > get UNIX - GNU. > I take a look to all .a files and I have seen that everything is compiled > with UNIX - System V except the entries related to gettimeofday and time in > libc_pic.a. > > I think I've tried everything but still get that part with UNIX - GNU. > The configure options I'm trying are this: > > --host=powerpc-linux-gnu --enable-oldest-abi --prefix=/tmp/binglibc > --disable-werror CFLAGS='-D_GLIBCXX_USE_CXX11_ABI=0 -mcall-sysv-noeabi -O2 > -U HAVE_ELFV2_ABI I'm not sure if -mcall-sysv-noeabi is safe. -U HAVE_ELFV2_ABI won't have any effect for powerpc (32-bit). > Any idea what I could try? The GNU ABI probably comes from IFUNC usage, so you could try configuring with --disable-multi-arch. But it would have to be a strange configuration where the ABI field would matter because your cross-toolchain is apparently compatible with it, and glibc is as well. Thanks, Florian