From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id AD7A6385803E for ; Sat, 16 Apr 2022 13:15:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AD7A6385803E Received: by mail-il1-x133.google.com with SMTP id i8so1151495ila.5 for ; Sat, 16 Apr 2022 06:15:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XR81stghLi6B6NckSI6OcYSXYR/PwtlFRiXxe1wZMYY=; b=T7PH1bNCg7hh7pSwkpbk2NjtbTkpKxUowY6ge83qxirrSmI/n/aJwkyy8uZ+fxeLsW O7e8r0Re2kgebFE6fEQW4rr7L3wQGKgBI76XSYvnSirC6fPsqB9T3Lh1P4IrHAc1G3nE twxYgadAGetdvEHRgD0wgvJ/imPv/KLTu7u6vuVOazRyFrVbOKfgz2gpxvwmVOopSpxl mMof8zMtVqQpUr0XSRJAiusY6yVWdBLxcGT+PjBaY9s3QBVZHtsqZ6g3Z88lNxQXZliH 3FJi+RK0zUP5Hfiulspm/GW770o4Zzm50yi6tTZRUe0ws8NzbGnpD7+jiwDNDVm2HAdN DTIQ== X-Gm-Message-State: AOAM530DGlUJAmE9XSDY2om7wJrovTP6n0/rg0eeq9SDMiP7TMUt336A /oT3O6nX5f+gWCTLhbF2HNh3BrklterKLCNwYy0= X-Google-Smtp-Source: ABdhPJxClQyfajH653RlvnihVa0byLw+RW0b6e69XV5ziCoBT7Qa2EtDNxp4ueVq4Sqnf6eKcGFbpicpgzfnICuO8J0= X-Received: by 2002:a05:6e02:1d1d:b0:2cb:d7b9:6b15 with SMTP id i29-20020a056e021d1d00b002cbd7b96b15mr1238772ila.308.1650114918593; Sat, 16 Apr 2022 06:15:18 -0700 (PDT) MIME-Version: 1.0 References: <87k0bpth0f.fsf@oldenburg.str.redhat.com> In-Reply-To: <87k0bpth0f.fsf@oldenburg.str.redhat.com> From: Manolo Padron Martinez Date: Sat, 16 Apr 2022 14:15:07 +0100 Message-ID: Subject: Re: Help compiling glibc 2.31 wih System V abi for powerpc To: Florian Weimer Cc: Manolo Padron Martinez via Libc-help X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 13:15:21 -0000 First, Thanks for the answer Florian! I still have the same problem. libc_pic.a keeps telling me that gettimeofday and time its using GNU ABI, and when it links libc.so it becomes GNU ABI. The reason that I need it in System V its I have an old powerpc with and old linux distro, when I try to cross compile something for this machine I get problems because it has an on libc, so I need libc and If I try to use it with GNU ABI the program said "wrong ABI format" . On Sat, Apr 16, 2022 at 12:16 PM Florian Weimer wrote: > * 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 > >