Project

General

Profile

Actions

Bug #67271

closed

LogEntry.cc: error: conversion function from 'int' to 'std::string' (aka 'basic_string<char>') invokes a deleted function

Added by Casey Bodley over 1 year ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Backport:
squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
backport_processed
Fixed In:
v19.3.0-317-g6c9d1b6484
Released In:
v20.2.0~3436
Upkeep Timestamp:
2025-11-01T01:35:54+00:00

Description

with gcc-12 and -std=c++2b, the crimson build fails:

-std=c++2b -MD -MT src/crimson/CMakeFiles/crimson-common.dir/__/common/LogEntry.cc.o -MF src/crimson/CMakeFiles/crimson-common.dir/__/common/LogEntry.cc.o.d -o src/crimson/CMakeFiles/crimson-common.dir/__/common/LogEntry.cc.o -c /home/jenkins-build/build/workspace/ceph-pull-requests/src/common/LogEntry.cc
/home/jenkins-build/build/workspace/ceph-pull-requests/src/common/LogEntry.cc:186:14: error: conversion function from 'int' to 'std::string' (aka 'basic_string<char>') invokes a deleted function
      return 0;
             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:742:7: note: 'basic_string' has been explicitly marked deleted here
      basic_string(nullptr_t) = delete;
      ^
1 error generated.

from https://jenkins.ceph.com/job/ceph-pull-requests/140268/

i can't tell where -std=c++2b is coming from, and that seems wrong, but the fix is easy enough (don't return 0; there)


Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #67272: squid: LogEntry.cc: error: conversion function from 'int' to 'std::string' (aka 'basic_string<char>') invokes a deleted functionResolvedCasey BodleyActions
Actions #1

Updated by Casey Bodley over 1 year ago

  • Status changed from New to Pending Backport
  • Assignee set to Casey Bodley
  • Backport set to squid
  • Pull request ID set to 55905
Actions #2

Updated by Casey Bodley over 1 year ago

  • Copied to Backport #67272: squid: LogEntry.cc: error: conversion function from 'int' to 'std::string' (aka 'basic_string<char>') invokes a deleted function added
Actions #3

Updated by Casey Bodley over 1 year ago

  • Tags (freeform) set to backport_processed
Actions #4

Updated by Upkeep Bot 9 months ago

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp set to 2025-07-08T18:13:27+00:00
Actions #5

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to 6c9d1b64849f1531cde0b6dd9bc1fd91c9ce153e
  • Fixed In set to v19.3.0-317-g6c9d1b6484
  • Upkeep Timestamp changed from 2025-07-08T18:13:27+00:00 to 2025-08-02T04:50:29+00:00
Actions #6

Updated by Upkeep Bot 5 months ago

  • Released In set to v20.2.0~3436
  • Upkeep Timestamp changed from 2025-08-02T04:50:29+00:00 to 2025-11-01T01:35:54+00:00
Actions

Also available in: Atom PDF