Github messages for voidlinux
 help / color / mirror / Atom feed
From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: New packages: mold-0.9.3, mimalloc-1.7.2
Date: Fri, 14 Jan 2022 05:15:52 +0100	[thread overview]
Message-ID: <20220114041552.FAnRK4YSv44x-CK4WRQFhANVeRev_LGuoEi1aCdwBcg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31706@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 13462 bytes --]

New comment by cinerea0 on void-packages repository

https://github.com/void-linux/void-packages/pull/31706#issuecomment-1012736780

Comment:
Currently attempting to build mold using a very similar template to the one in this PR and I think I'm getting the compilation errors mentioned earlier that disappeared on their own:

<details>
<summary>Build Output</summary>

```
=> mold-1.0.1_1: running do_build ...
mkdir -p out/elf
touch out/elf/.keep
mkdir -p out/macho
touch out/macho/.keep
g++     -DMOLD_VERSION=\"1.0.1\" -DLIBDIR="\"/usr/local/lib\"" -Ithird-party/tbb/include -Ithird-party/xxhash -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe    -fdebug-prefix-map=/builddir/mold-1.0.1=. -c -o out/compress.o compress.cc
In file included from compress.cc:15:
mold.h:27:32: error: 'string_view_literals' is not a namespace-name; did you mean 'string_literals'?
   27 | using namespace std::literals::string_view_literals;
      |                                ^~~~~~~~~~~~~~~~~~~~
      |                                string_literals
mold.h:41:1: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17'
   41 | inline char *output_tmpfile;
      | ^~~~~~
mold.h:42:1: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17'
   42 | inline char *socket_tmpfile;
      | ^~~~~~
mold.h:43:1: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17'
   43 | inline thread_local bool opt_demangle;
      | ^~~~~~
mold.h:47:6: error: 'string_view' in namespace 'std' does not name a type
   47 | std::string_view errno_string();
      |      ^~~~~~~~~~~
mold.h:47:1: note: 'std::string_view' is only available from C++17 onwards
   47 | std::string_view errno_string();
      | ^~~
mold.h:72:10: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17'
   72 |   static inline std::mutex mu;
      |          ^~~~~~
mold.h: In destructor 'mold::SyncOut<C>::~SyncOut()':
mold.h:63:21: error: missing template arguments before 'lock'
   63 |     std::lock_guard lock(mu);
      |                     ^~~~
mold.h: At global scope:
mold.h:202:39: error: 'std::string_view' has not been declared
  202 | inline i64 write_string(u8 *buf, std::string_view str) {
      |                                       ^~~~~~~~~~~
mold.h: In function 'mold::i64 mold::write_string(mold::u8*, int)':
mold.h:203:19: error: request for member 'data' in 'str', which is of non-class type 'int'
  203 |   memcpy(buf, str.data(), str.size());
      |                   ^~~~
mold.h:203:31: error: request for member 'size' in 'str', which is of non-class type 'int'
  203 |   memcpy(buf, str.data(), str.size());
      |                               ^~~~
mold.h:204:11: error: request for member 'size' in 'str', which is of non-class type 'int'
  204 |   buf[str.size()] = '\0';
      |           ^~~~
mold.h:205:14: error: request for member 'size' in 'str', which is of non-class type 'int'
  205 |   return str.size() + 1;
      |              ^~~~
mold.h: At global scope:
mold.h:255:6: error: 'string_view' in namespace 'std' does not name a type
  255 | std::string_view save_string(C &ctx, const std::string &str) {
      |      ^~~~~~~~~~~
mold.h:255:1: note: 'std::string_view' is only available from C++17 onwards
  255 | std::string_view save_string(C &ctx, const std::string &str) {
      | ^~~
mold.h:295:36: error: 'std::string_view' has not been declared
  295 |   std::pair<T *, bool> insert(std::string_view key, u64 hash, const T &val) {
      |                                    ^~~~~~~~~~~
mold.h: In member function 'std::pair<T*, bool> mold::ConcurrentMap<T>::insert(int, mold::u64, const T&)':
mold.h:316:26: error: request for member 'size' in 'key', which is of non-class type 'int'
  316 |         sizes[idx] = key.size();
      |                          ^~~~
mold.h:317:25: error: request for member 'data' in 'key', which is of non-class type 'int'
  317 |         keys[idx] = key.data();
      |                         ^~~~
mold.h:321:15: error: request for member 'size' in 'key', which is of non-class type 'int'
  321 |       if (key.size() == sizes[idx] && memcmp(ptr, key.data(), sizes[idx]) == 0)
      |               ^~~~
mold.h:321:55: error: request for member 'data' in 'key', which is of non-class type 'int'
  321 |       if (key.size() == sizes[idx] && memcmp(ptr, key.data(), sizes[idx]) == 0)
      |                                                       ^~~~
mold.h: At global scope:
mold.h:436:31: error: 'string_view' is not a member of 'std'
  436 | std::string get_realpath(std::string_view path);
      |                               ^~~~~~~~~~~
mold.h:436:31: note: 'std::string_view' is only available from C++17 onwards
mold.h:437:23: error: 'string_view' is not a member of 'std'
  437 | bool path_is_dir(std::string_view path);
      |                       ^~~~~~~~~~~
mold.h:437:23: note: 'std::string_view' is only available from C++17 onwards
mold.h:438:6: error: 'string_view' in namespace 'std' does not name a type
  438 | std::string_view path_dirname(std::string_view path);
      |      ^~~~~~~~~~~
mold.h:438:1: note: 'std::string_view' is only available from C++17 onwards
  438 | std::string_view path_dirname(std::string_view path);
      | ^~~
mold.h:439:6: error: 'string_view' in namespace 'std' does not name a type
  439 | std::string_view path_filename(std::string_view path);
      |      ^~~~~~~~~~~
mold.h:439:1: note: 'std::string_view' is only available from C++17 onwards
  439 | std::string_view path_filename(std::string_view path);
      | ^~~
mold.h:440:6: error: 'string_view' in namespace 'std' does not name a type
  440 | std::string_view path_basename(std::string_view path);
      |      ^~~~~~~~~~~
mold.h:440:1: note: 'std::string_view' is only available from C++17 onwards
  440 | std::string_view path_basename(std::string_view path);
      | ^~~
mold.h:441:35: error: 'string_view' is not a member of 'std'
  441 | std::string path_to_absolute(std::string_view path);
      |                                   ^~~~~~~~~~~
mold.h:441:35: note: 'std::string_view' is only available from C++17 onwards
mold.h:442:29: error: 'string_view' is not a member of 'std'
  442 | std::string path_clean(std::string_view path);
      |                             ^~~~~~~~~~~
mold.h:442:29: note: 'std::string_view' is only available from C++17 onwards
mold.h:448:6: error: 'string_view' in namespace 'std' does not name a type
  448 | std::string_view demangle(std::string_view name);
      |      ^~~~~~~~~~~
mold.h:448:1: note: 'std::string_view' is only available from C++17 onwards
  448 | std::string_view demangle(std::string_view name);
      | ^~~
mold.h:456:34: error: expected ')' before 'input'
  456 |   ZlibCompressor(std::string_view input);
      |                 ~                ^~~~~~
      |                                  )
mold.h:467:34: error: expected ')' before 'input'
  467 |   GzipCompressor(std::string_view input);
      |                 ~                ^~~~~~
      |                                  )
mold.h:484:27: error: expected ')' before 'name'
  484 |   Counter(std::string_view name, i64 value = 0) : name(name), values(value) {
      |          ~                ^~~~~
      |                           )
mold.h:504:10: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17'
  504 |   static inline bool enabled = false;
      |          ^~~~~~
mold.h:509:8: error: 'string_view' in namespace 'std' does not name a type
  509 |   std::string_view name;
      |        ^~~~~~~~~~~
mold.h:509:3: note: 'std::string_view' is only available from C++17 onwards
  509 |   std::string_view name;
      |   ^~~
mold.h:512:10: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17'
  512 |   static inline std::vector<Counter *> instances;
      |          ^~~~~~
mold.h:568:38: error: 'std::string_view' has not been declared
  568 |   void append(std::string path, std::string_view data);
      |                                      ^~~~~~~~~~~
mold.h:578:43: error: 'string_view' is not a member of 'std'
  578 |   std::vector<std::pair<std::string, std::string_view>> contents;
      |                                           ^~~~~~~~~~~
mold.h:578:43: note: 'std::string_view' is only available from C++17 onwards
mold.h:578:43: error: 'string_view' is not a member of 'std'
mold.h:578:43: note: 'std::string_view' is only available from C++17 onwards
mold.h:578:43: error: template argument 2 is invalid
mold.h:578:54: error: template argument 1 is invalid
  578 |   std::vector<std::pair<std::string, std::string_view>> contents;
      |                                                      ^~
mold.h:578:54: error: template argument 2 is invalid
mold.h:598:8: error: 'string_view' in namespace 'std' does not name a type
  598 |   std::string_view get_contents() {
      |        ^~~~~~~~~~~
mold.h:598:3: note: 'std::string_view' is only available from C++17 onwards
  598 |   std::string_view get_contents() {
      |   ^~~
mold.h: In static member function 'static mold::MappedFile<C>* mold::MappedFile<C>::open(C&, std::string)':
mold.h:617:12: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'starts_with'
  617 |   if (path.starts_with('/') && !ctx.arg.chroot.empty())
      |            ^~~~~~~~~~~
mold.h:618:50: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (std::string&)'
  618 |     path = ctx.arg.chroot + "/" + path_clean(path);
      |                                                  ^
mold.h:626:10: error: missing template arguments before '(' token
  626 |     Fatal(ctx) << path << ": fstat failed: " << errno_string();
      |          ^
mold.h:626:49: error: there are no arguments to 'errno_string' that depend on a template parameter, so a declaration of 'errno_string' must be available [-fpermissive]
  626 |     Fatal(ctx) << path << ": fstat failed: " << errno_string();
      |                                                 ^~~~~~~~~~~~
mold.h:626:49: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
mold.h:639:12: error: missing template arguments before '(' token
  639 |       Fatal(ctx) << path << ": mmap failed: " << errno_string();
      |            ^
mold.h:639:50: error: there are no arguments to 'errno_string' that depend on a template parameter, so a declaration of 'errno_string' must be available [-fpermissive]
  639 |       Fatal(ctx) << path << ": mmap failed: " << errno_string();
      |                                                  ^~~~~~~~~~~~
mold.h: In static member function 'static mold::MappedFile<C>* mold::MappedFile<C>::must_open(C&, std::string)':
mold.h:650:8: error: missing template arguments before '(' token
  650 |   Fatal(ctx) << "cannot open " << path;
      |        ^
compress.cc: At global scope:
compress.cc:24:25: error: 'string_view' is not a member of 'std'
   24 | static std::vector<std::string_view> split(std::string_view input) {
      |                         ^~~~~~~~~~~
compress.cc:24:25: note: 'std::string_view' is only available from C++17 onwards
compress.cc:24:25: error: 'string_view' is not a member of 'std'
compress.cc:24:25: note: 'std::string_view' is only available from C++17 onwards
compress.cc:24:36: error: template argument 1 is invalid
   24 | static std::vector<std::string_view> split(std::string_view input) {
      |                                    ^
compress.cc:24:36: error: template argument 2 is invalid
compress.cc:24:49: error: 'string_view' is not a member of 'std'
   24 | static std::vector<std::string_view> split(std::string_view input) {
      |                                                 ^~~~~~~~~~~
compress.cc:24:49: note: 'std::string_view' is only available from C++17 onwards
compress.cc:36:41: error: 'string_view' is not a member of 'std'
   36 | static std::vector<u8> do_compress(std::string_view input) {
      |                                         ^~~~~~~~~~~
compress.cc:36:41: note: 'std::string_view' is only available from C++17 onwards
compress.cc:36:60: error: expected ',' or ';' before '{' token
   36 | static std::vector<u8> do_compress(std::string_view input) {
      |                                                            ^
compress.cc:66:31: error: expected constructor, destructor, or type conversion before '(' token
   66 | ZlibCompressor::ZlibCompressor(std::string_view input) {
      |                               ^
compress.cc:114:31: error: expected constructor, destructor, or type conversion before '(' token
  114 | GzipCompressor::GzipCompressor(std::string_view input) {
      |                               ^
make: *** [Makefile:126: out/compress.o] Error 1
=> ERROR: mold-1.0.1_1: do_build: '${make_cmd} CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" CPP="$CPP" AS="$AS" OBJCOPY="$OBJCOPY" OBJDUMP="$OBJDUMP" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" ${makejobs} ${make_build_args} ${make_build_target}' exited with 2
=> ERROR:   in do_build() at common/build-style/gnu-makefile.sh:9
```

