From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#36172: 27.0.50; linking error in git head on macos: _aligned_alloc Date: Tue, 11 Jun 2019 16:14:25 -0400 Message-ID: References: <2bc10b43-b271-bbeb-9870-5b1e4cf9631a@cs.ucla.edu> <9046fcc5-fe75-88a0-ec03-33d69d030796@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="123440"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36172@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 22:17:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hanCv-000VuE-JL for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2019 22:17:25 +0200 Original-Received: from localhost ([::1]:55278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hanCu-0006t3-Kn for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2019 16:17:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44980) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hanAd-0005nZ-Bz for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 16:15:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hanAc-00050g-7M for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 16:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hanAc-00050b-3d for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 16:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hanAb-0006Cz-PV for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 16:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jun 2019 20:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36172 X-GNU-PR-Package: emacs Original-Received: via spool by 36172-submit@debbugs.gnu.org id=B36172.156028408623828 (code B ref 36172); Tue, 11 Jun 2019 20:15:01 +0000 Original-Received: (at 36172) by debbugs.gnu.org; 11 Jun 2019 20:14:46 +0000 Original-Received: from localhost ([127.0.0.1]:60246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hanAL-0006CF-QN for submit@debbugs.gnu.org; Tue, 11 Jun 2019 16:14:46 -0400 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:34428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hanAJ-0006C2-8d for 36172@debbugs.gnu.org; Tue, 11 Jun 2019 16:14:43 -0400 Original-Received: by mail-wm1-f45.google.com with SMTP id w9so2717078wmd.1 for <36172@debbugs.gnu.org>; Tue, 11 Jun 2019 13:14:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rTUcUE01CiT70L0keB/TefiYX6P5w5UnShsM6bWmrf0=; b=lQvh2jCUfLGb79y7+1c88DsS+/5DBFPaw0FZ46qy3vS+CzvGWzqhm6HeS259IVKVtr fO2q+nU6BbEUDiTEF0u+5b7t/Mxjr+ZR89HZoOlHg7GUQgsGBF04QxYOiwy6E8rulDAP yzcavdVTsAxO4X5GL6kWrCoxJAEDyIqRp8p7Pox+kiXvHC+jkxDcR49z3RPZpNJhAo/M XIvMITvbO38WCZo3HHyimcCJqYzbGn48nJZ8d9omMTtDYC/AGB8bwVw3igWbZY2qa+tT 9SOkP7aaQE2mgnYaUAvZQyLc+uIcCasEJXdYraduU2rveFDVwwzpBsEFUYU018U/tbYr ZH8A== X-Gm-Message-State: APjAAAUAkZLMmByfEI7+XxXX5y1/IuJDyahHaFxdVyjvqMGsfkVtDHOO 452NSVx57q4UfmTnk5IFkWJ7wTFP8xHXYIRXrg== X-Google-Smtp-Source: APXvYqzanu+sxqFO0N7/b62pK9ujIumkMmqA7JcLQKAXyW+O+cFChXKlwbpJzSvkmwT1vM/LDVPQw74ILfYZNrNTjbY= X-Received: by 2002:a7b:cc81:: with SMTP id p1mr18244667wma.107.1560284077398; Tue, 11 Jun 2019 13:14:37 -0700 (PDT) In-Reply-To: <9046fcc5-fe75-88a0-ec03-33d69d030796@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160405 Archived-At: $ gcc e.c e.c:6:13: warning: 'aligned_alloc' is only available on macOS 10.15 or newer [-Wunguarded-availability-new] char *p = aligned_alloc (8, 1); ^~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:50:10: note: 'aligned_alloc' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.14.0 void *aligned_alloc(size_t __alignment, size_t __size) __result_use_check __alloc_size(... ^ e.c:6:13: note: enclose 'aligned_alloc' in a __builtin_available check to silence this warning char *p = aligned_alloc (8, 1); ^~~~~~~~~~~~~ e.c:7:13: warning: 'aligned_alloc' is only available on macOS 10.15 or newer [-Wunguarded-availability-new] char *q = aligned_alloc (8, 2); ^~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:50:10: note: 'aligned_alloc' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.14.0 void *aligned_alloc(size_t __alignment, size_t __size) __result_use_check __alloc_size(... ^ e.c:7:13: note: enclose 'aligned_alloc' in a __builtin_available check to silence this warning char *q = aligned_alloc (8, 2); ^~~~~~~~~~~~~ 2 warnings generated. my system is 10.14.5 On Tue, 11 Jun 2019 at 16:08, Paul Eggert wrote: > > 'configure' says you have aligned_alloc, because it successfully built > an executable that calls aligned_alloc. However, the dynamic linker > fails, in that when temacs runs and calls aligned_alloc, its dynamic > linker fails to find an implementation. Please figure out why that is. > For example, you can compile and run this program with the same flags > you use to compile Emacs: > > #include > > int > main (int argc, char **argv) > { > char *p = aligned_alloc (8, 1); > char *q = aligned_alloc (8, 2); > return p && q && p == q; > } > > If it compiles and runs successfully, you can then investigate why it > works but temacs doesn't. Otherwise, you can investigate why it doesn't > work. > -- Sam Steingold