wchar.h: No such file
Thimble Smith
tim@desert.net
Sun Oct 3 03:41:00 GMT 1999
Hello. I'm getting this error when trying to build the library:
Making all in src
gmake[2]: Entering directory `/usr/local/src/bld-libstdc++/src'
/bin/sh ../../libstdc++/mknumeric_limits `pwd`/.. ../../libstdc++
running mknumeric_limits
../../libstdc++/src/gen-num-limits.cc:44: wchar.h: No such file or directory
gen-num-limits failed to build, exiting.
gmake[2]: *** [../bits/std_limits.h] Error 1
gmake[2]: Leaving directory `/usr/local/src/bld-libstdc++/src'
That is using CVS sources I downloaded yesterday. If I use the latest
snapshot, I have the same problem (wchar.h: No such file...), but it
happens a little bit later:
/bin/sh ../libtool --mode=compile pg++ -DHAVE_CONFIG_H -I. -I../../libstdc++-2.90.6/src -I.. -nostdinc++ -I../../libstdc++-2.90.6 -I../../libstdc++-2.90.6/stl -I../../libstdc++-2.90.6/libio -g -D_GNU_SOURCE -fno-implicit-templates -c ../../libstdc++-2.90.6/src/complex.cc
rm -f .libs/complex.lo
pg++ -DHAVE_CONFIG_H -I. -I../../libstdc++-2.90.6/src -I.. -nostdinc++ -I../../libstdc++-2.90.6 -I../../libstdc++-2.90.6/stl -I../../libstdc++-2.90.6/libio -g -D_GNU_SOURCE -fno-implicit-templates -c -fPIC -DPIC ../../libstdc++-2.90.6/src/complex.cc -o .libs/complex.lo
In file included from ../../libstdc++-2.90.6/bits/std_iosfwd.h:38,
from ../../libstdc++-2.90.6/bits/std_complex.h:41,
from ../../libstdc++-2.90.6/src/complex.cc:31:
../../libstdc++-2.90.6/bits/std_cwchar.h:41: wchar.h: No such file or directory
gmake[2]: *** [complex.lo] Error 1
This is what I did:
1) unpack the sources
2) edit mk* scripts, changing g++ -> pg++ and
/bin/bash -> /usr/local/bin/bash
3) mkdir bld-libstdc++; cd bld-libstdc++
4) CC=pgcc CXX=pg++ ../libstdc++/configure --prefix=/usr/tmp/libstdc++
4) gmake
$ uname -a
FreeBSD tim.desert.net 3.3-STABLE FreeBSD 3.3-STABLE #0: Wed Sep 29 18:23:45 MST 1999 root@tim.desert.net:/usr/src/sys/compile/THIMBLE i386
$ pg++ -v
Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd3.3/pgcc-2.95.1/specs
gcc version pgcc-2.95.1 19990816 (release)
The only wchar.h I can find is in ../libstdc++/shadow/wchar.h. I
have /usr/include/g++/std/cwchar.h (from g++ 2.7.2.3, I believe). I'm
just not sure what the right way for me to fix my system is; has anyone
built the library on FreeBSD?
Thanks,
Tim
More information about the Libstdc++
mailing list