From owner-freebsd-toolchain@freebsd.org Fri Nov 10 03:15:49 2017 Return-Path: Delivered-To: freebsd-toolchain@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 7F2F7E63B84 for ; Fri, 10 Nov 2017 03:15:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-103.reflexion.net [208.70.210.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2CF69637D5 for ; Fri, 10 Nov 2017 03:15:48 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2558 invoked from network); 10 Nov 2017 03:09:02 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 10 Nov 2017 03:09:02 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Thu, 09 Nov 2017 22:09:02 -0500 (EST) Received: (qmail 12910 invoked from network); 10 Nov 2017 03:09:02 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 10 Nov 2017 03:09:02 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 8D737EC9169; Thu, 9 Nov 2017 19:09:01 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [Bug 223383] pathconf querying for posix_falloc not supported on freebsd [devel/llvm*'s lld's are also broken by this for zfs and need updating] From: Mark Millard In-Reply-To: Date: Thu, 9 Nov 2017 19:09:00 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <7A1EEAA2-C160-492E-B1DA-24E7D73268BB@dsl-only.net> References: To: FreeBSD Toolchain , FreeBSD Current , FreeBSD Ports , bugzilla-noreply@freebsd.org X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2017 03:15:49 -0000 [ devel/llvm* also have the issue in their lld 's.] On 2017-Nov-7, at 4:43 PM, bugzilla-noreply at freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223383 >=20 > --- Comment #7 from commit-hook@freebsd.org --- > A commit references this bug: >=20 > Author: emaste > Date: Wed Nov 8 00:39:04 UTC 2017 > New revision: 325523 > URL: https://svnweb.freebsd.org/changeset/base/325523 >=20 > Log: > MFC r325420: lld: accept EINVAL to indicate posix_fallocate is = unsupported >=20 > As of r325320 posix_fallocate on a ZFS filesystem returns EINVAL to > indicate that the operation is not supported. (I think this is a = strange > choice of errno on the part of POSIX.) >=20 > PR: 223383, 223440 > Reported by: Mark Millard > Sponsored by: The FreeBSD Foundation >=20 > Changes: > _U stable/11/ > stable/11/contrib/llvm/lib/Support/Unix/Path.inc >=20 > --=20 > You are receiving this mail because: > You are on the CC list for the bug. [Context a zfs file system.] =46rom /usr/src/UPDATING: 20171106: The naive and non-compliant support of posix_fallocate(2) in ZFS has been removed as of r325320. The system call now returns = EINVAL when used on a ZFS file. Although the new behavior complies = with the standard, some consumers are not prepared to cope with it. One known victim is lld prior to r325420. The issue is not limited to the system clang's associated lld.=20 Here is an attempt to use clang++50, implicitly using its associated lld: # clang++50 -v exception_test.cc clang version 5.0.0 (tags/RELEASE_500/final) Target: x86_64-portbld-freebsd12.0 Thread model: posix InstalledDir: /usr/local/llvm50/bin "/usr/local/llvm50/bin/clang-5.0" -cc1 -triple = x86_64-portbld-freebsd12.0 -emit-obj -mrelax-all -disable-free = -main-file-name exception_test.cc -mrelocation-model static = -mthread-model posix -mdisable-fp-elim -masm-verbose = -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v = -dwarf-column-info -debugger-tuning=3Dgdb -resource-dir = /usr/local/llvm50/lib/clang/5.0.0 -internal-isystem /usr/include/c++/v1 = -fdeprecated-macro -fdebug-compilation-dir /root/c_tests -ferror-limit = 19 -fmessage-length 200 -fobjc-runtime=3Dgnustep -fcxx-exceptions = -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o = /tmp/exception_test-baadc9.o -x c++ exception_test.cc clang -cc1 version 5.0.0 based upon LLVM 5.0.0 default target = x86_64-portbld-freebsd12.0 #include "..." search starts here: #include <...> search starts here: /usr/include/c++/v1 /usr/local/llvm50/lib/clang/5.0.0/include /usr/include End of search list. "/usr/local/llvm50/bin/ld" --eh-frame-hdr -dynamic-linker = /libexec/ld-elf.so.1 --hash-style=3Dboth --enable-new-dtags -o a.out = /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib = /tmp/exception_test-baadc9.o -lc++ -lm -lgcc --as-needed -lgcc_s = --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed = /usr/lib/crtend.o /usr/lib/crtn.o /usr/local/llvm50/bin/ld: error: cannot open output file a.out: Invalid = argument clang-5.0: error: linker command failed with exit code 1 (use -v to see = invocation) https://svnweb.freebsd.org/ports/head/devel/?dir_pagestart=3D1000 does not yet suggest updates to devel/llvm* 's for the issue. =3D=3D=3D Mark Millard markmi at dsl-only.net