delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2018/07/25/11:57:30

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent
:mime-version:content-language:content-transfer-encoding;
bh=XoelHm6WMoGE2+T0XteQsl9rhz02SfDNdm3IW8vPDqU=;
b=LuxuCpE02cWJQflxklJKaHftwbB0HpERsnoKKYbAVsO4XKMQ01s+6h5O4quFlCSn1A
Yl3D178u+mxOMUIHoSobubQBDwuQpIm0yCcXs2OmXoUKkbddFn1UU99NKCPWNBfC4ri0
/qNWMnnUFLDfg9nCgnYD/HHw7bka+VH635SP1vpY8adZewQBTBpZsqjHj+23fElq8bNF
9tS9BUwYE0efZXygwM7EKozLBG/tbA2T52jjQ6d8oImXcpc4Bgnw9/lh1QswQOExiw4P
eEgWoJZX6Y6lXMqdf4KM/GPw0s0msscaE+mNdG3Y4cvnXQR7URUI2QrTYi/x+PG1ybUq
z4Vg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:to:from:subject:openpgp:autocrypt:message-id
:date:user-agent:mime-version:content-language
:content-transfer-encoding;
bh=XoelHm6WMoGE2+T0XteQsl9rhz02SfDNdm3IW8vPDqU=;
b=IdrR294wDcF0HTrAu0hRg1V9a8mtXLtecrQrCKRkHQn+gk3F4xqBDI+FOk5NWE9Du5
czg10YyRD3XlptmvBbXz8qnq2uFbvQ7i49mbGDRbgCSDDVtCaq9T8URc6nwv4eVYnA4B
VYnRVM6QsLyLEnvCI3wsqSvEBTEOeCYvQgXdyWA1unz5kDOeiWzpxBoMzDWFkgsF/S1m
sa7hoPGOYNjOBw0MBlJXz91/Bq2x1pKQUad7MwlOBUICkg1cYeUll8VW0SO/pFeuDhkQ
4/mQSZHcYHiaKhY+GnykgkDPwo6VdjxRKdXg8VVd0t9Ur39Di0MBZW9Qx8Ob+Rb2/TmS
9EYQ==
X-Gm-Message-State: AOUpUlEGBru3qfQxhn1VQJ75L5lXJkeutSdw/OIMhmdwePzjEn2mNY96
mAW933qPxUcY/dJ3+bX6zp9NmrX/
X-Google-Smtp-Source: AAOMgpfv1UASLqF6I9DRpt87wsOun01UG/A7o43ED6/1G4Mw9YxqxfapupTEBhwyN5eHadeLYOy7gQ==
X-Received: by 2002:aa7:c592:: with SMTP id g18-v6mr2535973edq.214.1532534239634;
Wed, 25 Jul 2018 08:57:19 -0700 (PDT)
To: djgpp AT delorie DOT com
From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Subject: missing errnos for std::filesystem
Openpgp: id=D1694EA4DA1338AF4905293BA5102F469FA45960
Autocrypt: addr=jwjagersma AT gmail DOT com; prefer-encrypt=mutual; keydata=
mJMEWlMYlBMJKyQDAwIIAQENBAMEORD9eiW30pI0XzJbuE7/4WF3ZyEOkpRgrmZnpTRmzXMW
z22N+2YrczEM+q+NzM/wn8XOVH4hZ7eSaUsLT86YLS+gF/F44IbRZVCHxdrL+qSQQ0SafwDM
Aaddx2azX+6MtlFO2B6oDbCHT7Nn5oQi3IgR+pgBzaCkfxyOnU1wjvO0JEouVy4gSmFnZXJz
bWEgPGp3amFnZXJzbWFAZ21haWwuY29tPojQBBMTCgA4FiEE0WlOpNoTOK9JBSk7pRAvRp+k
WWAFAlpTGJQCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQpRAvRp+kWWA3xAH/WIBG
sLngyIrTsn5uKz4JygtlCfjMRRSwl3/UIaW96VvIM/wUyzHl+vlyLmuclOjAiTVia/Js03Ar
zB9iCHZQ0QH/W8cRwHjRNZRukU2IR8eqoGsl6hTUrrAAOKOVO04wrjO4jGDHg3Sw2GxBx7Md
mD0QRId/gFwR/1UWS0jBdSUWC7iXBFpTGJQSCSskAwMCCAEBDQQDBFipNF/RUEAer/hhT6yJ
5no1ZLAZgpypvWZ3xJSrBKmcDTaOmNKNRrw1dNtSZ6M6wYcBmtCq7uvR5iiGyK3nD+olwe7a
4WDkhEEvbmdAYl2LnBsYeyruoW+N+KiMalvf9SphDmBi2NwdSZ1IhnBpxlUns8jqlgZGvG1G
xE1sleq7AwEKCYi4BBgTCgAgFiEE0WlOpNoTOK9JBSk7pRAvRp+kWWAFAlpTGJQCGwwACgkQ
pRAvRp+kWWBnyAH+JLrW/cK2aVDvq2nxn471opBgHyExzMi0hvbuy8BjyEt+AfL0RNCFcdds
CQakIGDv5k69TAgOftECgASwv6CG5wH8D3jnksh6YvYMf0hCBlSfwJ5ehIeqQTj0m2410RgC
KWywqmfU1X5YVXgmuXatRNgV/ggXS2Q7GnSP/StQzlh3sQ==
Message-ID: <a4f3df8a-42d7-fc38-686c-ddcbf89d1bac@gmail.com>
Date: Wed, 25 Jul 2018 17:56:28 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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?

- Raw text -


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