View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001542 | bareos-core | General | public | 2023-06-14 07:18 | 2023-10-24 09:24 |
Reporter | mdc | Assigned To | arogge | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86_64 | OS | Fedora | OS Version | 38 |
Product Version | 22.1.0 | ||||
Summary | 0001542: GCC13 fix looks like not complete | ||||
Description | 22.1.0 will include an fix for GCC13, but the build using it will fails with: [ 63%] Building CXX object core/src/console/CMakeFiles/console_objects.dir/auth_pam.cc.o cd /builddir/build/BUILD/bareos-Release-22.1.0/redhat-linux-build/core/src/console && ccache /usr/lib64/ccache/g++ -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I/builddir/build/BUILD/bareos-Release-22.1.0/core/s rc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat -hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit- leaf-frame-pointer -Wsuggest-override -Wformat -Werror=format-security -fdebug-prefix-map=/builddir/build/BUILD/bareos-Release-22.1.0/core=. -fmacro-prefix-map=/builddir/build/BUILD/bareos-Release-22.1.0/core=. -Wno-invalid-offsetof -Werror -Wall -Wextra -std=gnu++17 -MD -MT core/src/console/CMakeFiles/console_objects.dir/auth_pam.cc.o -MF CMakeFiles/console_objects.dir/auth_pam.cc.o.d -o CMakeFiles/console_objects.dir/auth_pam.cc.o -c /builddir/build/BUILD/bareos-Release-22.1.0/core/src/console/auth_pam.cc In file included from /usr/include/features.h:491, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdint.h:26, from /usr/lib/gcc/x86_64-redhat-linux/13/include/stdint.h:9, from /builddir/build/BUILD/bareos-Release-22.1.0/core/src/include/bareos.h:97, from /builddir/build/BUILD/bareos-Release-22.1.0/core/src/findlib/find_one.cc:32: In function 'readlink', inlined from 'process_symlink(JobControlRecord*, FindFilesPacket*, int (*)(JobControlRecord*, FindFilesPacket*, bool), char*, bool)' at /builddir/build/BUILD/bareos-Release-22.1.0/core/src/findlib/find_one.cc:521:18: /usr/include/bits/unistd.h:119:10: error: '*readlink' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ /usr/include/bits/unistd.h: In function 'process_symlink(JobControlRecord*, FindFilesPacket*, int (*)(JobControlRecord*, FindFilesPacket*, bool), char*, bool)': /usr/include/bits/unistd.h:104:16: note: in a call to function '*readlink' declared with attribute 'access (write_only, 2, 3)' 104 | extern ssize_t __REDIRECT_NTH (__readlink_alias, | ^~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors gmake[2]: *** [core/src/findlib/CMakeFiles/bareosfind.dir/build.make:163: core/src/findlib/CMakeFiles/bareosfind.dir/find_one.cc.o] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/bareos-Release-22.1.0/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:3983: core/src/findlib/CMakeFiles/bareosfind.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... [ 63%] Building CXX object core/src/dird/CMakeFiles/dird_objects.dir/backup.cc.o | ||||
Additional Information | gcc version: 13.1.1 It looks like the problem of 0001535 | ||||
Tags | No tags attached. | ||||
I just tried to compile on Fedora 38 and it worked. Could you provide your CMake-commandline and the effective CFLAGS/CXXFLAGS/LDFLAGS so I can reproduce your build-failure? |
|
Here the complete build log. Fedora will set this compiler options by calling the cmake macro: + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS:BOOL=ON -DUSE_SYSTEM_CLI11:BOOL=ON -DUSE_SYSTEM_FMT:BOOL=ON -DUSE_SYSTEM_XXHASH:BOOL=ON -Dbatch-insert=yes -Ddynamic-cats-backends=yes -Ddynamic-storage-backends=yes -Dscsi-crypto=yes -Dlmdb=yes -Dndmp=yes -Dbuild_ndmjob=yes -Dacl=yes -Dlockmgr=yes -Dtraymonitor=yes -Dpostgresql=yes -Ddir-user=bareos -Ddir-group=bareos -Dsd-user=bareos -Dsd-group=bareos -Dfd-user=root -Dfd-group=bareos -Dscriptdir=/usr/share/bareos/scripts -Dbindir=/usr/bin -Dsbindir=/usr/bin -Ddir-password=XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX -Dfd-password=XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX -Dsd-password=XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX -Dmon-dir-password=XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX -Dmon-fd-password=XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX -Dmon-sd-password=XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX -Dopenssl=yes -Dbasename=XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX -Dhostname=XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX -Dsystemd=yes -Dvddk_incl=/usr/include/VMware-vix-disklib -Dvddk_lib=/usr/lib64/VMware-vix-disklib I hope this will help. |
|
I finally found the issue and was able to fix it. Should build fine now. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-06-14 07:18 | mdc | New Issue | |
2023-06-15 10:49 | arogge | Assigned To | => arogge |
2023-06-15 10:49 | arogge | Status | new => feedback |
2023-06-15 10:49 | arogge | Note Added: 0005073 | |
2023-06-15 12:24 | mdc | Note Added: 0005074 | |
2023-06-15 12:24 | mdc | File Added: build.log | |
2023-06-15 12:24 | mdc | Status | feedback => assigned |
2023-10-24 09:24 | arogge | Status | assigned => resolved |
2023-10-24 09:24 | arogge | Resolution | open => fixed |
2023-10-24 09:24 | arogge | Note Added: 0005475 | |
2023-10-24 09:24 | arogge | Status | resolved => closed |