Skip to content

GCC 12 compilation error #32

@shadichy

Description

@shadichy

Output of gcc --version:

gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

At libsystemback (with GCC 12):

g++ -Wl,-Bsymbolic-functions -Wl,--as-needed -fuse-ld=gold -Wl,-z,relro -Wl,-O1 -pipe -g -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-asynchronous-unwind-tables -flto -O2 -std=gnu++11 -fno-exceptions -flto=4 -fno-fat-lto-objects -fuse-linker-plugin -shared -fPIC -Wl,-soname,libsystemback.so.1 -o libsystemback.so.1.0.0 sblib.o qrc_version.o  -lmount -lblkid -lparted /usr/lib/libQt5Core.so -lpthread    
g++: internal compiler error: Segmentation fault signal terminated program lto1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://bugs.archlinux.org/> for instructions.
lto-wrapper: fatal error: g++ returned 4 exit status
compilation terminated.
/usr/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:407: libsystemback.so.1.0.0] Error 1

With GCC 11 it's compiled without any problem

OS:

OS: Garuda Linux x86_64 
Host: 82H8 IdeaPad 3 15ITL6 
Kernel: 5.18.14-1-clear 
Uptime: 4 hours, 47 mins 
Packages: 2246 (pacman), 614 (dpkg), 215 (rpm), 6 (flatpak), 7 (snap), (**And please don't ask why**)
DE: Cutefish 
CPU: 11th Gen Intel i3-1115G4 (4) @ 1.100GHz 
GPU: Intel Device 9a78 
Memory: 5588MiB / 7749MiB 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions