From: Lennart Borgman <lennart.borgman@gmail.com>
To: eric@siege-engine.com
Cc: alexott@gmail.com, Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: CEDET calls cpp -E -dM -x c++ /dev/null
Date: Thu, 2 Jul 2009 20:13:06 +0200 [thread overview]
Message-ID: <e01d8a50907021113m321186d1oef3df5879d43f4d7@mail.gmail.com> (raw)
In-Reply-To: <1246505665.21630.7.camel@projectile.siege-engine.com>
On Thu, Jul 2, 2009 at 5:34 AM, Eric M. Ludlam<eric@siege-engine.com> wrote:
> On Thu, 2009-07-02 at 06:24 +0300, Eli Zaretskii wrote:
>> > Date: Wed, 1 Jul 2009 22:25:32 +0200
>> > From: Lennart Borgman <lennart.borgman@gmail.com>
>> > Cc: emacs-devel@gnu.org, alexott@gmail.com, eric@siege-engine.com
>> >
>> > I see another problem in semantic-gcc-setup. It tries to guess the
>> > include paths and does this
>> >
>> > (let* ((try-paths (list "/usr/include" (concat prefix "/include")
>> > (concat prefix "/include/c++/" ver)
>> > (concat prefix "/include/c++/" ver "/" host )
>> > )))
>> >
>> > Can't gcc or cpp give some better information about include paths that
>> > semantic can use? Where is this information?
>>
>> I thought one of the -print-* options could show the place of the
>> headers, but I cannot get them to do this. This is the closest:
>>
>> D:\usr\eli\data>cpp -print-file-name=libmingwex.a
>> D:/usr/bin/../lib/gcc/mingw32/3.4.2/../../../libmingwex.a
>>
>> I guess the place where the headers live should be customizable
>> instead of being hardcoded.
>
> Hi,
>
> The code that is looking up header directories that Lennart quoted is
> attempting to find a reasonable default because the customization step
> can be confusing. There are many possible paths that need to be
> identified and setup, so this code is just trying to remove one set of
> customizations that might be needed. A side effect is a desire to make
> it "perfect" for all situations. Making the list of dirs for this code
> to test customizable is moot, since it is just as easy to customize the
> system include path for headers instead.
>
> Getting better output from gcc, such as -print-file-name, would be
> helpful.
Eric, I looked at your code again and realize that you are using "gcc
-v" to get info. On w32 it gives "--prefix=/mingw" which lacks the
drive letter and therefore is useless. I have filed a bug report
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40624
However for now a workaround must be used and I suggest on w32 using
the information from
(let* ((gcc-exe (locate-file "gcc" exec-path exec-suffixes
'executable))
(gcc-root (expand-file-name ".." (file-name-directory gcc-exe)))
I believe gcc-root contains the info that --prefix should have given.
next prev parent reply other threads:[~2009-07-02 18:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-01 19:06 CEDET calls cpp -E -dM -x c++ /dev/null Lennart Borgman
2009-07-01 19:20 ` Eli Zaretskii
2009-07-01 19:25 ` Lennart Borgman
2009-07-01 19:36 ` Eli Zaretskii
2009-07-01 20:01 ` Sean O'Rourke
2009-07-01 20:16 ` Lennart Borgman
2009-07-01 20:32 ` Sean O'Rourke
2009-07-01 20:25 ` Lennart Borgman
2009-07-02 3:24 ` Eli Zaretskii
2009-07-02 3:34 ` Eric M. Ludlam
2009-07-02 18:13 ` Lennart Borgman [this message]
2009-07-02 19:29 ` Eli Zaretskii
2009-07-03 0:31 ` Lennart Borgman
2009-07-03 0:46 ` Miles Bader
2009-07-03 1:13 ` Lennart Borgman
2009-07-03 9:36 ` Eli Zaretskii
2009-07-03 11:22 ` Lennart Borgman
2009-07-01 19:58 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50907021113m321186d1oef3df5879d43f4d7@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=alexott@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=eric@siege-engine.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).