Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run on linux #1

Open
yteepaw opened this issue Jul 12, 2023 · 2 comments
Open

Can't run on linux #1

yteepaw opened this issue Jul 12, 2023 · 2 comments

Comments

@yteepaw
Copy link

yteepaw commented Jul 12, 2023

Hi, I'm working with this lib and I cannot use it anymore, when I type swift run I recieve this output and then nothing:


warning: 'rocksdb.swift': /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Package.swift:17:10: warning: 'launchPath' is deprecated: renamed to 'executableURL'
    task.launchPath = "/bin/bash"
         ^
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Package.swift:17:10: note: use 'executableURL' instead
    task.launchPath = "/bin/bash"
         ^~~~~~~~~~
         executableURL
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Package.swift:22:10: warning: 'launch()' is deprecated: renamed to 'run'
    task.launch()
         ^
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Package.swift:22:10: note: use 'run' instead
    task.launch()
         ^~~~~~
         run
Building for debugging...
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/backupable/backupable_db.cc:19:
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/util/channel.h:35:33: error: no matching constructor for initialization of 'std::lock_guard<std::mutex>'
    std::lock_guard<std::mutex> lk(lock_);
                                ^  ~~~~~
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/std_mutex.h:228:16: note: candidate constructor not viable: 1st argument ('const std::mutex') would lose const qualifier
      explicit lock_guard(mutex_type& __m) : _M_device(__m)
               ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/std_mutex.h:237:7: note: candidate constructor not viable: no known conversion from 'const std::mutex' to 'const std::lock_guard<std::mutex>' for 1st argument
      lock_guard(const lock_guard&) = delete;
      ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/std_mutex.h:231:7: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
      lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m)
      ^
1 error generated.
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/blob_db/blob_db.cc:11:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/blob_db/blob_db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_iter.h:13:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_impl/db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/column_family.h:18:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/table_cache.h:25:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/table_reader.h:14:
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:91:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]
  GetContext() = default;
  ^
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:168:18: note: default constructor of 'GetContext' is implicitly deleted because field 'tracing_get_id_' of const-qualified type 'const uint64_t' (aka 'const unsigned long') would not be initialized
  const uint64_t tracing_get_id_;
                 ^
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/trace_replay/block_cache_tracer.cc:8:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_impl/db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/column_family.h:18:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/table_cache.h:25:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/table_reader.h:14:
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:91:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]
  GetContext() = default;
  ^
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:168:18: note: default constructor of 'GetContext' is implicitly deleted because field 'tracing_get_id_' of const-qualified type 'const uint64_t' (aka 'const unsigned long') would not be initialized
  const uint64_t tracing_get_id_;
                 ^
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/blob_db/blob_compaction_filter.cc:8:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/blob_db/blob_compaction_filter.h:13:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/blob_db/blob_db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_iter.h:13:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_impl/db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/column_family.h:18:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/table_cache.h:25:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/table_reader.h:14:
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:91:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]
  GetContext() = default;
  ^
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:168:18: note: default constructor of 'GetContext' is implicitly deleted because field 'tracing_get_id_' of const-qualified type 'const uint64_t' (aka 'const unsigned long') would not be initialized
  const uint64_t tracing_get_id_;
                 ^
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/trace_replay/trace_replay.cc:11:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_impl/db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/column_family.h:18:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/table_cache.h:25:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/table_reader.h:14:
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:91:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]
  GetContext() = default;
  ^
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:168:18: note: default constructor of 'GetContext' is implicitly deleted because field 'tracing_get_id_' of const-qualified type 'const uint64_t' (aka 'const unsigned long') would not be initialized
  const uint64_t tracing_get_id_;
                 ^
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/blob_db/blob_db_impl.cc:8:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/utilities/blob_db/blob_db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_iter.h:13:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/db_impl/db_impl.h:22:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/column_family.h:18:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/db/table_cache.h:25:
In file included from /home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/table_reader.h:14:
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:91:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]
  GetContext() = default;
  ^
/home/wapeety/Documents/<redacted>/<project-name>/.build/checkouts/rocksdb.swift/Sources/librocksdb/upstream/table/get_context.h:168:18: note: default constructor of 'GetContext' is implicitly deleted because field 'tracing_get_id_' of const-qualified type 'const uint64_t' (aka 'const unsigned long') would not be initialized
  const uint64_t tracing_get_id_;
                 ^
[1/1040] Compiling blob_db_impl.cc

I'm using swift 5.7 on Ubuntu 22.04.2

@koraykoska
Copy link
Owner

When was the last time you used it successfully? Which Swift version?

@yteepaw
Copy link
Author

yteepaw commented Jul 12, 2023

actually never :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants