Skip to content

build fails with gcc-14 #1507

@linuxmaniac

Description

@linuxmaniac

While trying to get srsran_4g into Debian

It seems build fails with gcc-14. Related: #1468

make[3]: Entering directory '/build/reproducible-path/srsran4g-23.11/obj-x86_64-linux-gnu'
[ 18%] Building CXX object srsue/src/stack/CMakeFiles/srsue_stack.dir/ue_stack_lte.cc.o
cd /build/reproducible-path/srsran4g-23.11/obj-x86_64-linux-gnu/srsue/src/stack && /usr/bin/c++ -DASSERTS_ENABLED -DENABLE_TIMEPROF -DHAVE_PCSC -I/usr/include/PCSC -I/build/reproducible-path/srsran4g-23.11/obj-x86_64-linux-gnu/lib/include -I/build/reproducible-path/srsran4g-23.11/lib/include -I/build/reproducible-path/srsran4g-23.11 -g -O2 -ffile-prefix-map=/build/reproducible-path/srsran4g-23.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wno-comment -Wno-reorder -Wno-unused-variable -Wtype-limits -std=c++14 -fno-strict-aliasing -Wno-unused-but-set-variable -march=native -mfpmath=sse -mavx2 -DLV_HAVE_AVX2 -DLV_HAVE_AVX -DLV_HAVE_SSE -fvisibility=hidden -O3 -fno-trapping-math -fno-math-errno -DBUILD_TYPE_RELEASE -mavx512f -mavx512cd -mavx512bw -mavx512dq -DLV_HAVE_AVX512 -Werror -Wno-maybe-uninitialized -fPIC -MD -MT srsue/src/stack/CMakeFiles/srsue_stack.dir/ue_stack_lte.cc.o -MF CMakeFiles/srsue_stack.dir/ue_stack_lte.cc.o.d -o CMakeFiles/srsue_stack.dir/ue_stack_lte.cc.o -c /build/reproducible-path/srsran4g-23.11/srsue/src/stack/ue_stack_lte.cc
In file included from /build/reproducible-path/srsran4g-23.11/srsue/hdr/phy/phy_common.h:27,
                 from /build/reproducible-path/srsran4g-23.11/srsue/hdr/phy/lte/cc_worker.h:27,
                 from /build/reproducible-path/srsran4g-23.11/srsue/src/phy/lte/cc_worker.cc:25:
/build/reproducible-path/srsran4g-23.11/lib/include/srsran/common/block_queue.h:56:30: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
   56 |   explicit block_queue<myobj>(int capacity_ = -1)
      |                              ^
/build/reproducible-path/srsran4g-23.11/lib/include/srsran/common/block_queue.h:56:30: note: remove the ‘< >’
In file included from /build/reproducible-path/srsran4g-23.11/lib/include/srsran/mac/pdu_queue.h:26,
                 from /build/reproducible-path/srsran4g-23.11/srsue/hdr/stack/mac/demux.h:29,
                 from /build/reproducible-path/srsran4g-23.11/srsue/hdr/stack/mac/mac.h:25,
                 from /build/reproducible-path/srsran4g-23.11/srsue/hdr/stack/ue_stack_lte.h:29,
                 from /build/reproducible-path/srsran4g-23.11/srsue/src/stack/ue_stack_lte.cc:22:
/build/reproducible-path/srsran4g-23.11/lib/include/srsran/common/block_queue.h:56:30: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
   56 |   explicit block_queue<myobj>(int capacity_ = -1)
      |                              ^
/build/reproducible-path/srsran4g-23.11/lib/include/srsran/common/block_queue.h:56:30: note: remove the ‘< >’
cc1plus: all warnings being treated as errors
make[3]: *** [srsue/src/phy/CMakeFiles/srsue_phy.dir/build.make:82: srsue/src/phy/CMakeFiles/srsue_phy.dir/lte/cc_worker.cc.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions