delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2018/07/26/12:23:48

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Subject: Re: missing errnos for std::filesystem
To: djgpp AT delorie DOT com
References: <a4f3df8a-42d7-fc38-686c-ddcbf89d1bac AT gmail DOT com>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Message-ID: <bc4c0f63-30d2-bce0-fde9-b6c0abf144d5@iki.fi>
Date: Thu, 26 Jul 2018 19:23:32 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <a4f3df8a-42d7-fc38-686c-ddcbf89d1bac@gmail.com>
X-MIME-Autoconverted: from Quoted-Printable to 8bit by delorie.com id w6QGNdX2006952
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 07/25/2018 06:56 PM, J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com] wrote:
> I tried building a recent gcc snapshot today, but was unable to compile std::filesystem support 
> due to some missing constants in std::errc.
>
> ../../../../../libstdc++-v3/src/filesystem/ops.cc: In function 'uintmax_t 
> std::experimental::filesystem::v1::file_size(const 
> std::experimental::filesystem::v1::__cxx11::path&, std::error_code&)':
> ../../../../../libstdc++-v3/src/filesystem/ops.cc:790:39: error: 'not_supported' is not a member 
> of 'std::errc'
>   ec = std::make_error_code(std::errc::not_supported);
>                                        ^~~~~~~~~~~~~
> ../../../../../libstdc++-v3/src/filesystem/ops.cc: In function 'void 
> std::experimental::filesystem::v1::permissions(const 
> std::experimental::filesystem::v1::__cxx11::path&, std::experimental::filesystem::v1::perms, 
> std::error_code&)':
> ../../../../../libstdc++-v3/src/filesystem/ops.cc:940:42: error: 'operation_not_supported' is not 
> a member of 'std::errc'
>      ec = std::make_error_code(std::errc::operation_not_supported);
>                                           ^~~~~~~~~~~~~~~~~~~~~~~
>
> The corresponding C macros are ENOTSUP and EOPNOTSUP. Can these be added to djgpp's errno.h?
>
>
Only adding them to DJGPP's errno.h in CVS version would make port of GCC incompatible with 
currently available released version 2.05. I do not think that anybody would like that. I saw this 
prooblem and workar5ounded it in a different way

See DJGPP related changes inside:

ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-8.1.0/djcross-gcc-8.1.0.tar.bz2

My changes to libstdc++-v3/config/os/djgpp/error_constants.h does not exclude possibility to modify 
also DJGPP's errno.h.


Andris



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019