/usr/include/x86_64-linux-gnu/sys/socket.h:306:12: note: candidate function not viable: no known conversion from 'size_socket *' (aka 'int *') to 'socklen_t *__restrict' (aka 'unsigned int *__restrict') for 3rd argument
306 | extern int accept (int __fd, __SOCKADDR_ARG __addr,
| ^
307 | socklen_t *__restrict __addr_len);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[66/1509] Building CXX object plugin/handler_socket/CMakeFiles/hsclient.dir/libhsclient/hstcpcli.cpp.o
ninja: build stopped: subcommand failed.
Attachments
Issue Links
relates to
MDBF-793Retire MSAN clang-15 builder, upgrade to clang-19
/source/unittest/mysys/my_atomic-t.c:30:5: error: call to undeclared function 'my_atomic_add32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
30 | my_atomic_add32(&bad, x);
| ^
/source/unittest/mysys/my_atomic-t.c:45:5: error: call to undeclared function 'my_atomic_add64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
45 | my_atomic_add64(&a64, x);
buildbot@2f11790aa1e1:/build$ grep -A 30 "HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC" ./CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC failed with the following output:
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_memset'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_retval_origin_tls'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_unpoison'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_param_origin_tls'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_memcpy'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_retval_tls'
Daniel Black
added a comment - Invalid.
Was a consequence of MDEV-36156 attempts to correct -fsanitizer=memory for stdc++ detection but failed in detection of sizes etc like this,
And libatomics
-- Performing Test HAVE_GCC_C11_ATOMICS_WITHOUT_LIBATOMIC
-- Performing Test HAVE_GCC_C11_ATOMICS_WITHOUT_LIBATOMIC - Failed
-- Performing Test HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC
-- Performing Test HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC - Failed
...
FAILED: unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o
/usr/bin/clang -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/source/wsrep-lib/include -I/source/wsrep-lib/wsrep-API/v26 -I/build/include -I/source/include/providers -I/source/include -I/source/unittest/mytap -I/source/zlib -I/build/zlib -O2 -g -DNDEBUG -fsanitize=memory -fsanitize-memory-track-origins -U_FORTIFY_SOURCE -fno-omit-frame-pointer -DDBUG_OFF -Wall -Wdeclaration-after-statement -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Winconsistent-missing-override -Wmissing-braces -Wno-format-truncation -Wno-init-self -Wno-null-conversion -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -Wwrite-strings -Wcast-function-type-strict -DHAVE_OPENSSL -DOPENSSL_API_COMPAT=0x10100000L -std=gnu99 -MD -MT unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o -MF unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o.d -o unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o -c /source/unittest/mysys/my_atomic-t.c
/source/unittest/mysys/my_atomic-t.c:30:5: error: call to undeclared function 'my_atomic_add32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
30 | my_atomic_add32(&bad, x);
| ^
/source/unittest/mysys/my_atomic-t.c:45:5: error: call to undeclared function 'my_atomic_add64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
45 | my_atomic_add64(&a64, x);
buildbot@2f11790aa1e1:/build$ grep -A 30 "HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC" ./CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC failed with the following output:
Change Dir: /build/CMakeFiles/CMakeScratch/TryCompile-JXKj3i
Run Build Command(s):/usr/bin/ninja cmTC_e9341 && [1/2] Building CXX object CMakeFiles/cmTC_e9341.dir/src.cxx.o
[2/2] Linking CXX executable cmTC_e9341
FAILED: cmTC_e9341
: && /usr/bin/clang++ -stdlib=libc++ -L/msan-libs -Wl,-rpath=/msan-libs CMakeFiles/cmTC_e9341.dir/src.cxx.o -o cmTC_e9341 -lm -lcrypt -ldl -latomic && :
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_memset'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_retval_origin_tls'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_unpoison'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_param_origin_tls'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_memcpy'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_retval_tls'
People
Unassigned
Daniel Black
Votes:
0Vote for this issue
Watchers:
1Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1009.3999996185303,"ttfb":284.79999923706055,"pageVisibility":"visible","entityId":132982,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ddb63054-7421-43d4-a9b8-baca6955e085","navigationType":0,"readyForUser":1105.1999998092651,"redirectCount":0,"resourceLoadedEnd":1214.6999998092651,"resourceLoadedStart":290.5,"resourceTiming":[{"duration":247.79999923706055,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":290.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":538.2999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":247.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":290.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":538.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":256.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":291,"connectEnd":291,"connectStart":291,"domainLookupEnd":291,"domainLookupStart":291,"fetchStart":291,"redirectEnd":0,"redirectStart":0,"requestStart":291,"responseEnd":547.8999996185303,"responseStart":547.8999996185303,"secureConnectionStart":291},{"duration":300.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":291.19999980926514,"connectEnd":291.19999980926514,"connectStart":291.19999980926514,"domainLookupEnd":291.19999980926514,"domainLookupStart":291.19999980926514,"fetchStart":291.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":291.19999980926514,"responseEnd":592,"responseStart":592,"secureConnectionStart":291.19999980926514},{"duration":304.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":291.3999996185303,"connectEnd":291.3999996185303,"connectStart":291.3999996185303,"domainLookupEnd":291.3999996185303,"domainLookupStart":291.3999996185303,"fetchStart":291.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":291.3999996185303,"responseEnd":595.8999996185303,"responseStart":595.8999996185303,"secureConnectionStart":291.3999996185303},{"duration":305.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":291.5,"connectEnd":291.5,"connectStart":291.5,"domainLookupEnd":291.5,"domainLookupStart":291.5,"fetchStart":291.5,"redirectEnd":0,"redirectStart":0,"requestStart":291.5,"responseEnd":596.5999994277954,"responseStart":596.5999994277954,"secureConnectionStart":291.5},{"duration":305.20000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":291.79999923706055,"connectEnd":291.79999923706055,"connectStart":291.79999923706055,"domainLookupEnd":291.79999923706055,"domainLookupStart":291.79999923706055,"fetchStart":291.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":291.79999923706055,"responseEnd":597,"responseStart":597,"secureConnectionStart":291.79999923706055},{"duration":404.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":291.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":696.5,"responseStart":0,"secureConnectionStart":0},{"duration":305.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":292.0999994277954,"connectEnd":292.0999994277954,"connectStart":292.0999994277954,"domainLookupEnd":292.0999994277954,"domainLookupStart":292.0999994277954,"fetchStart":292.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":292.0999994277954,"responseEnd":597.3999996185303,"responseStart":597.3999996185303,"secureConnectionStart":292.0999994277954},{"duration":404.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":292.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":292.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":696.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":305.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":292.3999996185303,"connectEnd":292.3999996185303,"connectStart":292.3999996185303,"domainLookupEnd":292.3999996185303,"domainLookupStart":292.3999996185303,"fetchStart":292.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":292.3999996185303,"responseEnd":598,"responseStart":598,"secureConnectionStart":292.3999996185303},{"duration":920.7000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":293.29999923706055,"connectEnd":293.29999923706055,"connectStart":293.29999923706055,"domainLookupEnd":293.29999923706055,"domainLookupStart":293.29999923706055,"fetchStart":293.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":293.29999923706055,"responseEnd":1214,"responseStart":1214,"secureConnectionStart":293.29999923706055},{"duration":921.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":293.3999996185303,"connectEnd":293.3999996185303,"connectStart":293.3999996185303,"domainLookupEnd":293.3999996185303,"domainLookupStart":293.3999996185303,"fetchStart":293.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":293.3999996185303,"responseEnd":1214.6999998092651,"responseStart":1214.6999998092651,"secureConnectionStart":293.3999996185303},{"duration":290.4000005722046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":708.0999994277954,"connectEnd":708.0999994277954,"connectStart":708.0999994277954,"domainLookupEnd":708.0999994277954,"domainLookupStart":708.0999994277954,"fetchStart":708.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":708.0999994277954,"responseEnd":998.5,"responseStart":998.5,"secureConnectionStart":708.0999994277954}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":78,"responseStart":285,"responseEnd":288,"domLoading":288,"domInteractive":1240,"domContentLoadedEventStart":1240,"domContentLoadedEventEnd":1282,"domComplete":2080,"loadEventStart":2080,"loadEventEnd":2081,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1219.8999996185303},{"name":"bigPipe.sidebar-id.end","time":1220.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1220.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1222.3999996185303},{"name":"activityTabFullyLoaded","time":1294.7999992370605}],"measures":[],"correlationId":"8f13d088387991","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":147,"dbReadsTimeInMs":17,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Invalid.
Was a consequence of
MDEV-36156attempts to correct -fsanitizer=memory for stdc++ detection but failed in detection of sizes etc like this,And libatomics
-- Performing Test HAVE_GCC_C11_ATOMICS_WITHOUT_LIBATOMIC
-- Performing Test HAVE_GCC_C11_ATOMICS_WITHOUT_LIBATOMIC - Failed
-- Performing Test HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC
-- Performing Test HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC - Failed
...
FAILED: unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o
/usr/bin/clang -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/source/wsrep-lib/include -I/source/wsrep-lib/wsrep-API/v26 -I/build/include -I/source/include/providers -I/source/include -I/source/unittest/mytap -I/source/zlib -I/build/zlib -O2 -g -DNDEBUG -fsanitize=memory -fsanitize-memory-track-origins -U_FORTIFY_SOURCE -fno-omit-frame-pointer -DDBUG_OFF -Wall -Wdeclaration-after-statement -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Winconsistent-missing-override -Wmissing-braces -Wno-format-truncation -Wno-init-self -Wno-null-conversion -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -Wwrite-strings -Wcast-function-type-strict -DHAVE_OPENSSL -DOPENSSL_API_COMPAT=0x10100000L -std=gnu99 -MD -MT unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o -MF unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o.d -o unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o -c /source/unittest/mysys/my_atomic-t.c
/source/unittest/mysys/my_atomic-t.c:30:5: error: call to undeclared function 'my_atomic_add32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
30 | my_atomic_add32(&bad, x);
| ^
/source/unittest/mysys/my_atomic-t.c:45:5: error: call to undeclared function 'my_atomic_add64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
45 | my_atomic_add64(&a64, x);
buildbot@2f11790aa1e1:/build$ grep -A 30 "HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC" ./CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC failed with the following output:
Change Dir: /build/CMakeFiles/CMakeScratch/TryCompile-JXKj3i
Run Build Command(s):/usr/bin/ninja cmTC_e9341 && [1/2] Building CXX object CMakeFiles/cmTC_e9341.dir/src.cxx.o
[2/2] Linking CXX executable cmTC_e9341
FAILED: cmTC_e9341
: && /usr/bin/clang++ -stdlib=libc++ -L/msan-libs -Wl,-rpath=/msan-libs CMakeFiles/cmTC_e9341.dir/src.cxx.o -o cmTC_e9341 -lm -lcrypt -ldl -latomic && :
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_memset'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_retval_origin_tls'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_unpoison'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_param_origin_tls'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_memcpy'
/usr/bin/ld: /msan-libs/libc++.so.1: undefined reference to `__msan_retval_tls'