build failure as of Lix cl/1881 "treewide: consistently mark overridden settings as such" #13

Closed
opened 2024-10-25 18:56:45 +00:00 by qyriad · 0 comments
Owner

nix-eval-jobs fails to build with the following error:

../src/nix-eval-jobs.cc: In lambda function:
../src/nix-eval-jobs.cc:353:29: error: no match for ‘operator=’ (operand types are ‘nix::Setting<std::__cxx11::basic_string<char> >’ and ‘const char [1]’)
  353 |         settings.builders = "";
      |                             ^~
In file included from /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libexpr/eval-settings.hh:3,
                 from ../src/nix-eval-jobs.cc:3:
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<std::__cxx11::basic_string<char> >& nix::Setting<std::__cxx11::basic_string<char> >::operator=(const nix::Setting<std::__cxx11::basic_string<char> >&)’ (deleted)
  318 | class Setting : public BaseSetting<T>
      |       ^~~~~~~
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘const char [1]’ to ‘const nix::Setting<std::__cxx11::basic_string<char> >&’
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<std::__cxx11::basic_string<char> >& nix::Setting<std::__cxx11::basic_string<char> >::operator=(nix::Setting<std::__cxx11::basic_string<char> >&&)’ (deleted)
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘const char [1]’ to ‘nix::Setting<std::__cxx11::basic_string<char> >&&’
../src/nix-eval-jobs.cc:357:37: error: no match for ‘operator=’ (operand types are ‘nix::Setting<bool>’ and ‘bool’)
  357 |         evalSettings.restrictEval = false;
      |                                     ^~~~~
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(const nix::Setting<bool>&)’ (deleted)
  318 | class Setting : public BaseSetting<T>
      |       ^~~~~~~
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘bool’ to ‘const nix::Setting<bool>&’
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(nix::Setting<bool>&&)’ (deleted)
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘bool’ to ‘nix::Setting<bool>&&’
../src/nix-eval-jobs.cc:362:37: error: no match for ‘operator=’ (operand types are ‘nix::Setting<bool>’ and ‘bool’)
  362 |             evalSettings.pureEval = false;
      |                                     ^~~~~
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(const nix::Setting<bool>&)’ (deleted)
  318 | class Setting : public BaseSetting<T>
      |       ^~~~~~~
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘bool’ to ‘const nix::Setting<bool>&’
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(nix::Setting<bool>&&)’ (deleted)
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘bool’ to ‘nix::Setting<bool>&&’
../src/nix-eval-jobs.cc:364:37: error: no match for ‘operator=’ (operand types are ‘nix::Setting<bool>’ and ‘bool’)
  364 |             evalSettings.pureEval = true;
      |                                     ^~~~
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(const nix::Setting<bool>&)’ (deleted)
  318 | class Setting : public BaseSetting<T>
      |       ^~~~~~~
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘bool’ to ‘const nix::Setting<bool>&’
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(nix::Setting<bool>&&)’ (deleted)
/nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note:   no known conversion for argument 1 from ‘bool’ to ‘nix::Setting<bool>&&’
../src/nix-eval-jobs.cc:377:38: error: ‘class nix::Setting<bool>’ has no member named ‘assign’
  377 |             loggerSettings.showTrace.assign(true);

Screenshot with color version:
Screenshot_20241025_125525.png

Bisected to cl/1881, Lix commit 4dbbd721e "treewide: consistently mark overriden settings as such".

cc @alois31

nix-eval-jobs fails to build with the following error: ``` ../src/nix-eval-jobs.cc: In lambda function: ../src/nix-eval-jobs.cc:353:29: error: no match for ‘operator=’ (operand types are ‘nix::Setting<std::__cxx11::basic_string<char> >’ and ‘const char [1]’) 353 | settings.builders = ""; | ^~ In file included from /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libexpr/eval-settings.hh:3, from ../src/nix-eval-jobs.cc:3: /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<std::__cxx11::basic_string<char> >& nix::Setting<std::__cxx11::basic_string<char> >::operator=(const nix::Setting<std::__cxx11::basic_string<char> >&)’ (deleted) 318 | class Setting : public BaseSetting<T> | ^~~~~~~ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘const char [1]’ to ‘const nix::Setting<std::__cxx11::basic_string<char> >&’ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<std::__cxx11::basic_string<char> >& nix::Setting<std::__cxx11::basic_string<char> >::operator=(nix::Setting<std::__cxx11::basic_string<char> >&&)’ (deleted) /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘const char [1]’ to ‘nix::Setting<std::__cxx11::basic_string<char> >&&’ ../src/nix-eval-jobs.cc:357:37: error: no match for ‘operator=’ (operand types are ‘nix::Setting<bool>’ and ‘bool’) 357 | evalSettings.restrictEval = false; | ^~~~~ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(const nix::Setting<bool>&)’ (deleted) 318 | class Setting : public BaseSetting<T> | ^~~~~~~ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘bool’ to ‘const nix::Setting<bool>&’ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(nix::Setting<bool>&&)’ (deleted) /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘bool’ to ‘nix::Setting<bool>&&’ ../src/nix-eval-jobs.cc:362:37: error: no match for ‘operator=’ (operand types are ‘nix::Setting<bool>’ and ‘bool’) 362 | evalSettings.pureEval = false; | ^~~~~ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(const nix::Setting<bool>&)’ (deleted) 318 | class Setting : public BaseSetting<T> | ^~~~~~~ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘bool’ to ‘const nix::Setting<bool>&’ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(nix::Setting<bool>&&)’ (deleted) /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘bool’ to ‘nix::Setting<bool>&&’ ../src/nix-eval-jobs.cc:364:37: error: no match for ‘operator=’ (operand types are ‘nix::Setting<bool>’ and ‘bool’) 364 | evalSettings.pureEval = true; | ^~~~ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(const nix::Setting<bool>&)’ (deleted) 318 | class Setting : public BaseSetting<T> | ^~~~~~~ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘bool’ to ‘const nix::Setting<bool>&’ /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: candidate: ‘nix::Setting<bool>& nix::Setting<bool>::operator=(nix::Setting<bool>&&)’ (deleted) /nix/store/rb6rfwvml36jf8fc6ksdmd9h40j6plzz-lix-2.92.0-devpre20241023_2734a9c-dev/include/lix/libutil/config.hh:318:7: note: no known conversion for argument 1 from ‘bool’ to ‘nix::Setting<bool>&&’ ../src/nix-eval-jobs.cc:377:38: error: ‘class nix::Setting<bool>’ has no member named ‘assign’ 377 | loggerSettings.showTrace.assign(true); ``` Screenshot with color version: ![Screenshot_20241025_125525.png](/attachments/d702f98d-8caa-45d3-9a71-7aa6a63ccfc9) Bisected to cl/1881, [Lix commit 4dbbd721e "treewide: consistently mark overriden settings as such"](https://git.lix.systems/lix-project/lix/commit/4dbbd721eb9db75d4968a624b8cb9e75e979a144). cc @alois31
qyriad added the
Kind/Bug
label 2024-10-25 18:56:45 +00:00
qyriad referenced this issue from a commit 2024-10-25 20:30:16 +00:00
jade closed this issue 2024-11-09 20:50:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/nix-eval-jobs#13
No description provided.