Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2018 05:20:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230137] cc: -flto link option is broken: unrecognized option '-plugin'
Message-ID:  <bug-230137-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230137

            Bug ID: 230137
           Summary: cc: -flto link option is broken: unrecognized option
                    '-plugin'
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

How to reproduce:
1. Create a file x.c with this line: void f() { }

2. Run this command:
> cc -c -emit-llvm x.c -o x.o && cc -shared -flto x.o -o x.so

3. Observe the error:
> /usr/bin/ld: unrecognized option '-plugin'
> /usr/bin/ld: use the --help option for usage information
> cc: error: linker command failed with exit code 1 (use -v to see invocati=
on)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230137-227>