This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fenv.h not found?


All,

Sorry, I've been busy these last days...

On Tuesday 19 October 2010 09:22:55 Arnaud Lacombe wrote:
> hum, Yann's patch (which ) looks broken:
> +    if [ "${CT_CC_LANG_CXX}" = "y"   ]; then
> +        extra_config+=("--with-gxx-include-dir=${CT_SYSROOT_DIR}/usr/include")
> +    fi
> +

This has been postedon the list [1], and noone did object. It was intended
to fix an issue with searching for C++ headers, and fixed the issue seen
by Anthony [2].

But I'd be glad to revert it, so we can add a proper fix.

> "${CT_SYSROOT_DIR}/usr/include" is "${CT_HEADERS_DIR}" where the libc
> is told to install its headers...
> As the GCC's fenv.h tries to include the one provided by the C
> library, it naturally dies.

I see. So, rather than tell gcc where to install its C++ headers, we should
find a way how to find them. After it itself installed them in the first
place.

In the end it boils down to: "do we really want everything in the sysroot?"
The build-time symlink include to sysroot/usr/include was meant as a way to
have everything related to the target system lie in the sysroot.

But that does not seem to be easily done...

Regards,
Yann E. MORIN.

[1] http://sourceware.org/ml/crossgcc/2010-10/msg00042.html
[2] http://sourceware.org/ml/crossgcc/2010-10/msg00003.html

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]