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

[BUG] bootstrap fails on a recent linux distribution #147

Open
dvd0101 opened this issue Oct 3, 2022 · 0 comments
Open

[BUG] bootstrap fails on a recent linux distribution #147

dvd0101 opened this issue Oct 3, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dvd0101
Copy link

dvd0101 commented Oct 3, 2022

Describe the bug

dagon build.test fails on Ubuntu 22.04 due to this bug: catchorg/Catch2#2178

It looks like that [email protected] is hardcoded (?) in the prebuilt bpt that is downloaded by the bootstrap task.

Steps to Reproduce

Note the following command line is the one run by the build__init_ci_repo

  1. ./_prebuilt/bpt compile-file --pkg-db-path=${BPT}/_prebuilt/ci-catalog.db --pkg-cache-dir=${BPT}/_prebuilt/ci-repo compile-file -t ${BPT}/tools/gcc-10-rel.jsonc
./_prebuilt/bpt compile-file --pkg-db-path=/home/dvd/Projects/personal/bpt/_prebuilt/ci-catalog.db --pkg-cache-dir=/home/dvd/Projects/personal/bpt/_prebuilt/ci-repo compile-file -t /home/dvd/Projects/personal/bpt/tools/gcc-10-rel.jsonc 
[info ] Compiling Catch2 test driver (This will only happen once)...
[info ] [Catch2] Compile: catch2/catch-main.cpp
[info ] [Catch2] Compile: catch2/catch-main.cpp             -    4232ms [1/1]
[error] Compilation failed: /home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/catch-main.cpp
[error] Subcommand FAILED [Exited 1]: g++-10 -O2 -fPIC -pthread -fdiagnostics-color -D CATCH_CONFIG_MAIN -MD -MF /home/dvd/Projects/personal/bpt/_build/_test-driver/v1/catch2/catch-main.cpp.o.d -MQ /home/dvd/Projects/personal/bpt/_build/_test-driver/v1/catch2/catch-main.cpp.o -c /home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/catch-main.cpp -o/home/dvd/Projects/personal/bpt/_build/_test-driver/v1/catch2/catch-main.cpp.o -fcoroutines -std=c++20
In file included from /usr/include/signal.h:328,
                 from /home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/./catch.hpp:8034,
                 from /home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/catch-main.cpp:1:
/home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/./catch.hpp:10822:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
10822 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
      |                                                          ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/./catch.hpp:8034,
                 from /home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/catch-main.cpp:1:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
  640 | extern long int sysconf (int __name) __THROW;
      |                 ^~~~~~~
In file included from /home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/catch-main.cpp:1:
/home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/./catch.hpp:10881:45: error: size of array ‘altStackMem’ is not an integral constant-expression
10881 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
      |                                             ^~~~~~~~~~~~

[error] Compilation failed [/home/dvd/Projects/personal/bpt/_build/_catch-2.10.2/catch2/catch-main.cpp]
[error] Source file [compile-file] is not compiled by this project
[error] One or more requested files is not part of this project (See above)
[error] 
Source compilation failed. Refer to the compiler output.

[error] Refer: https://vector-of-bool.github.io/docs/dds/err/compile-failure.html
@dvd0101 dvd0101 added the bug Something isn't working label Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant