public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/100959] New: -fuse-ld=lld does not work when -flto is enabled
@ 2021-06-08  8:09 unlvsur at live dot com
  2021-06-08  8:19 ` [Bug lto/100959] -fuse-ld=lld does not work when -flto is enabled (aka LLVM lld does not work correctly with gcc) pinskia at gcc dot gnu.org
  2021-06-08  8:20 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: unlvsur at live dot com @ 2021-06-08  8:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100959

            Bug ID: 100959
           Summary: -fuse-ld=lld does not work when -flto is enabled
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

Linux:
cqwrteur@Home-Server:~/fast_io/.tmp/unit$ g++ -o iobuf_file iobuf_file.cc
-Ofast -std=c++20 -s -fuse-ld=lld -I../../include -march=native -flto
ld.lld: error: undefined symbol: main
>>> referenced by /usr/lib/x86_64-linux-gnu/crt1.o:(_start)
collect2: error: ld returned 1 exit status
Windows:
Cannot find winmain.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug lto/100959] -fuse-ld=lld does not work when -flto is enabled (aka LLVM lld does not work correctly with gcc)
  2021-06-08  8:09 [Bug other/100959] New: -fuse-ld=lld does not work when -flto is enabled unlvsur at live dot com
@ 2021-06-08  8:19 ` pinskia at gcc dot gnu.org
  2021-06-08  8:20 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-08  8:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100959

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes this is not our bug to fix.  Use -fno-use-linker-plugin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug lto/100959] -fuse-ld=lld does not work when -flto is enabled (aka LLVM lld does not work correctly with gcc)
  2021-06-08  8:09 [Bug other/100959] New: -fuse-ld=lld does not work when -flto is enabled unlvsur at live dot com
  2021-06-08  8:19 ` [Bug lto/100959] -fuse-ld=lld does not work when -flto is enabled (aka LLVM lld does not work correctly with gcc) pinskia at gcc dot gnu.org
@ 2021-06-08  8:20 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-08  8:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100959

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
That is the plugin API/ABI is different between LLVM and binutils ld (bfd and
gold).  We only support binutils ld plugins.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-08  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  8:09 [Bug other/100959] New: -fuse-ld=lld does not work when -flto is enabled unlvsur at live dot com
2021-06-08  8:19 ` [Bug lto/100959] -fuse-ld=lld does not work when -flto is enabled (aka LLVM lld does not work correctly with gcc) pinskia at gcc dot gnu.org
2021-06-08  8:20 ` pinskia at gcc dot gnu.org

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).