This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: How do I run "make check" in gcc with libstdc++-v3?


On Tue, May 16, 2000 at 12:19:39AM -0500, Loren James Rittle wrote:
> 
> I especially like that you figured out how to override libgloss.exp.

I took a look and decided against it before I implemented my approach.

> 
> > It works for me.
> 
> I'm not sure your patch is really working for you since you are still
> seeing many errors related to #include_next usage (you reported this

Thanks for your feedbacks.

> in another message recently).  The only ways I see to get rid of those
> failures is (1) to find libstdc++-v3 headers with -isystem instead of
> -I while testing [good luck finding the right order for -isystem
> arguments given the current interactions with -B] or (2) to arrange
> for the headers to be pre-staged somewhere in $(obj) as they will
> eventual be installed in $prefix so ``$(obj)/gcc/g++ -B$(obj)/gcc/''
> works without needing any extra -I parameters during testing [even
> this approach isn't as easy as it should be since -B blindly installs
> a new header path that conflicts with the "right" thing for C++].
> 

I updated my patch

http://www.lucon.org/gcc/3.0/gcc-3.0-libstc++-v3.patch

and included a new one

http://www.lucon.org/gcc/3.0/gcc-3.0-inc.patch

The problem is gcc puts the gcc header file directory from -B at the
beginning of the search list. As the result, #include_next will
never work before the gcc header files are installed. This patch
seems to fix the problem for me. I am enclosing the ChangeLog
entry here. Now, I got

                === g++ Summary ===

# of expected passes            5747
# of unexpected failures        76
# of expected failures          118
# of untested testcases         8

Many failures are caused by the missing header files:

fstream.h
hash_set
iomanip.h
ostream.h
stream.h
streambuf.h
strstream.h

Others are due to differences between old and new libstdc++, like
<complex>.

Thanks.


H.J.
---
2000-05-16  H.J. Lu  (hjl@gnu.org)

	* gcc.c (%B): Renamed from %I. Only substitute -iprefix from
	GCC_EXEC_PREFIX.
	(%I): Substitute -isystem from GCC_EXEC_PREFIX.
	(do_spec_1): Modify the 'I' case. Add the 'B' case.

	* gcc.c (default_compilers): Replace %I with %B. Put %I after
	%{i*}.
	* cp/lang-specs.h: Likewise.
	* objc/lang-specs.h: Likewise.

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