Bug 160464 - Can't compile using GCC 14
Summary: Can't compile using GCC 14
Status: RESOLVED DUPLICATE of bug 155715
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.6.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 17:57 UTC by Robert Greener
Modified: 2024-04-01 18:43 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Greener 2024-04-01 17:57:57 UTC
Description:
Downstream bug: https://bugs.gentoo.org/928152

Suggested fix: Backport commit db98a3f1b1a703ea8e1284b8815eea2274abb2db to 7.x branch.

Steps to Reproduce:
Try to compile using GCC 14.

Actual Results:
Fails with error
Hello. I have just switched profiles and libreoffice built just fine for me before switching. Now I get the error:

/var/tmp/portage/app-office/libreoffice-7.6.6.3/work/libreoffice-7.6.6.3/store/source/storbase.hxx: In static member function ‘static void store::OStorePageObject::operator delete(void*)’:
/var/tmp/portage/app-office/libreoffice-7.6.6.3/work/libreoffice-7.6.6.3/store/source/storbase.hxx:529:14: error: ‘free’ is not a member of ‘std’
  529 |         std::free (p);
      |              ^~~~

Expected Results:
Compiles successfully


Reproducible: Always


User Profile Reset: No

Additional Info:
N/A
Comment 1 Julien Nabet 2024-04-01 18:23:39 UTC
Fixed from 24.2.0 version.

*** This bug has been marked as a duplicate of bug 155715 ***
Comment 2 Robert Greener 2024-04-01 18:43:03 UTC
Could this fix be backported to the 7.x branch so that it can be compiled using newer versions of GCC?