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


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: testsuite failures on solaris


Hi Benjamin,

Benjamin Kosnik wrote:

This is the PCH patch. Apparently the current configure code is not
smart enough to deal with the case where the PCH is constructed without
failure, but use results in failure.


One thing you should check:

cd bld/host/libstdc++-v3/include

With bld/host you mean in my case:


objdir/sparc-sun-solaris2.9/ ??

make clean

test -z "*.gch " || rm -f *.gch


make all

make: Nothing to be done for `all'.


Anyway. The current configure bits (in acinclude.m4/GLIBCPP_CHECK_PCH)
Just try to make a math.h.gch. Not too tough, you'd think. What really
should happen is to try and use the generated math.h.gch after it's been
generated. Before I go through all that bother, can you see if this
would be enough information for configure to make better decisions about
what to enable?

So, you'd need to make a math.h pre compiled header, and use it. Like this:

1) cat > 1.h
#include <math.h>
EOF

Ok.



2) g++ -Winvalid-pch -x c++-header 1.h (should make 1.h.gch)

setenv PATH /opt/gcc/gcc-cvs/objdir/gcc:$PATH to point to my g++ under test, ok?

-rw-r--r-- 1 andreas staff 577714 Apr 21 19:18 1.h.gch



3) cat > 1.cc int main() { return 0;} EOF

Ok.

4) g++ -include 1.h -Winvalid-pch -Werror 1.cc

g++ -B/opt/gcc/gcc-cvs/objdir/gcc -include 1.h -Winvalid-pch -Werror 1.cc


-rwxr-xr-x 1 andreas staff 6564 Apr 21 19:19 a.out


Do all these things work? If so, I don't know what to do. If 4) fails, then things might be better, and I can figure out how to make configure do this.

Seem so, except the make all in include.


Andreas



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