Bug 43748 - build machinery insufficient for installing target specific .def files as plugin headers
Summary: build machinery insufficient for installing target specific .def files as plu...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2010-04-13 16:57 UTC by Jack Howarth
Modified: 2021-08-24 20:27 UTC (History)
5 users (show)

See Also:
Host: *-apple-darwin*
Target: *-apple-darwin*
Build: *-apple-darwin*
Known to work:
Known to fail:
Last reconfirmed: 2018-03-12 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Howarth 2010-04-13 16:57:14 UTC
The current build machinery in FSF gcc doesn't appear to provide a mechanism to install target specific .def files when install-plugin installs the header files. In particular, after applying...

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00610.html

...and building gcc trunk or gcc-4_5-branch on x86_64-apple-darwin10 with --enable-plugin, the file gcc/config/darwin-sections.def isn't installed in with the plugin headers. The other definition files installed are explicitly listed in PLUGIN_HEADERS of gcc/Makefile.in. I have tried adding darwin-sections.def  to tm_include in config.gcc for darwin but this doesn't allow the file to be installed.
Comment 1 Andrew Paprocki 2011-08-13 17:32:37 UTC
This breaks the installation of gcc-4.5 via macports. When trying to build anything which uses the plugin API, it can't find darwin-sections.def so you have to manually extract it from the tarball and sudo cp it to the installed macports directory to get the build working.
Comment 2 Eric Gallager 2018-03-12 02:42:06 UTC
(In reply to Andrew Paprocki from comment #1)
> This breaks the installation of gcc-4.5 via macports. When trying to build
> anything which uses the plugin API, it can't find darwin-sections.def so you
> have to manually extract it from the tarball and sudo cp it to the installed
> macports directory to get the build working.

Taking this as confirmation.
Comment 3 Eric Gallager 2019-06-15 20:29:04 UTC
since this is at least somewhat Darwin-related, cc-ing Iain...
Comment 4 Iain Sandoe 2021-08-24 20:27:56 UTC
This seems to have been fixed by:

commit 8b0210047962c7342d23a333703203690b76ba3d
Author: Mike Stump <mikestump@comcast.net>
Date:   2011-02-19 04:54:55 +0000

    t-darwin (TM_H): Add dependency on on darwin-sections.def.
    
            * config/t-darwin (TM_H): Add dependency on on
            darwin-sections.def.

I can confirm that darwin-sections.def is installed in the plugin include dir for and ---enable-plugin build on x86_64-darwin19, of gcc-9.4.1 which is the oldest open branch.

closing as fixed.