From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0EB913857833; Mon, 5 Oct 2020 12:49:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0EB913857833 From: "markus.rothe at rite dot cc" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/97290] Segmentation fault in lto-wrapper Date: Mon, 05 Oct 2020 12:49:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus.rothe at rite dot cc X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2020 12:49:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97290 --- Comment #5 from Markus Rothe --- The spec file is available here: https://github.com/markus289/aws-sdk-cpp-r= pms But I was also able to reproduce the problem on a Fedora 32 machine without rpm/mock/etc involved as follows: [ Note, that this would install some files in ${HOME}/test-error/ when runn= ing 'make' as it downloads dependencies and installs them to the prefix (e.g. aws-c-common). ] curl -L https://github.com/aws/aws-sdk-cpp/archive/1.8.61.tar.gz|tar xz cd aws-sdk-cpp-1.8.61 && mkdir build && cd build CFLAGS=3D'-O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-s= witches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -= m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection' export CFLAGS CXXFLAGS=3D'-O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection' export CXXFLAGS FFLAGS=3D'-O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-s= witches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -= m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' export FFLAGS FCFLAGS=3D'-O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-= switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -= m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' export FCFLAGS LDFLAGS=3D'-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld '=20 export LDFLAGS LT_SYS_LIBRARY_PATH=3D/usr/lib64: export LT_SYS_LIBRARY_PATH CC=3Dgcc export CC CXX=3Dg++ export CXX /usr/bin/cmake ../ -DCMAKE_C_FLAGS_RELEASE:STRING=3D-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=3D-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=3D-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BO= OL=3DON -DCMAKE_INSTALL_PREFIX:PATH=3D${HOME}/test-error/usr -DINCLUDE_INSTALL_DIR:PATH=3D${HOME}/test-error/usr/include -DLIB_INSTALL_DIR:PATH=3D${HOME}/test-error/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=3D${HOME}/test-error/etc -DSHARE_INSTALL_PREFIX:PATH=3D${HOME}/test-error/usr/share -DLIB_SUFFIX=3D64 -DBUILD_SHARED_LIBS:BOOL=3DON -DBUILD_DEPS:BOOL=3DTRUE -DAUTORUN_UNIT_TESTS:BOOL=3DFALSE -DCUSTOM_MEMORY_MANAGEMENT:BOOL=3DFALSE -DBUILD_ONLY=3Dec2 make [...] /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Does this help? I know that the *FLAGS are quite specific to Fedora...=