This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: libstdc++-v3 CVS 20001007. ansidecl.h not found
- To: Matthias Klose <doko at cs dot tu-berlin dot de>
- Subject: Re: libstdc++-v3 CVS 20001007. ansidecl.h not found
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sat, 7 Oct 2000 12:27:14 -0700 (PDT)
- cc: gcc-bugs at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com, aoliva at redhat dot com
weird. This doesn't happen to me:
<bkoz@fillmore>
/mnt/hd/ahimsa/bld-x86-gcc-3-c_std/i686-pc-linux-gnu/libstdc++-v3/libsupc++ %make exception.o
/mnt/hd/ahimsa/bld-x86-gcc-3-c_std/gcc/g++
-B/mnt/hd/ahimsa/bld-x86-gcc-3-c_std/gcc/ -nostdinc++
-L/mnt/hd/ahimsa/bld-x86-gcc-3-c_std/i686-pc-linux-gnu/libstd++-v3/src
-L/mnt/hd/ahimsa/bld-x86-gcc-3-c_std/i686-pc-linux-gnu/libstd++-v3/src/.libs
-B/mnt/hd/bliss/H-x86-gcc-3/i686-pc-linux-gnu/bin/
-B/mnt/hd/bliss/H-x86-gcc-3/i686-pc-linux-gnu/lib/ -isystem
/mnt/hd/bliss/H-x86-gcc-3/i686-pc-linux-gnu/include
-I/mnt/hd/bliss/src.gcc/libstdc++-v3/../gcc
-I/mnt/hd/bliss/src.gcc/libstdc++-v3/libsupc++/include -g -O2
-fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates
-prefer-pic -c
/mnt/hd/bliss/src.gcc/libstdc++-v3/libsupc++/exception.cc
g++: unrecognized option `-prefer-pic'
(the -prefer-pic thing is something else, tho: Alexandre?)
anyway. Here's how you would change the libsupc++ Makefile to
manually seach ../include:
libsupc++/Makefile.am:
INCLUDES = \
-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include \
-I$(top_srcdir)/libsupc++/include \
$(CONFIG_INCLUDES)
Can you see if this helps? I don't understand what's different though..
BTW, here is what I get with -H:
%/mnt/hd/ahimsa/bld-x86-gcc-3-c/gcc/g++
-B/mnt/hd/ahimsa/bld-x86-gcc-3-c/gcc/ -nostdinc++
-L/mnt/hd/ahimsa/bld-x86-gcc-3-c/i686-pc-linux-gnu/libstd++-v3/src
-L/mnt/hd/ahimsa/bld-x86-gcc-3-c/i686-pc-linux-gnu/libstd++-v3/src/.libs
-B/mnt/hd/bliss/H-x86-gcc-3-c/i686-pc-linux-gnu/bin/
-B/mnt/hd/bliss/H-x86-gcc-3-c/i686-pc-linux-gnu/lib/ -isystem
/mnt/hd/bliss/H-x86-gcc-3-c/i686-pc-linux-gnu/include
-I/mnt/hd/bliss/src.gcc/libstdc++-v3/../gcc
-I/mnt/hd/bliss/src.gcc/libstdc++-v3/../include
-I/mnt/hd/bliss/src.gcc/libstdc++-v3/libsupc++/include -g -O2
-fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -H -c
/mnt/hd/bliss/src.gcc/libstdc++-v3/libsupc++/exception.cc
. /mnt/hd/bliss/src.gcc/libstdc++-v3/libsupc++/include/typeinfo
.. /mnt/hd/bliss/src.gcc/libstdc++-v3/libsupc++/include/exception
. /mnt/hd/ahimsa/bld-x86-gcc-3-c/gcc/include/stddef.h
. /mnt/hd/bliss/src.gcc/gcc/gansidecl.h
.. /mnt/hd/bliss/src.gcc/include/ansidecl.h
. /mnt/hd/bliss/src.gcc/gcc/eh-common.h
Multiple include guards may be useful for:
/mnt/hd/ahimsa/bld-x86-gcc-3-c/gcc/include/stddef.h
/mnt/hd/bliss/src.gcc/gcc/eh-common.h
thanks,
benjamin
> libstdc++-v3/libsupc++/exception.cc includes gansidecl.h, which
> includes $(top_srcdir)/../include/ansidecl.h, which is not found.
>
> /mnt/disk1/users/doko/src/gcc/gcc-snapshot-20001006/build/gcc/g++ -B/mnt/disk1/users/doko/src/gcc/gcc-snapshot-20001006/build/gcc/ -nostdinc++ -L/mnt/disk1/users/doko/src/gcc/gcc-snapshot-20001006/build/i386-linux/libstd++-v3/src -L/mnt/disk1/users/doko/src/gcc/gcc-snapshot-20001006/build/i386-linux/libstd++-v3/src/.libs -B/usr/lib/gcc-ss/i386-linux/bin/ -B/usr/lib/gcc-ss/i386-linux/lib/ -isystem /usr/lib/gcc-ss/i386-linux/include -I../../../../src/libstdc++-v3/../gcc -I../../../../src/libstdc++-v3/libsupc++/include -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -c ../../../../src/libstdc++-v3/libsupc++/exception.cc -fPIC -DPIC -o exception.o
> In file included from ../../../../src/libstdc++-v3/libsupc++/exception.cc:35:
> ../../../../src/gcc/gansidecl.h:28:22: ansidecl.h: No such file or directory
>