public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "markus.rothe at rite dot cc" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/97290] Segmentation fault in lto-wrapper Date: Mon, 05 Oct 2020 12:49:37 +0000 [thread overview] Message-ID: <bug-97290-4-g8jlcWFqlq@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-97290-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97290 --- Comment #5 from Markus Rothe <markus.rothe at rite dot cc> --- The spec file is available here: https://github.com/markus289/aws-sdk-cpp-rpms 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 running '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='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection' export CFLAGS CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection' export CXXFLAGS FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' export FFLAGS FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' export FCFLAGS LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' export LDFLAGS LT_SYS_LIBRARY_PATH=/usr/lib64: export LT_SYS_LIBRARY_PATH CC=gcc export CC CXX=g++ export CXX /usr/bin/cmake ../ -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=${HOME}/test-error/usr -DINCLUDE_INSTALL_DIR:PATH=${HOME}/test-error/usr/include -DLIB_INSTALL_DIR:PATH=${HOME}/test-error/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=${HOME}/test-error/etc -DSHARE_INSTALL_PREFIX:PATH=${HOME}/test-error/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_DEPS:BOOL=TRUE -DAUTORUN_UNIT_TESTS:BOOL=FALSE -DCUSTOM_MEMORY_MANAGEMENT:BOOL=FALSE -DBUILD_ONLY=ec2 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...
next prev parent reply other threads:[~2020-10-05 12:49 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-05 11:38 [Bug lto/97290] New: " markus.rothe at rite dot cc 2020-10-05 11:42 ` [Bug lto/97290] " marxin at gcc dot gnu.org 2020-10-05 11:43 ` markus.rothe at rite dot cc 2020-10-05 11:44 ` marxin at gcc dot gnu.org 2020-10-05 12:07 ` marxin at gcc dot gnu.org 2020-10-05 12:49 ` markus.rothe at rite dot cc [this message] 2020-10-05 13:17 ` marxin at gcc dot gnu.org 2020-10-05 15:13 ` marxin at gcc dot gnu.org 2020-10-07 6:53 ` marxin at gcc dot gnu.org 2020-10-07 12:05 ` marxin at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-97290-4-g8jlcWFqlq@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).