stdcxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: stdcxx question
Date Wed, 30 Nov 2005 21:52:27 GMT
John Benito wrote:
> Hi Martin,
> 
> Sorry to bother you, but do not know who else to ask.
> 

No bother at all, you've got the right guy :)

Let me CC stdcxx-user for the benefit of others who might be facing
the same problem.

> Using gcc 4.0.0 on Linux (SuSE).  Using the 4.1.2-2005-07-19 cut, I see the
> following when trying to do a simple build.
> 
> gcc -c -I/home/jb/stdcxx-2005-07-19/include/ansi -D_RWSTDDEBUG   
> -pthread -D_RWSTD_USE_CONFIG -I../g++-15d/include 
> -I/home/jb/stdcxx-2005-07-19/include -pedantic -nostdinc++ -g  -Wall -W 
> -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align  -fPIC /home/jb/stdcxx-2005-07-19/src/assert.cpp
> In file included from /home/jb/stdcxx-2005-07-19/include/rw/_defs.h:28,
>                  from /home/jb/stdcxx-2005-07-19/include/ansi/stdio.h:22,
>                  from /home/jb/stdcxx-2005-07-19/src/assert.cpp:25:
> /home/jb/stdcxx-2005-07-19/include/rw/_config.h:29:22: error: config.h: 
> No such
> file or directory
> gmake[2]: *** [assert.o] Error 1
> gmake[2]: Leaving directory `/home/jb/g++-15d/lib'
> gmake[1]: *** [libstd] Error 2
> gmake[1]: Leaving directory `/home/jb/g++-15d'
> gmake: *** [libstd] Error 2
> 
> 
> This with a command of
> gmake BUILDDIR=../g++-15d BUILDMODE=debug,shared,pthreads CONFIG=gcc.config

I suspect this is caused by a bug in the infrastructure -- see
   http://issues.apache.org/jira/browse/STDCXX-18.

> 
> There is no config.h file in the release directory structure (checked by 
> a find . -name config.h -print) for the stdcxx I downloaded, can you 
> point me to the config.h that ./include/rw/_config.h is referring?

The config.h the error message is referring to is the configuration
file generated in the $BUILDDIR/include directory. You should be
able to work around the bug and help the compiler find the file
by specifying an absolute pathname as the argument to BUILDDIR.

> 
> BTW, I did a successful build on Solaris, but Linux is my platform of 
> choice.

That's good to hear! You might find it helpful to know that gcc
4.0.0 introduced at least two regressions that affect stdcxx:
   http://issues.apache.org/jira/browse/STDCXX-52
and
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22263

Let me know if you run into any other problems or if you have any
feedback you'd like to share.

Martin

Mime
View raw message