Bug 2310861 - lto-wrapper: fatal error: Too many copied sections
Summary: lto-wrapper: fatal error: Too many copied sections
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 42
Hardware: ppc64le
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PPCTracker
TreeView+ depends on / blocked
 
Reported: 2024-09-09 14:43 UTC by Dan Horák
Modified: 2026-05-06 11:53 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 116614 0 P3 ASSIGNED lto-wrapper: fatal error: Too many copied sections: Operation not supported 2024-09-09 15:46:21 UTC

Description Dan Horák 2024-09-09 14:43:07 UTC
When building webkitgtk the linking of libwebkitgtk-6.0.so.4.10.1 fails with

...
[1/2][7202/7223 1565.254s] : && /usr/bin/g++ -fPIC -fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr -Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds -Wno-expansion-to-defined -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fdebug-types-section -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 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -DNDEBUG  -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -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 -Wl,--gc-sections -Wl,--disable-new-dtags   -Wl,--version-script,/builddir/build/BUILD/webkitgtk-2.45.92-build/webkitgtk-2.45.92/Source/WebKit/webkitglib-symbols.map -shared -Wl,-soname,libwebkitgtk-6.0.so.4 -o lib/libwebkitgtk-6.0.so.4.10.1 Source/WebKit/CMakeFiles/WebKit.dir/Shared/API/c/skia/WKImageSkia.cpp.o Source/WebKit/CMakeFiles/WebKit.dir/Shared/skia/WebCoreArgumentCodersSkia.cpp.o Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/Automation/skia/WebAutomationSessionSkia.cpp.o Source/WebKit/CMakeFiles/WebKit.dir/WebProcess/InjectedBundle/API/glib/WebKitWebProcessExtension.cpp.o Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/glib/UserMediaPermissionRequestManagerProxyGLib.cpp.o Source/WebKit/CMakeFiles/WebKit.dir/WebProcess/glib/UserMediaCaptureManager.cpp.o
...
a "million" of *.o files goes here
...
Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-1.cpp.o  Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-2.cpp.o  Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-3.cpp.o  Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-4.cpp.o  Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-5.cpp.o  lib/libSkia.a  /usr/lib64/libepoxy.so  lib/libSkia.a  /usr/lib64/libfontconfig.so  /usr/lib64/libfreetype.so  /usr/lib64/libwebpmux.so  /usr/lib64/libepoxy.so  lib/libPAL.a  lib/libjavascriptcoregtk-6.0.so.1.3.8  /usr/lib64/libicudata.so  /usr/lib64/libicui18n.so  /usr/lib64/libsystemd.so  /usr/lib64/libsysprof-capture-4.a  /usr/lib64/libjpeg.so  /usr/lib64/libpng.so  /usr/lib64/libicuuc.so  /usr/lib64/libgtk-4.so  /usr/lib64/libpangocairo-1.0.so  /usr/lib64/libpango-1.0.so  /usr/lib64/libharfbuzz.so  /usr/lib64/libgdk_pixbuf-2.0.so  /usr/lib64/libcairo-gobject.so  /usr/lib64/libcairo.so  /usr/lib64/libvulkan.so  /usr/lib64/libgraphene-1.0.so  /usr/lib64/libxml2.so  /usr/lib64/libsqlite3.so  /usr/lib64/libxslt.so  lib/libGLESv2.a  lib/libANGLE.a  -ldl  /usr/lib64/libz.so  /usr/lib64/liblcms2.so  /usr/lib64/libwoff2dec.so  lib/libxdgmime.a  /usr/lib64/libgcrypt.so  /usr/lib64/libgpg-error.so  /usr/lib64/libgstallocators-1.0.so  /usr/lib64/libgstapp-1.0.so  /usr/lib64/libgstbase-1.0.so  /usr/lib64/libgstreamer-1.0.so  /usr/lib64/libgstpbutils-1.0.so  /usr/lib64/libgstaudio-1.0.so  /usr/lib64/libgsttranscoder-1.0.so  /usr/lib64/libgsttag-1.0.so  /usr/lib64/libgstvideo-1.0.so  /usr/lib64/libgstgl-1.0.so  /usr/lib64/libgstfft-1.0.so  /usr/lib64/libwebpdemux.so  /usr/lib64/libwebp.so  /usr/lib64/libjxl.so  /usr/lib64/libavif.so  /usr/lib64/libsoup-3.0.so  /usr/lib64/libharfbuzz.so  /usr/lib64/libharfbuzz-icu.so  /usr/lib64/libenchant-2.so  /usr/lib64/libgio-2.0.so  /usr/lib64/libgmodule-2.0.so  /usr/lib64/libgobject-2.0.so  /usr/lib64/libglib-2.0.so  -lsecret-1  -lgio-2.0  -lgobject-2.0  -lglib-2.0  /usr/lib64/libtasn1.so  /usr/lib64/libhyphen.so  /usr/lib64/libX11.so  -lwayland-server  -lwayland-egl  -lwayland-client  /usr/lib64/libmanette-0.2.so  /usr/lib64/libseccomp.so  /usr/lib64/libgbm.so  /usr/lib64/libdrm.so && :
...
lto-wrapper: fatal error: Too many copied sections: Operation not supported
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.


Reproducible: Always




This is with gcc-14.2.1-2.fc42.ppc64le

Comment 1 Aoife Moloney 2025-02-26 13:11:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Fedora Release Engineering 2026-05-06 11:53:38 UTC
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '42'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 42 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


Note You need to log in before you can comment on or make changes to this bug.