public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work.
@ 2011-03-18 14:02 henry0312 at gmail dot com
2011-03-18 14:16 ` [Bug target/48180] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: henry0312 at gmail dot com @ 2011-03-18 14:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
Summary: '-fuse-linker-plugin' doesn't work.
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: henry0312@gmail.com
I compiled gcc version 4.6.0 20110314 (prerelease) on Mac OS X 10.6.6.
configure options:
./configure\
--build=x86_64-apple-darwin10\
--disable-debug\
--disable-multilib\
--enable-threads=posix\
--disable-bootstrap\
--enable-version-specific-runtime-libs\
--enable-languages=c,c++,objc,obj-c++\
--enable-stage1-checking\
--disable-nls\
--enable-werror\
--enable-lto\
--enable-gold\
--enable-ld\
--with-system-zlib\
--enable-fully-dynamic-string
And then,
following explanation of '-flto' (
http://gcc.gnu.org/onlinedocs/gcc-4.5.2/gcc/Optimize-Options.html#Optimize-Options
),
I tested my gcc.
$ gcc -flto -c a.c
$ gcc -flto -c b.c
$ gcc -o test -O2 -flto -fuse-linker-plugin a.o b.o
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
a.c and b.c --> http://www.privatepaste.com/34b31b77a5
My compiling environment:
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
gmp-5.0.1
mpfr-3.0.0
mpc-0.9
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/48180] '-fuse-linker-plugin' doesn't work.
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
@ 2011-03-18 14:16 ` rguenth at gcc dot gnu.org
2011-03-18 14:35 ` [Bug lto/48180] " henry0312 at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-18 14:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-apple-darwin10
Component|lto |target
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-18 14:15:45 UTC ---
LTO is not enabled by default on x86_64-apple-darwin10 and the apple linker
does not support a linker plugin compatible with LTO.
But yes, the error message could be improved to state this (no plugin
compatible linker available) instead of complaining the way it does.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/48180] '-fuse-linker-plugin' doesn't work.
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
2011-03-18 14:16 ` [Bug target/48180] " rguenth at gcc dot gnu.org
@ 2011-03-18 14:35 ` henry0312 at gmail dot com
2011-03-18 14:39 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: henry0312 at gmail dot com @ 2011-03-18 14:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
henry0312 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |lto
--- Comment #2 from henry0312 at gmail dot com 2011-03-18 14:28:04 UTC ---
(In reply to comment #1)
> LTO is not enabled by default on x86_64-apple-darwin10 and the apple linker
> does not support a linker plugin compatible with LTO.
>
> But yes, the error message could be improved to state this (no plugin
> compatible linker available) instead of complaining the way it does.
Should 'liblto_plugin.so' exist indeed?
Is this file created when compile gcc?
And If I compile binutils, will I be able to use '-fuse-linker-plugin'?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/48180] '-fuse-linker-plugin' doesn't work.
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
2011-03-18 14:16 ` [Bug target/48180] " rguenth at gcc dot gnu.org
2011-03-18 14:35 ` [Bug lto/48180] " henry0312 at gmail dot com
@ 2011-03-18 14:39 ` rguenth at gcc dot gnu.org
2011-03-18 14:42 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-18 14:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-18 14:38:26 UTC ---
(In reply to comment #2)
> (In reply to comment #1)
> > LTO is not enabled by default on x86_64-apple-darwin10 and the apple linker
> > does not support a linker plugin compatible with LTO.
> >
> > But yes, the error message could be improved to state this (no plugin
> > compatible linker available) instead of complaining the way it does.
>
>
> Should 'liblto_plugin.so' exist indeed?
> Is this file created when compile gcc?
I think it should exist, it is built and installed unconditionally. See
the lto-plugin/ directory in your toplevel build directory.
> And If I compile binutils, will I be able to use '-fuse-linker-plugin'?
No, upstream GNU binutils do not have complete support for Mach-O.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/48180] '-fuse-linker-plugin' doesn't work.
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
` (2 preceding siblings ...)
2011-03-18 14:39 ` rguenth at gcc dot gnu.org
@ 2011-03-18 14:42 ` rguenth at gcc dot gnu.org
2011-03-18 14:58 ` henry0312 at gmail dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-18 14:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-18 14:40:23 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > LTO is not enabled by default on x86_64-apple-darwin10 and the apple linker
> > > does not support a linker plugin compatible with LTO.
> > >
> > > But yes, the error message could be improved to state this (no plugin
> > > compatible linker available) instead of complaining the way it does.
> >
> >
> > Should 'liblto_plugin.so' exist indeed?
> > Is this file created when compile gcc?
>
> I think it should exist, it is built and installed unconditionally. See
> the lto-plugin/ directory in your toplevel build directory.
I was wrong, lto-plugin only gets built for ELF targets and a small list
of extra targets that does not include x86_64-darwin10
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/48180] '-fuse-linker-plugin' doesn't work.
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
` (3 preceding siblings ...)
2011-03-18 14:42 ` rguenth at gcc dot gnu.org
@ 2011-03-18 14:58 ` henry0312 at gmail dot com
2012-05-07 12:28 ` rguenth at gcc dot gnu.org
2021-08-24 21:07 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: henry0312 at gmail dot com @ 2011-03-18 14:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
--- Comment #5 from henry0312 at gmail dot com 2011-03-18 14:50:59 UTC ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> > > > LTO is not enabled by default on x86_64-apple-darwin10 and the apple linker
> > > > does not support a linker plugin compatible with LTO.
> > > >
> > > > But yes, the error message could be improved to state this (no plugin
> > > > compatible linker available) instead of complaining the way it does.
> > >
> > >
> > > Should 'liblto_plugin.so' exist indeed?
> > > Is this file created when compile gcc?
> >
> > I think it should exist, it is built and installed unconditionally. See
> > the lto-plugin/ directory in your toplevel build directory.
>
> I was wrong, lto-plugin only gets built for ELF targets and a small list
> of extra targets that does not include x86_64-darwin10
OK, I see.
Thank you very much.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/48180] '-fuse-linker-plugin' doesn't work.
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
` (4 preceding siblings ...)
2011-03-18 14:58 ` henry0312 at gmail dot com
@ 2012-05-07 12:28 ` rguenth at gcc dot gnu.org
2021-08-24 21:07 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-07 12:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-07 12:25:45 UTC ---
Works as expected.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/48180] '-fuse-linker-plugin' doesn't work.
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
` (5 preceding siblings ...)
2012-05-07 12:28 ` rguenth at gcc dot gnu.org
@ 2021-08-24 21:07 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-24 21:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48180
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |malcolm2190 at att dot net
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 81326 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-08-24 21:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-18 14:02 [Bug lto/48180] New: '-fuse-linker-plugin' doesn't work henry0312 at gmail dot com
2011-03-18 14:16 ` [Bug target/48180] " rguenth at gcc dot gnu.org
2011-03-18 14:35 ` [Bug lto/48180] " henry0312 at gmail dot com
2011-03-18 14:39 ` rguenth at gcc dot gnu.org
2011-03-18 14:42 ` rguenth at gcc dot gnu.org
2011-03-18 14:58 ` henry0312 at gmail dot com
2012-05-07 12:28 ` rguenth at gcc dot gnu.org
2021-08-24 21:07 ` 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).