From owner-svn-ports-all@freebsd.org Sun Jul 16 18:57:59 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FF5BC3197A for ; Sun, 16 Jul 2017 18:57:59 +0000 (UTC) (envelope-from acardenas@bsd-peru.org) Received: from mail-qt0-x229.google.com (mail-qt0-x229.google.com [IPv6:2607:f8b0:400d:c0d::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B0663E57 for ; Sun, 16 Jul 2017 18:57:59 +0000 (UTC) (envelope-from acardenas@bsd-peru.org) Received: by mail-qt0-x229.google.com with SMTP id b40so92814222qtb.2 for ; Sun, 16 Jul 2017 11:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd-peru-org.20150623.gappssmtp.com; s=20150623; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4HJSnYQOn9kg3ndMdJV7Jn5PsTE4q1Mr6o+0ye1kSlg=; b=aAybIqdGlUO6oVhFUShA0lRbBSgzzJuw+OhkAnClU5b+MVeQ9A6zvXBziSwW/P9R7x 7V8cq0yU5uU/onVzB5vAfm3m/IzThkzPqlgjmlLXANXpYzRyURLhpehdZ+F0Oft8xXVz acR2BQr9BhF+bMRypf3JaIhGLMPrK1O7I5qJYvqJYvk3plglR7cI03PC6pCZf+itJf7C NYJA1s/dj2vQcPliBYaOU2n/paESqsSrZoJvqCCqvk5toRvAh0JT7Jzx3gsi7u5PqLTo s8P30GEs/eKmdrUgoe6xA5RTkinRANdO4p/+wuQtQme8RoDgYoq7RE+D1c8nC4oidQ6i vxQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:sender:in-reply-to :references:from:date:message-id:subject:to:cc; bh=4HJSnYQOn9kg3ndMdJV7Jn5PsTE4q1Mr6o+0ye1kSlg=; b=d/NZiKjGPludIYxbFN4JdmFl61IxfYGh+5fuUKPfTC/gfGEJJPHd0DQYN3ezueCJXD VQqtdizZXUAjfe6E4UKtjL4h8fIYxXRLdAP4Vik6EJtyHoaebYvfGGVxkJMdKdqoH+/C VZlNwgLP2HQtpLN1GHIAJbK5N+wAFJwraNdOMJ4qIra7H0IyyhydxW2j62m5h1G66W4G vcgzb3XcNi98P6wonWnZsx5fvIIEW65abmhguz3bm3zhljYFMlC7hwUoIWZB44t/ixYy d3vOGPJHEUA4ZS/CwfJEBYxWqvDEoQlO7vLx03Lrwu4IxOrHKEOoo1ACOHEIIQ8fNjbM 1h7Q== X-Gm-Message-State: AIVw111Qz8mRs7TLhhHMpNqc+UiMMXnCWLCN6TKG6Dg565EAEypwh539 EuT/0J8S+GQdnDvplwsmCnneibRAi7GX5Ng= X-Received: by 10.200.36.205 with SMTP id t13mr23499142qtt.147.1500231477901; Sun, 16 Jul 2017 11:57:57 -0700 (PDT) MIME-Version: 1.0 Reply-To: acm@freebsd.org Sender: acardenas@bsd-peru.org Received: by 10.12.208.226 with HTTP; Sun, 16 Jul 2017 11:57:57 -0700 (PDT) In-Reply-To: <201707070638.v676cuPX003225@slippy.cwsent.com> References: <201707070315.v673F3Gl061343@repo.freebsd.org> <201707070638.v676cuPX003225@slippy.cwsent.com> From: =?UTF-8?Q?Alonso_C=C3=A1rdenas_M=C3=A1rquez?= Date: Sun, 16 Jul 2017 13:57:57 -0500 X-Google-Sender-Auth: 0bgZoEfCYFXrnh4W3QStQqhVJ0o Message-ID: Subject: Re: svn commit: r445203 - head/lang/ldc To: Cy Schubert Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2017 18:57:59 -0000 2017-07-07 1:38 GMT-05:00 Cy Schubert : > > > Interestingly I'm seeing the same issue with lang/dmd2. I've determined > that dmd2's issue is stack corruption caused incorrect D stat_t and > dirent_t definitions. I'm willing to bet that ldc, which is based on DMD D > (with an llvm backend), likely has the same issue. > Hi, you are right. lang/ldc is broken on 12-CURRENT. I think that some changes into 12-CURRENT is breaking some ports > I've opened a ticket with dlang.org. The issue is that for lang/dmd2 and > lang/ldc to support pre-inode64 and post-inode64 systems we must be able to > conditionally include old and new versions of stat and dirent structs. > Unfortunately D only supports a version() statement (akin an #ifdef) and D > supports version(FreeBSD) and is not able to conditionally compile based on > __FreeBSD_version. (It would have been simpler had they used simple stubs > to interface with the O/S. ) > > I think our todo in both cases will be: > > 1. See if our upline can support a version() statement that can be used to > compare against __FreeBSD_version or failing that a major.minor version > number, or > 2. Replacing the direct D calls of stat() and fstat() with calls to a stub > written in C or C++. This too can only be sustainably provided by our > upline. > > 3. Failing 1 and 2 above, the makefile changes and patches to both ports > will be inelegant hacks at best. > I'll be checking for your bug report ( https://issues.dlang.org/show_bug.cgi?id=17596. Maybe they implement version feature before of 12-RELEASE. Btw I think 3 is the best option currently. Geetings ACM