Hello.
I am trying to build gcc-4.0.2 on QNX Neutrino 6.3.0 SP2.
I can't find any information about building gcc on QNX, so please point
me to documentation or discussion archive if that's possible. QNX is not
mentioned on http://gcc.gnu.org/gcc-4.0/buildstat.html, so I assume it
is not trivial task.
I use gcc-3.3.5 from SP2 (I linked it to gcc and g++ in PATH)
I started with:
./configure --enable-languages=c,c++
in obj directory, then:
make
It took some time, then error happened in libstdc++, good thing is that
g++ has been built (but no gcc!), so maybe there is a hope?
Error is very long:
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:
In function 'double std::abs(double)':
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:89:
error: redefinition of 'double std::abs(double)'
/usr/include/math.h:710: error: 'double std::abs(double)' previously
defined here
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:
In function 'float std::abs(float)':
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:93:
error: redefinition of 'float std::abs(float)'
/usr/include/math.h:778: error: 'float std::abs(float)' previously
defined here
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:
In function 'long double std::abs(long double)':
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:97:
error: redefinition of 'long double std::abs(long double)'
/usr/include/math.h:1127: error: 'long double std::abs(long double)'
previously defined here
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:
In function 'float std::acos(float)':
/home/tf/gcc-4.0.2/obj1/i386-pc-nto-qnx6.3.0/libstdc++-v3/include/cmath:103:
error: redefinition of 'float std::acos(float)'
/usr/include/math.h:783: error: 'float std::acos(float)' previously
defined here
(...)
I can't comment-out these definitions in cmath, I also can't comment-out
#include <math.h>, I've noticed #undef, but looks like they don't work
as expected.
I also tried to build any other gcc version on QNX, and always failed
with problem like that, can you help me?
Is there any configure flag which may fix this issue?
Is there prebuild gcc4 binary for QNX?
The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications@xxxxxxxxxxxx
Thank You.