Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2017 07:57:33 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Mark Millard <markmi@dsl-only.net>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD Ports <freebsd-ports@freebsd.org>, bugzilla-noreply@freebsd.org, Brooks Davis <brooks@freebsd.org>
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]
Message-ID:  <20171112075733.GA76223@spindle.one-eyed-alien.net>
In-Reply-To: <7A1EEAA2-C160-492E-B1DA-24E7D73268BB@dsl-only.net>
References:  <bug-223383-34538@https.bugs.freebsd.org/bugzilla/> <bug-223383-34538-j5c28C4qDX@https.bugs.freebsd.org/bugzilla/> <7A1EEAA2-C160-492E-B1DA-24E7D73268BB@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I'll work on this.

-- Brooks

On Thu, Nov 09, 2017 at 07:09:00PM -0800, Mark Millard wrote:
> [ devel/llvm* also have the issue in their
> lld 's.]
>=20
> On 2017-Nov-7, at 4:43 PM, bugzilla-noreply at freebsd.org wrote:
>=20
> > 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 unsuppo=
rted
> >=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 stran=
ge
> >  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.
>=20
> [Context a zfs file system.]
>=20
> From /usr/src/UPDATING:
>=20
> 20171106:
>         The naive and non-compliant support of posix_fallocate(2) in ZFS
>         has been removed as of r325320.  The system call now returns EINV=
AL
>         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.
>=20
>=20
> The issue is not limited to the system clang's
> associated lld.=20
>=20
> Here is an attempt to use clang++50, implicitly using
> its associated lld:
>=20
> # 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 -mr=
elocation-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-compilati=
on-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-port=
bld-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-el=
f.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 a=
rgument
> clang-5.0: error: linker command failed with exit code 1 (use -v to see i=
nvocation)
>=20
>=20
> https://svnweb.freebsd.org/ports/head/devel/?dir_pagestart=3D1000
>=20
> does not yet suggest updates to devel/llvm* 's for
> the issue.
>=20
> =3D=3D=3D
> Mark Millard
> markmi at dsl-only.net
>=20

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJaB/7qAAoJEKzQXbSebgfAWNkH/3jJBcgy/tX+KIEK+k3dBtn9
RbxOYvEtAjOaShcY/07E3lp9Mi1mpQo3Ct4zXdFM909aVSGPvEbN4IV5JRns7dE0
t121D493uRxZQ1QTojtS2FhiLv60BGJP+aeB7xa137bWU/KDVL4zagnQmrcQQ3L+
iar4sszUntAcWGkKE86aTiDFM5TFDoXZh8iv8X2W59hMJ/OId08qW96Kbf7IWetY
BxwwgEae6dXVEsl+6AIG4UKKK86m4BjBHEZdkYO5KJRgTaGFqrwTFaGepWfnYoMW
OTwTwWKIgpto+cuWbsgGk9pQU229wtTg0241dPVV2pEmoQ+2utT5uOUCaCfF4O4=
=EO3n
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171112075733.GA76223>