From 5648612327384e6d4fd1326e14c37de766530690 Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi <you@example.com> Date: Fri, 27 Dec 2024 19:12:26 +0100 Subject: [PATCH 1/6] Try the newest gcc --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1c84347..3aee9334 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,25 @@ stages: - build - LCG ######################################################################## +newest-gcc: + only: + variables: + - $CI_SERVER_HOST=="gitlab.cern.ch" + image: gcc:latest + tags: + - k8s-cvmfs + stage: LCG + script: + - | + apt-get install -y valgrind python3 python3-dev doxygen protobuf-compiler libprotobuf-dev + mkdir BUILD + cd BUILD + set -x + cmake .. -DCMAKE_CXX_FLAGS="-Wpedantic -Wall -Wextra -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto" -DHEPMC3_TEST_VALGRIND=ON -DHEPMC3_ENABLE_PROTOBUFIO:BOOL=ON -DHEPMC3_ENABLE_ROOTIO:BOOL=OFF -DHEPMC3_BUILD_EXAMPLES:BOOL=ON -DHEPMC3_ENABLE_TEST:BOOL=ON -DHEPMC3_TEST_VALGRIND:BOOL=ON -DHEPMC3_ENABLE_PYTHON:BOOL=ON -DHEPMC3_INSTALL_INTERFACES:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DHEPMC3_BUILD_DOCS:BOOL=ON + set +x + make -j $(nproc) + make -j $(nproc) install + ctest -j 5 --output-on-failure LCG_x86_64-alma9: only: -- GitLab From e7a1fe62e44bce8d8c4af2babafc7de7e83ac705 Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi <you@example.com> Date: Fri, 27 Dec 2024 19:12:54 +0100 Subject: [PATCH 2/6] Try the newest gcc --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3aee9334..386aa870 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ variables: STANDARDFLAGS: -DHEPMC3_TEST_VALGRIND=ON -DHEPMC3_ENABLE_PROTOBUFIO:BOOL=ON -DHEPMC3_ENABLE_ROOTIO:BOOL=ON -DHEPMC3_BUILD_EXAMPLES:BOOL=ON -DHEPMC3_ENABLE_TEST:BOOL=ON -DHEPMC3_TEST_VALGRIND:BOOL=ON -DHEPMC3_ENABLE_PYTHON:BOOL=ON -DHEPMC3_INSTALL_INTERFACES:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DHEPMC3_BUILD_DOCS:BOOL=ON #-DCMAKE_CXX_FLAGS="-Wpedantic -Wall -Wextra" stages: + - gcc - check_if_dockerfile_updated - build_docker_image - build @@ -15,7 +16,7 @@ newest-gcc: image: gcc:latest tags: - k8s-cvmfs - stage: LCG + stage: gcc script: - | apt-get install -y valgrind python3 python3-dev doxygen protobuf-compiler libprotobuf-dev -- GitLab From bd4b2ea8d049b1a5996a6aee4a9ca91747c4cfad Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi <you@example.com> Date: Fri, 27 Dec 2024 19:14:56 +0100 Subject: [PATCH 3/6] Try the newest gcc --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 386aa870..772aa663 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,7 @@ newest-gcc: stage: gcc script: - | + apt -y update apt-get install -y valgrind python3 python3-dev doxygen protobuf-compiler libprotobuf-dev mkdir BUILD cd BUILD -- GitLab From 0f20431a3b7014a6e5171c3bcdefaa274cbe5ead Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi <you@example.com> Date: Fri, 27 Dec 2024 19:18:12 +0100 Subject: [PATCH 4/6] Try the newest gcc --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 772aa663..6e56b438 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,7 +20,7 @@ newest-gcc: script: - | apt -y update - apt-get install -y valgrind python3 python3-dev doxygen protobuf-compiler libprotobuf-dev + apt-get install -y valgrind python3 python3-dev doxygen protobuf-compiler libprotobuf-dev cmake mkdir BUILD cd BUILD set -x -- GitLab From 2d5e3243372b769b6a53bd33007d3cbe4c0e91eb Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi <you@example.com> Date: Fri, 27 Dec 2024 19:24:12 +0100 Subject: [PATCH 5/6] Try the newest gcc --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e56b438..4b70fd4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,11 +3,9 @@ variables: STANDARDFLAGS: -DHEPMC3_TEST_VALGRIND=ON -DHEPMC3_ENABLE_PROTOBUFIO:BOOL=ON -DHEPMC3_ENABLE_ROOTIO:BOOL=ON -DHEPMC3_BUILD_EXAMPLES:BOOL=ON -DHEPMC3_ENABLE_TEST:BOOL=ON -DHEPMC3_TEST_VALGRIND:BOOL=ON -DHEPMC3_ENABLE_PYTHON:BOOL=ON -DHEPMC3_INSTALL_INTERFACES:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DHEPMC3_BUILD_DOCS:BOOL=ON #-DCMAKE_CXX_FLAGS="-Wpedantic -Wall -Wextra" stages: - - gcc - check_if_dockerfile_updated - build_docker_image - build - - LCG ######################################################################## newest-gcc: only: @@ -16,7 +14,8 @@ newest-gcc: image: gcc:latest tags: - k8s-cvmfs - stage: gcc + stage: build + when: manual script: - | apt -y update @@ -24,7 +23,7 @@ newest-gcc: mkdir BUILD cd BUILD set -x - cmake .. -DCMAKE_CXX_FLAGS="-Wpedantic -Wall -Wextra -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto" -DHEPMC3_TEST_VALGRIND=ON -DHEPMC3_ENABLE_PROTOBUFIO:BOOL=ON -DHEPMC3_ENABLE_ROOTIO:BOOL=OFF -DHEPMC3_BUILD_EXAMPLES:BOOL=ON -DHEPMC3_ENABLE_TEST:BOOL=ON -DHEPMC3_TEST_VALGRIND:BOOL=ON -DHEPMC3_ENABLE_PYTHON:BOOL=ON -DHEPMC3_INSTALL_INTERFACES:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DHEPMC3_BUILD_DOCS:BOOL=ON + cmake .. -DCMAKE_CXX_FLAGS="-Wpedantic -Wall -Wextra -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto" -DHEPMC3_TEST_VALGRIND=ON -DHEPMC3_ENABLE_PROTOBUFIO:BOOL=ON -DHEPMC3_ENABLE_ROOTIO:BOOL=OFF -DHEPMC3_BUILD_EXAMPLES:BOOL=ON -DHEPMC3_ENABLE_TEST:BOOL=ON -DHEPMC3_TEST_VALGRIND:BOOL=ON -DHEPMC3_ENABLE_PYTHON:BOOL=ON -DHEPMC3_INSTALL_INTERFACES:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DHEPMC3_BUILD_DOCS:BOOL=OFF set +x make -j $(nproc) make -j $(nproc) install @@ -37,7 +36,7 @@ LCG_x86_64-alma9: image: gitlab-registry.cern.ch/sft/docker/alma9-core:latest tags: - k8s-cvmfs - stage: LCG + stage: build script: - | export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase -- GitLab From a15d75336f86634117ad5c8d7bfa08c636e07137 Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi <you@example.com> Date: Fri, 27 Dec 2024 19:47:45 +0100 Subject: [PATCH 6/6] Try the newest gcc --- .gitlab-ci.yml | 10 ++++++---- CMakeLists.txt | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4b70fd4f..2d4ca660 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,19 +7,21 @@ stages: - build_docker_image - build ######################################################################## -newest-gcc: +Fedora40-GNU-latest: only: variables: - $CI_SERVER_HOST=="gitlab.cern.ch" - image: gcc:latest + image: gitlab-registry.cern.ch/hepmc/hepmc3:Fedora_40 tags: - k8s-cvmfs stage: build when: manual script: - | - apt -y update - apt-get install -y valgrind python3 python3-dev doxygen protobuf-compiler libprotobuf-dev cmake + dnf copr -y enable -y jwakely/gcc-latest + dnf install -y gcc-latest + export PATH=/opt/gcc-latest/bin:$PATH + export LD_LIBRARY_PATH=/opt/gcc-latest/lib:/opt/gcc-latest/lib64:$LD_LIBRARY_PATH mkdir BUILD cd BUILD set -x diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b54eaaf..6259ea79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,8 +185,8 @@ set(PGI_CXX_FLAGS_TO_CHECK "-Wc,--pending_instantiations=0;-noswitcherror;--diag set(NVHPC_CXX_FLAGS_TO_CHECK "-Wc,--pending_instantiations=0;-noswitcherror;--diag_suppress=code_is_unreachable;--diag_suppress=offset_in_non_POD_nonstandard;--diag_suppress=set_but_not_used") set(Intel_CXX_FLAGS_TO_CHECK "-diag-disable=2196") set(IntelLLVM_CXX_FLAGS_TO_CHECK "-diag-disable=2196;-Wno-unused-command-line-argument") -set(GNU_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations") -set(Clang_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations") +set(GNU_CXX_FLAGS_TO_CHECK "-Wno-unused-parameter;-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations") +set(Clang_CXX_FLAGS_TO_CHECK "-Wno-unused-parameter;-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations") set(AppleClang_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations") set(XL_CXX_FLAGS_TO_CHECK "-qsuppress=1500-030") foreach(fl ${${CMAKE_CXX_COMPILER_ID}_CXX_FLAGS_TO_CHECK}) -- GitLab