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
Unable to build from source #2770
Comments
same error also seen when trying to build timscaledb 2.0.0 with postgres 12.5 on kali 2019.4 (x86_64), with GCC version 9.3.0 |
maybe it will be better to fix this?
…On 22.12.2020 09:30, Ruslan Fomkin wrote:
@zdm <https://github.com/zdm> @jgoff <https://github.com/jgoff> Can you
provide |-DWARNINGS_AS_ERRORS=OFF| to the bootstrap? It should solve
treating this warning as error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2770 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH2MSDBMXZEEB5R2ZO2YJTSWBDJ5ANCNFSM4VFEXRWA>.
|
Yes. |
For me it fails with:
It is sort of strange to have defaults that most likely would fail. Another problem is that due to the c90397f the bootstrap script fails on ubuntu 18.04 because there is only cmake 3.10 available, but perfectly works after manually changing requirement in the CMakeLists.txt. |
Thank you for confirmation. We will look to remove the need for this flag in future release. |
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes #2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes timescale#2770
In contrast to the default for CMake files, `Release` is used as the default in `CMakeFiles.txt` which causes the `bootstrap` script to do a release build with development flags, in particular `-Werror`. Since warnings are triggered in a release build, this cause the build to fail while a debug build works fine. This commit fixes this by removing the `-Werror` flag (by setting `WARNINGS_AS_ERRORS` to `OFF`) on anything that is not a debug build and also disable the warnings that (currently) trigger the warnings in the release build. The commit also changes some of the GitHub workflows to run without `WARNINGS_AS_ERRORS` since it should always work without this option regardless of build type (on release build this should be disabled, on debug builds this should be enabled). But it is set to `ON` for the full release and debug builds to ensure that we do not generate any warnings, which will capture new surfacing warnings. Fixes #2770
To allow us to use specific glibc 2.33+ features, we need to find a way to run glibc 2.33. Running multiple glibc versions inside the same container is something we'd like to avoid, we've seen multiple glibc related bugs in our lifetime, adding multiple glibc versions in the mix would make debugging harder. Debian (and rust:debian) has served us well, however even Debian's latest release (bullseye, August 2021) cannot give us glibc 2.33. Ubuntu however does give us glibc 2.33 - as Ubuntu is based upon Debian the changes required are not that big for this Docker Image. Most of the tools we use will be the same across the board, as most of our tools our installed using external repositories. Some significant changes to get here are required though: * install rust using rustup-init There was some (valid) criticism[1], around using rust as a base for the image, instead of Debian. As Rust does not offer an Ubuntu variant, we are no longer using a rust-flavored Docker Image as a base, however, we do copy the exact rust installation sequence - including comparing hashes for sanity for installing Rust. * deprecate `apt-key` usage Ubuntu 21.04 seems to still allow apt-key, however, in the future apt-key usage will be deprecated. As the tweaking to get this fixed for Ubuntu 21.10 was already done, I decided it best to keep it in here. * remove PostGIS 2.5 support There is no packaged PostGIS 2.5 available for Ubuntu 21.04. We however have seen no evidence of PostGIS 2.5 usage with our Docker Image, we do see evidence of usage of PostGIS 3, which is the default. Dropping support for 2.5 therefore does not seem to be such a major issue * disable errors as warnings These build errors are seen on building older TimescaleDB versions against a recent glibc. For more details, see[2] 1: #140 (comment) 2: timescale/timescaledb#2770 :# modified: .github/workflows/build_image.yaml
To allow us to use specific glibc 2.33+ features, we need to find a way to run glibc 2.33. Running multiple glibc versions inside the same container is something we'd like to avoid, we've seen multiple glibc related bugs in our lifetime, adding multiple glibc versions in the mix would make debugging harder. Debian (and rust:debian) has served us well, however even Debian's latest release (bullseye, August 2021) cannot give us glibc 2.33. Ubuntu however does give us glibc 2.33 - as Ubuntu is based upon Debian the changes required are not that big for this Docker Image. Most of the tools we use will be the same across the board, as most of our tools our installed using external repositories. Some significant changes to get here are required though: * install rust using rustup-init There was some (valid) criticism[1], around using rust as a base for the image, instead of Debian. As Rust does not offer an Ubuntu variant, we are no longer using a rust-flavored Docker Image as a base, however, we do copy the exact rust installation sequence - including comparing hashes for sanity for installing Rust. * deprecate `apt-key` usage Ubuntu 21.04 seems to still allow apt-key, however, in the future apt-key usage will be deprecated. As the tweaking to get this fixed for Ubuntu 21.10 was already done, I decided it best to keep it in here. * remove PostGIS 2.5 support There is no packaged PostGIS 2.5 available for Ubuntu 21.04. We however have seen no evidence of PostGIS 2.5 usage with our Docker Image, we do see evidence of usage of PostGIS 3, which is the default. Dropping support for 2.5 therefore does not seem to be such a major issue * disable errors as warnings These build errors are seen on building older TimescaleDB versions against a recent glibc. For more details, see[2] 1: #140 (comment) 2: timescale/timescaledb#2770
To allow us to use specific glibc 2.33+ features, we need to find a way to run glibc 2.33. Running multiple glibc versions inside the same container is something we'd like to avoid, we've seen multiple glibc related bugs in our lifetime, adding multiple glibc versions in the mix would make debugging harder. Debian (and rust:debian) has served us well, however even Debian's latest release (bullseye, August 2021) cannot give us glibc 2.33. Ubuntu however does give us glibc 2.33 - as Ubuntu is based upon Debian the changes required are not that big for this Docker Image. Most of the tools we use will be the same across the board, as most of our tools our installed using external repositories. Some significant changes to get here are required though: * install rust using rustup-init There was some (valid) criticism[1], around using rust as a base for the image, instead of Debian. As Rust does not offer an Ubuntu variant, we are no longer using a rust-flavored Docker Image as a base, however, we do copy the exact rust installation sequence - including comparing hashes for sanity for installing Rust. * deprecate `apt-key` usage Ubuntu 21.04 seems to still allow apt-key, however, in the future apt-key usage will be deprecated. As the tweaking to get this fixed for Ubuntu 21.10 was already done, I decided it best to keep it in here. * remove PostGIS 2.5 support There is no packaged PostGIS 2.5 available for Ubuntu 21.04. We however have seen no evidence of PostGIS 2.5 usage with our Docker Image, we do see evidence of usage of PostGIS 3, which is the default. Dropping support for 2.5 therefore does not seem to be such a major issue * disable errors as warnings These build errors are seen on building older TimescaleDB versions against a recent glibc. For more details, see[2] 1: #140 (comment) 2: timescale/timescaledb#2770
To allow us to use specific glibc 2.33+ features, we need to find a way to run glibc 2.33. Running multiple glibc versions inside the same container is something we'd like to avoid, we've seen multiple glibc related bugs in our lifetime, adding multiple glibc versions in the mix would make debugging harder. Debian (and rust:debian) has served us well, however even Debian's latest release (bullseye, August 2021) cannot give us glibc 2.33. Ubuntu however does give us glibc 2.33 - as Ubuntu is based upon Debian the changes required are not that big for this Docker Image. Most of the tools we use will be the same across the board, as most of our tools our installed using external repositories. Some significant changes to get here are required though: * install rust using rustup-init There was some (valid) criticism[1], around using rust as a base for the image, instead of Debian. As Rust does not offer an Ubuntu variant, we are no longer using a rust-flavored Docker Image as a base, however, we do copy the exact rust installation sequence - including comparing hashes for sanity for installing Rust. * deprecate `apt-key` usage Ubuntu 21.04 seems to still allow apt-key, however, in the future apt-key usage will be deprecated. As the tweaking to get this fixed for Ubuntu 21.10 was already done, I decided it best to keep it in here. * remove PostGIS 2.5 support There is no packaged PostGIS 2.5 available for Ubuntu 21.04. We however have seen no evidence of PostGIS 2.5 usage with our Docker Image, we do see evidence of usage of PostGIS 3, which is the default. Dropping support for 2.5 therefore does not seem to be such a major issue * disable errors as warnings These build errors are seen on building older TimescaleDB versions against a recent glibc. For more details, see[2] 1: #140 (comment) 2: timescale/timescaledb#2770
To allow us to use specific glibc 2.33+ features, we need to find a way to run glibc 2.33. Running multiple glibc versions inside the same container is something we'd like to avoid, we've seen multiple glibc related bugs in our lifetime, adding multiple glibc versions in the mix would make debugging harder. Debian (and rust:debian) has served us well, however even Debian's latest release (bullseye, August 2021) cannot give us glibc 2.33. Ubuntu however does give us glibc 2.33 - as Ubuntu is based upon Debian the changes required are not that big for this Docker Image. Most of the tools we use will be the same across the board, as most of our tools our installed using external repositories. Some significant changes to get here are required though: * install rust using rustup-init There was some (valid) criticism[1], around using rust as a base for the image, instead of Debian. As Rust does not offer an Ubuntu variant, we are no longer using a rust-flavored Docker Image as a base, however, we do copy the exact rust installation sequence - including comparing hashes for sanity for installing Rust. * deprecate `apt-key` usage Ubuntu 21.04 seems to still allow apt-key, however, in the future apt-key usage will be deprecated. As the tweaking to get this fixed for Ubuntu 21.10 was already done, I decided it best to keep it in here. * remove PostGIS 2.5 support There is no packaged PostGIS 2.5 available for Ubuntu 21.04. We however have seen no evidence of PostGIS 2.5 usage with our Docker Image, we do see evidence of usage of PostGIS 3, which is the default. Dropping support for 2.5 therefore does not seem to be such a major issue * disable errors as warnings These build errors are seen on building older TimescaleDB versions against a recent glibc. For more details, see[2] 1: #140 (comment) 2: timescale/timescaledb#2770
To allow us to use specific glibc 2.33+ features, we need to find a way to run glibc 2.33. Running multiple glibc versions inside the same container is something we'd like to avoid, we've seen multiple glibc related bugs in our lifetime, adding multiple glibc versions in the mix would make debugging harder. Debian (and rust:debian) has served us well, however even Debian's latest release (bullseye, August 2021) cannot give us glibc 2.33. Ubuntu however does give us glibc 2.33 - as Ubuntu is based upon Debian the changes required are not that big for this Docker Image. Most of the tools we use will be the same across the board, as most of our tools our installed using external repositories. Some significant changes to get here are required though: * install rust using rustup-init There was some (valid) criticism[1], around using rust as a base for the image, instead of Debian. As Rust does not offer an Ubuntu variant, we are no longer using a rust-flavored Docker Image as a base, however, we do copy the exact rust installation sequence - including comparing hashes for sanity for installing Rust. * deprecate `apt-key` usage Ubuntu 21.04 seems to still allow apt-key, however, in the future apt-key usage will be deprecated. As the tweaking to get this fixed for Ubuntu 21.10 was already done, I decided it best to keep it in here. * remove PostGIS 2.5 support There is no packaged PostGIS 2.5 available for Ubuntu 21.04. We however have seen no evidence of PostGIS 2.5 usage with our Docker Image, we do see evidence of usage of PostGIS 3, which is the default. Dropping support for 2.5 therefore does not seem to be such a major issue * disable errors as warnings These build errors are seen on building older TimescaleDB versions against a recent glibc. For more details, see[2] 1: #140 (comment) 2: timescale/timescaledb#2770
To allow us to use specific glibc 2.33+ features, we need to find a way to run glibc 2.33. Running multiple glibc versions inside the same container is something we'd like to avoid, we've seen multiple glibc related bugs in our lifetime, adding multiple glibc versions in the mix would make debugging harder. Debian (and rust:debian) has served us well, however even Debian's latest release (bullseye, August 2021) cannot give us glibc 2.33. Ubuntu however does give us glibc 2.33 - as Ubuntu is based upon Debian the changes required are not that big for this Docker Image. Most of the tools we use will be the same across the board, as most of our tools our installed using external repositories. Some significant changes to get here are required though: * install rust using rustup-init There was some (valid) criticism[1], around using rust as a base for the image, instead of Debian. As Rust does not offer an Ubuntu variant, we are no longer using a rust-flavored Docker Image as a base, however, we do copy the exact rust installation sequence - including comparing hashes for sanity for installing Rust. * deprecate `apt-key` usage Ubuntu 21.04 seems to still allow apt-key, however, in the future apt-key usage will be deprecated. As the tweaking to get this fixed for Ubuntu 21.10 was already done, I decided it best to keep it in here. * remove PostGIS 2.5 support There is no packaged PostGIS 2.5 available for Ubuntu 21.04. We however have seen no evidence of PostGIS 2.5 usage with our Docker Image, we do see evidence of usage of PostGIS 3, which is the default. Dropping support for 2.5 therefore does not seem to be such a major issue * disable errors as warnings These build errors are seen on building older TimescaleDB versions against a recent glibc. For more details, see[2] 1: #140 (comment) 2: timescale/timescaledb#2770
Relevant system information:
Describe the bug
I get the error below when trying to build it from source.
The text was updated successfully, but these errors were encountered: