From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 913141F86C for ; Tue, 1 Dec 2020 13:50:58 +0000 (UTC) Received: from localhost ([::1]:60488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk63V-00005i-E3 for normalperson@yhbt.net; Tue, 01 Dec 2020 08:50:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk63R-0008WT-LD for bug-gnulib@gnu.org; Tue, 01 Dec 2020 08:50:53 -0500 Received: from mail8.parnet.fi ([77.234.108.134]:53118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk63K-0005dc-Pl for bug-gnulib@gnu.org; Tue, 01 Dec 2020 08:50:53 -0500 Received: from mail9.parnet.fi (mail9.parnet.fi [77.234.108.21]) by mail8.parnet.fi with ESMTP id 0B1DogGY008104-0B1DogGZ008104 for ; Tue, 1 Dec 2020 15:50:42 +0200 Received: from foo.martin.st (host-96-177.parnet.fi [77.234.96.177]) by mail9.parnet.fi (Postfix) with ESMTPS id A335CA143C for ; Tue, 1 Dec 2020 15:50:42 +0200 (EET) Date: Tue, 1 Dec 2020 15:50:42 +0200 (EET) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: bug-gnulib@gnu.org Subject: Re: Issues with posix functions on modern macOS/Xcode In-Reply-To: Message-ID: References: User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1284639944-1606830642=:4295" X-FE-Policy-ID: 3:14:2:SYSTEM Received-SPF: pass client-ip=77.234.108.134; envelope-from=martin@martin.st; helo=mail8.parnet.fi X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1284639944-1606830642=:4295 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT On Tue, 1 Dec 2020, Martin Storsjö wrote: > On Xcode 12.2 on macOS 11.0 on arm64, the following sequence fails to build: > > $ ./gnulib-tool --create-testdir --dir=/tmp/testdir-posix \ > --single-configure --avoid=havelib-tests \ > `./posix-modules` > $ cd /tmp/testdir-posix > $ ./configure CPPFLAGS=-Wall 2>&1 | tee log1 > $ make 2>&1 | tee log2 > $ make check 2>&1 | tee log3 > > > The "make" step fails with the following error: > > gcc -g -O2 -o test-dprintf-posix2 test-dprintf-posix2.o libtests.a > ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a > Undefined symbols for architecture arm64: > "_vm_region", referenced from: > _vma_iterate in libtests.a(vma-iter.o) > ld: symbol(s) not found for architecture arm64 > > > This same bit does succeed on x86_64 though - it looks like > gnulib/lib/vma-iter.c has a macos specific arch check like this: > > # if defined __ppc64__ || defined __x86_64__ > > This probably needs to be amended with "|| defined __aarch64__". > > On macOS 10.15.7 (Catalina) on x86_64, both with Xcode 11.7 and 12.2, the > following tests fail: > > FAIL: test-dprintf-posix2.sh > FAIL: test-fflush2.sh > FAIL: test-fprintf-posix3.sh > FAIL: test-fpurge > FAIL: test-ftell.sh > FAIL: test-ftell2.sh > FAIL: test-ftello.sh > FAIL: test-ftello2.sh > FAIL: test-futimens > FAIL: test-renameat > FAIL: test-renameatu > FAIL: test-strsignal > FAIL: test-utime > FAIL: test-utimens > FAIL: test-utimensat FWIW, after fixing the vma-iter ifdef, the same tests fail in the same way on arm64 as on x86_64 (except that test-dprintf-posix2.sh doesn't seem to fail there). So in any case, if the tests are made to pass on existing x86_64, they'll most probably work just the same way on arm64. // Martin --8323329-1284639944-1606830642=:4295--