From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rahul AG Newsgroups: gmane.lisp.guile.bugs Subject: bug#23870: Guile 2.0.11 can't find clock_getcpuclockid on macOS 10.12 Sierra Date: Wed, 29 Jun 2016 20:53:55 +0800 Message-ID: <1E4CE00A-AC4E-4D1F-94C7-12C71C0B838A@hul.ag> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3189.5\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467214238 13143 80.91.229.3 (29 Jun 2016 15:30:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 15:30:38 +0000 (UTC) To: 23870@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jun 29 17:30:24 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bIHRW-0005Wg-GK for guile-bugs@m.gmane.org; Wed, 29 Jun 2016 17:30:22 +0200 Original-Received: from localhost ([::1]:44460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHRV-0000gY-S7 for guile-bugs@m.gmane.org; Wed, 29 Jun 2016 11:30:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHRJ-0000Zc-El for bug-guile@gnu.org; Wed, 29 Jun 2016 11:30:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIHRE-0007tu-AM for bug-guile@gnu.org; Wed, 29 Jun 2016 11:30:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHRC-0007sW-OH for bug-guile@gnu.org; Wed, 29 Jun 2016 11:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bIHRC-0006Nf-Ce for bug-guile@gnu.org; Wed, 29 Jun 2016 11:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rahul AG Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 29 Jun 2016 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23870 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146721415024416 (code B ref -1); Wed, 29 Jun 2016 15:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jun 2016 15:29:10 +0000 Original-Received: from localhost ([127.0.0.1]:60239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIHQL-0006Lj-3H for submit@debbugs.gnu.org; Wed, 29 Jun 2016 11:29:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIF0W-0002MH-FB for submit@debbugs.gnu.org; Wed, 29 Jun 2016 08:54:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIF0Q-0002jL-A1 for submit@debbugs.gnu.org; Wed, 29 Jun 2016 08:54:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIF0Q-0002jC-6r for submit@debbugs.gnu.org; Wed, 29 Jun 2016 08:54:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIF0L-0002gi-PX for bug-guile@gnu.org; Wed, 29 Jun 2016 08:54:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIF0I-0002hY-Ku for bug-guile@gnu.org; Wed, 29 Jun 2016 08:54:09 -0400 Original-Received: from velen.rahulg.io ([71.19.154.188]:60592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIF0H-0002Y9-WB for bug-guile@gnu.org; Wed, 29 Jun 2016 08:54:06 -0400 Original-Received: from [172.24.0.146] (bb42-60-101-75.singnet.com.sg [42.60.101.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by velen.rahulg.io (Postfix) with ESMTPSA id 0F083102014; Wed, 29 Jun 2016 12:53:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 velen.rahulg.io 0F083102014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hul.ag; s=default; t=1467204837; bh=00Hed0I9COcCYtpIUdRf+LpHH0vlgk9r1dCTLOS0yrc=; h=From:Date:Subject:To:From; b=IRxFXMwxrW/9IwbnO1OtZ//OobFXKZHoEk35ioiA3p5uJWbGNj1UVbfDxbtstWxVy fEMzCWZTtb7bJCy3zuECMx4qOVXKQiQlZC5gn45xb9LJZdHVbL49Tgo3v37bCxOABL czYI1xFl1aZkT+PUifxFyHSYLQomHDREyEJgfJCCAgPoe5TnlsEbkK+yZBOq8Kuoe8 Uyo+fmDOafD35moBCMo3klJFhaP/d+ntHkzL1T1p8FeXHerMrG5mFdevtWPoNc25qY t+I+lxOY1xe+eAFWQ3alqvdih+LFIJCTUBlOgPEYZkCqfd2omhhW6IfdkIQUFaj6LZ HeYFcEKg3Jilg== X-Mailer: Apple Mail (2.3189.5) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 29 Jun 2016 11:29:07 -0400 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: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8269 Archived-At: Guile version: 2.0.11 Machine type: x86_64-apple-darwin16.0.0 macOS 10.12 introduces the `clock_gettime` family of functions, with = slight differences from the *BSD and Linux implementations. The failure in linking is caused by a call at libguile/stime.c @ L841 to = `clock_getcpuclockid`, which does NOT exist on macOS, while = `_POSIX_CPUTIME` and `CLOCK_PROCESS_CPUTIME_ID` do exist. I have an absolutely hideous patch[1] locally applied that gets things = compiling (and get-internal-run-time seems to work), but is otherwise = terrible from a readability and maintainability standpoint. That said, = narrowing it down to that single call should help make this fix easier. Cheers. Rahul [1] https://gist.github.com/rahulg/baa500e84136f0965e9ade2fb36b90ba=