</details>

  parent reply	other threads:[~2022-01-14  4:15 UTC|newest]

Thread overview: 123+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-29  0:36 [PR PATCH] New package: mimalloc-1.7.2 Logarithmus
2021-06-29  0:56 ` [PR REVIEW] " sgn
2021-06-29  0:56 ` sgn
2021-06-29  0:56 ` sgn
2021-06-29  0:56 ` sgn
2021-06-29  0:56 ` sgn
2021-06-29  0:57 ` sgn
2021-06-29  0:58 ` sgn
2021-06-29  1:02 ` Logarithmus
2021-06-29  1:03 ` Logarithmus
2021-06-29  1:03 ` Logarithmus
2021-06-29  1:28 ` Logarithmus
2021-06-29  1:28 ` Logarithmus
2021-06-29  1:32 ` sgn
2021-06-29  1:33 ` Logarithmus
2021-06-29  1:35 ` sgn
2021-06-29  1:36 ` sgn
2021-06-29  1:38 ` Logarithmus
2021-06-29  1:40 ` [PR PATCH] [Updated] " Logarithmus
2021-06-29  1:41 ` Logarithmus
2021-06-29 16:48 ` [PR PATCH] [Updated] " Logarithmus
2021-06-29 17:19 ` Logarithmus
2021-06-29 18:05 ` Logarithmus
2021-06-29 19:26 ` Logarithmus
2021-06-29 19:34 ` Logarithmus
2021-06-29 20:15 ` Logarithmus
2021-06-29 20:15 ` Logarithmus
2021-06-29 20:16 ` Logarithmus
2021-06-30  9:06 ` [PR REVIEW] " travankor
2021-06-30 12:29 ` Logarithmus
2021-06-30 14:07 ` [PR PATCH] [Updated] " Logarithmus
2021-07-01 11:10 ` Logarithmus
2021-07-01 11:20 ` [PR REVIEW] New packages: mold-0.9.1, mimalloc-1.7.2 Logarithmus
2021-07-01 11:26 ` q66
2021-07-01 11:26 ` Logarithmus
2021-07-01 11:28 ` Logarithmus
2021-07-01 13:12 ` q66
2021-07-01 13:23 ` Vaelatern
2021-07-01 13:28 ` q66
2021-07-01 13:40 ` ericonr
2021-07-01 13:40 ` ericonr
2021-07-01 13:40 ` ericonr
2021-07-01 13:40 ` ericonr
2021-07-01 13:40 ` ericonr
2021-07-01 13:40 ` ericonr
2021-07-01 13:40 ` ericonr
2021-07-01 13:40 ` Logarithmus
2021-07-01 13:54 ` Logarithmus
2021-07-01 13:54 ` Logarithmus
2021-07-01 13:54 ` Logarithmus
2021-07-01 13:54 ` Logarithmus
2021-07-01 13:54 ` Logarithmus
2021-07-01 13:54 ` Logarithmus
2021-07-01 13:58 ` Logarithmus
2021-07-01 14:00 ` Logarithmus
2021-07-01 14:08 ` q66
2021-07-01 14:26 ` Logarithmus
2021-07-01 14:27 ` Logarithmus
2021-07-01 14:30 ` q66
2021-07-01 14:37 ` Logarithmus
2021-07-01 14:38 ` Logarithmus
2021-07-01 14:39 ` Logarithmus
2021-07-01 14:45 ` Logarithmus
2021-07-01 14:49 ` q66
2021-07-01 15:04 ` ericonr
2021-07-01 15:05 ` Logarithmus
2021-07-01 15:07 ` ericonr
2021-07-01 15:09 ` Logarithmus
2021-07-01 15:20 ` [PR PATCH] [Updated] " Logarithmus
2021-07-01 15:21 ` [PR REVIEW] " Logarithmus
2021-07-01 15:24 ` q66
2021-07-01 15:29 ` Logarithmus
2021-07-01 15:30 ` Logarithmus
2021-07-01 15:34 ` Logarithmus
2021-07-01 15:35 ` Logarithmus
2021-07-01 16:57 ` sgn
2021-07-01 16:59 ` Logarithmus
2021-07-12 15:27 ` [PR PATCH] [Updated] " Logarithmus
2021-07-13  2:18 ` Logarithmus
2021-07-13  2:23 ` Logarithmus
2021-07-13  2:26 ` [PR REVIEW] " sgn
2021-07-13  2:27 ` sgn
2021-07-13  2:29 ` Logarithmus
2021-07-13  2:37 ` Logarithmus
2021-07-13  2:37 ` Logarithmus
2021-07-13  2:47 ` [PR PATCH] [Updated] New packages: mold-0.9.2, mimalloc-1.7.2 Logarithmus
2021-07-13  2:55 ` [PR REVIEW] " Logarithmus
2021-07-13  2:56 ` Logarithmus
2021-07-13  3:32 ` [PR PATCH] [Updated] " Logarithmus
2021-07-13  3:42 ` [PR REVIEW] " Logarithmus
2021-07-13  3:47 ` [PR PATCH] [Updated] " Logarithmus
2021-07-13  3:49 ` Logarithmus
2021-07-13 10:33 ` [PR PATCH] [Updated] " Logarithmus
2021-07-13 10:37 ` Logarithmus
2021-07-13 10:44 ` Logarithmus
2021-07-13 11:08 ` Logarithmus
2021-07-13 13:12 ` [PR REVIEW] " ericonr
2021-07-13 13:12 ` ericonr
2021-07-13 13:12 ` ericonr
2021-07-13 13:12 ` ericonr
2021-07-13 13:13 ` Logarithmus
2021-07-13 13:15 ` Logarithmus
2021-07-13 13:18 ` Logarithmus
2021-07-24  1:48 ` [PR PATCH] [Updated] " Logarithmus
2021-07-24 10:24 ` Logarithmus
2021-07-24 10:32 ` [PR PATCH] [Updated] New packages: mold-0.9.3, mimalloc-1.7.2 Logarithmus
2021-07-24 12:13 ` [PR REVIEW] " sgn
2021-07-24 12:14 ` Logarithmus
2021-07-25 20:19 ` ericonr
2021-07-26 13:47 ` [PR PATCH] [Updated] " Logarithmus
2021-07-26 13:50 ` Logarithmus
2021-07-27  3:23 ` [PR REVIEW] " Logarithmus
2021-07-27  3:25 ` Logarithmus
2021-10-24 18:13 ` cinerea0
2021-12-20  1:45 ` Sinono3
2021-12-24 20:15 ` Logarithmus
2021-12-24 20:16 ` Logarithmus
2022-01-09 20:09 ` [PR REVIEW] " Anachron
2022-01-10 19:31 ` Chocimier
2022-01-10 22:08 ` Anachron
2022-01-11  8:27 ` Anachron
2022-01-14  4:15 ` cinerea0 [this message]
2022-05-24  2:13 ` github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220114041552.FAnRK4YSv44x-CK4WRQFhANVeRev_LGuoEi1aCdwBcg@z \
    --to=cinerea0@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    --subject='Re: New packages: mold-0.9.3, mimalloc-1.7.2' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).