This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

Re: libstdc++v3 as a drop-in replacement to libstdc++v2



> | Yes. src/basic_file.cc needs libio.h. I'll see what I can do.
> 
> I've just noticed you made the change you were describing. 
> Unfortunately I'm unable to get the lib built on a SuSe-Linux-6.3
> box.  It seems basic_file.cc is requiring libioP.h.  What is the
> roadmap?

ugh. Well, I had to get some of this stuf in. 

Non-glibc targets are broken in CVS at the moment. I'll have a fix for
that in a moment, or I'll back out my change.

basically, you need to put the libstdc++ directory into what you are using
for egcs, so that libioP.h can be found in the libio source directory.

<bkoz@decepticon.cygnus.com> {/horton/bkoz/src.egcs}
% ll -d libs*
lrwxrwxrwx   1 bkoz     cygnus         12 Feb  9 12:33 libstdc++ ->
libstdc++-v2/
drwxrws---   8 bkoz     cygnus       4096 Feb  9 11:09 libstdc++-v2/
drwxrws---  16 bkoz     cygnus       4096 Feb  9 11:10 libstdc++-v3/

and do the soft link according to what you want to build.

I am having some problems with bits/valarray_array.h


c++ -DHAVE_CONFIG_H -I. -I../../src.egcs/libstdc++/src -I.. -nostdinc++
-I../../src.egcs/libstdc++/config/linux -I../../src.egcs/libstdc++
-I../../src.egcs/libstdc++/stl -I../../src.egcs/libstdc++/../libio
-D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings
-Winline -Werror -c ../../src.egcs/libstdc++/src/valarray-inst.cc  -fPIC
-DPIC -o .libs/valarray-inst.lo
In file included from ../../src.egcs/libstdc++/bits/std_valarray.h:85,
                 from ../../src.egcs/libstdc++/src/valarray-inst.cc:1:
../../src.egcs/libstdc++/bits/valarray_array.h: In function `void
__valarray_release_memory(void *)':
../../src.egcs/libstdc++/bits/valarray_array.h:54: parse error before `;'
cc1plus: warnings being treated as errors
../../src.egcs/libstdc++/bits/valarray_array.h:54: warning: unused
parameter `void * __pv'
../../src.egcs/libstdc++/bits/std_valarray.h: In method `valarray<unsigned
int>::valarray(const valarray<unsigned int> &)':
../../src.egcs/libstdc++/bits/gslice.h:79:   instantiated from here
../../src.egcs/libstdc++/bits/std_valarray.h:277: ANSI C++ forbids
implicit conversion from `void *' in assignment
../../src.egcs/libstdc++/bits/valarray_array.h: In function `void
__valarray_copy_construct<size_t>(const size_t *, const size_t *, size_t
*)':
../../src.egcs/libstdc++/bits/std_valarray.h:279:   instantiated from
`valarray<unsigned int>::valarray(const valarray<unsigned int> &)'
../../src.egcs/libstdc++/bits/gslice.h:79:   instantiated from here
../../src.egcs/libstdc++/bits/valarray_array.h:83: passing `const size_t
*__restrict' as argument 2 of `operator new(unsigned int, void *)'
discards qualifier
../../src.egcs/libstdc++/bits/std_valarray.h: In method `valarray<unsigned
int>::valarray(unsigned int)':
../../src.egcs/libstdc++/src/valarray-inst.cc:15:   instantiated from here
../../src.egcs/libstdc++/bits/std_valarray.h:262: ANSI C++ forbids
implicit conversion from `void *' in assignment
make[2]: *** [valarray-inst.lo] Error 1
make[2]: Leaving directory `/horton/bkoz/bld-x86-libstdc++/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/horton/bkoz/bld-x86-libstdc++'
make: *** [all-recursive-am] Error 2
<bkoz@decepticon.cygnus.com> {/horton/bkoz/bld-x86-libstdc++}

???

-benjamin


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