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?


I don't know exactly what to make of it, but here's the difference in
searching between the ct-ng g++ and the system g++ (which is only
4.4.4 on this box, not 4.5 or 4.5.1.)

[tony@whisper tmp]$ cat foo.cpp
#include <fenv.h>
int main( int argc, char * argv [] )
{
    return 0;
}

[tony@whisper tmp]$ strace -f -tt -e open g++ -o foo foo.cpp 2>&1 |
grep fenv | grep -v ENOENT
[pid 13349] 00:35:01.677651
open("/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/fenv.h",
O_RDONLY|O_NOCTTY) = 5
[pid 13349] 00:35:01.682285 open("/usr/include/fenv.h", O_RDONLY|O_NOCTTY) = 5
[pid 13349] 00:35:01.682768 open("/usr/include/bits/fenv.h",
O_RDONLY|O_NOCTTY) = 5

[tony@whisper tmp]$ strace -f -tt -e open
/opt/cross/platforms/foo/xtools/bin/powerpc-e500v2-linux-gnuspe-g++ -o
foo foo.cpp 2>&1 | grep fenv | grep -v ENOENT
[pid 13357] 00:35:10.575325
open("/opt/cross/platforms/foo/xtools/powerpc-e500v2-linux-gnuspe//sys-root/usr/include/fenv.h",
O_RDONLY|O_NOCTTY) = 4
/opt/cross/platforms/foo/xtools/powerpc-e500v2-linux-gnuspe//sys-root/usr/include/fenv.h:36:24:
fatal error: fenv.h: No such file or directory

So it looks like maybe the ct-ng install is missing the fenv.h file in
the first place?  Hm... doesn't help that this is an "oddball" FPU
(being SPE, and not a "proper" FPU...)

Thanks,
t.

--
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]