public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/40004]  New: gcc does not install appropriate plugin headers
@ 2009-05-02  7:22 bradh at frogmouth dot net
  2009-05-02  7:23 ` [Bug other/40004] " bradh at frogmouth dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bradh at frogmouth dot net @ 2009-05-02  7:22 UTC (permalink / raw)
  To: gcc-bugs

Writing a plugin requires use of a range of headers (such as gcc-plugin.h)
which are not installed. Here is an example:

$ /opt/gccsvn/bin/gcc -v --save-temps  -Dmy_gcc_plugin_EXPORTS -fPIC -o
dumb_plugin-orig.c.o   -c dumb_plugin-orig.c
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /home/bradh/devel/gcc-svn/configure --prefix=/opt/gccsvn
--enable-plugins : (reconfigured) /home/bradh/devel/gcc-svn/configure
--prefix=/opt/gccsvn --enable-plugins : (reconfigured)
/home/bradh/devel/gcc-svn/configure --prefix=/opt/gccsvn --enable-plugins :
(reconfigured) /home/bradh/devel/gcc-svn/configure --prefix=/opt/gccsvn
--enable-plugins
Thread model: posix
gcc version 4.5.0 20090502 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Dmy_gcc_plugin_EXPORTS' '-fPIC' '-o'
'dumb_plugin-orig.c.o' '-c' '-mtune=generic'
 /opt/gccsvn/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1 -E -quiet -v
-Dmy_gcc_plugin_EXPORTS dumb_plugin-orig.c -mtune=generic -fPIC
-fpch-preprocess -o dumb_plugin-orig.i
ignoring nonexistent directory
"/opt/gccsvn/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/gccsvn/include
 /opt/gccsvn/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include
 /opt/gccsvn/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed
 /usr/include
End of search list.
dumb_plugin-orig.c:1: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.


-- 
           Summary: gcc does not install appropriate plugin headers
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bradh at frogmouth dot net
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40004


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

* [Bug other/40004] gcc does not install appropriate plugin headers
  2009-05-02  7:22 [Bug other/40004] New: gcc does not install appropriate plugin headers bradh at frogmouth dot net
@ 2009-05-02  7:23 ` bradh at frogmouth dot net
  2009-05-02  9:34 ` joseph at codesourcery dot com
  2009-05-08  7:58 ` bradh at frogmouth dot net
  2 siblings, 0 replies; 4+ messages in thread
From: bradh at frogmouth dot net @ 2009-05-02  7:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bradh at frogmouth dot net  2009-05-02 07:23 -------
Created an attachment (id=17791)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17791&action=view)
.i of trivial example

Source was only one line:
#include "gcc-plugin.h"


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40004


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

* [Bug other/40004] gcc does not install appropriate plugin headers
  2009-05-02  7:22 [Bug other/40004] New: gcc does not install appropriate plugin headers bradh at frogmouth dot net
  2009-05-02  7:23 ` [Bug other/40004] " bradh at frogmouth dot net
@ 2009-05-02  9:34 ` joseph at codesourcery dot com
  2009-05-08  7:58 ` bradh at frogmouth dot net
  2 siblings, 0 replies; 4+ messages in thread
From: joseph at codesourcery dot com @ 2009-05-02  9:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from joseph at codesourcery dot com  2009-05-02 09:34 -------
Subject: Re:   New: gcc does not install appropriate plugin
 headers

On Sat, 2 May 2009, bradh at frogmouth dot net wrote:

> Writing a plugin requires use of a range of headers (such as gcc-plugin.h)
> which are not installed. Here is an example:
> 
> $ /opt/gccsvn/bin/gcc -v --save-temps  -Dmy_gcc_plugin_EXPORTS -fPIC -o
> dumb_plugin-orig.c.o   -c dumb_plugin-orig.c

You'd need to use a -I option pointing to the plugin headers install 
directory anyway; they aren't going to be installed in the default search 
path, since they are headers for the host, not the target, and depend on 
the exact GCC configuration, and multiple differently configured copies of 
GCC for different targets can be installed in the same prefix.  But it 
doesn't look like the patch to install plugin headers under 
libsubdir/plugin/include has yet been reviewed/approved.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40004


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

* [Bug other/40004] gcc does not install appropriate plugin headers
  2009-05-02  7:22 [Bug other/40004] New: gcc does not install appropriate plugin headers bradh at frogmouth dot net
  2009-05-02  7:23 ` [Bug other/40004] " bradh at frogmouth dot net
  2009-05-02  9:34 ` joseph at codesourcery dot com
@ 2009-05-08  7:58 ` bradh at frogmouth dot net
  2 siblings, 0 replies; 4+ messages in thread
From: bradh at frogmouth dot net @ 2009-05-08  7:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from bradh at frogmouth dot net  2009-05-08 07:58 -------
Looks like the install is now dealing with this.


-- 

bradh at frogmouth dot net changed:

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40004


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

end of thread, other threads:[~2009-05-08  7:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-02  7:22 [Bug other/40004] New: gcc does not install appropriate plugin headers bradh at frogmouth dot net
2009-05-02  7:23 ` [Bug other/40004] " bradh at frogmouth dot net
2009-05-02  9:34 ` joseph at codesourcery dot com
2009-05-08  7:58 ` bradh at frogmouth dot net

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