This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
System Include Path Problem
- To: <gcc-help at gcc dot gnu dot org>
- Subject: System Include Path Problem
- From: "John Law" <john at geharris dot co dot uk>
- Date: Tue, 30 Nov 1999 16:33:12 -0000
Hi,
I've recently installed GCC 2.95.2 with the new Egcs Standard C++ Library
v3.
I had a little trouble getting GCC to honor the std namespace but eventually
got there and now all appears to be working ok when compiling c++ stuff.
KNOWN PROBLEM
--------------
I've just tried compiling a C library that contains several calls to FD_ZERO
with the following results:
/src/libs/ipc/select.c: In function `read_select':
/src/libs/ipc/select.c:280: Invalid `asm' statement:
/src/libs/ipc/select.c:280: fixed or forbidden register 2 (cx) was spilled
for class CREG.
SOLUTION
--------
I checked that the install script installed the fixed headers in the
appropriate
path i.e. /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include - all appears
ok. It
appears that gcc is not looking in this directory before /usr/include which
seems
to contradict all the information I have been reading on this issue from the
web.
To confirm this I simply set
C_INCLUDE_PATH=/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include
and recompiled. This time it compiled with no problems.
Anyone got any ideas on why it is ignoring the standard gcc include
installation
directory?
NOTE: I'm not including -I/usr/include anywhere just in case someone asks:
make -n
echo "Compiling '/src/libs/ipc/select.c' to 'select.o'"
rm -f select.o
cc -c -O -I. -I/users/john/src/include -I/users/src/include -I/src/include -
I/usr/rtap/include -I/opt/xrt/include -DLINUX /src/libs/ipc/select.c -o
select.o
Cheers
John