www.digitalmars.com         C & C++   DMDScript  

D.gnu - solaris 10 x86

reply bug d.com writes:
Just tried to build gdc on Solaris 10 x86, looks like it has some problem with
bool.  Anyone know a quick fix (maybe just some flags)?

bash-3.00$ uname -a
SunOS unknown 5.10 Generic i86pc i386 i86pc

bash-3.00$ which c++
/usr/sfw/bin/c++

bash-3.00$ c++ -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Jun 15 2005
parent solaris 10 x86 (2) <solaris_member pathlink.com> writes:
detail error message (cannot post togather with the previous one)

 -----------------------------------------------------------------
 c++   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
 -Wmissing-prototypes     -DHAVE_CONFIG_H    -I. -Id -I. -I./d 
 -I./../include -I../intl -I./d -I./d/dmd -Id -D_GNU_SOURCE=1 
 -DD_PHOBOS_DIR=\"/usr/local/gcc/lib/gcc/i386-pc-solaris2.10
 /3.4.3/../../../..`echo /usr/local/gcc | sed -e
 's|^/usr/local/gcc||' -e 's|/[^/]*|/..|g'`/include/d/3.4.3\"
 -DD_NO_TRAMPOLINES=1 -DD_CPU_VERSYM=\"X86\"
 -DD_OS_VERSYM=\"solaris\"
 -DD_PHOBOS_TARGET_DIR=\"/usr/local/gcc/lib/gcc/i386-pc-solaris2.10/
 3.4.3/../../../..`echo /usr/local/gcc | sed -e 's|^/usr/local/gcc||'
 -e 's|/[^/]*|/..|g'`/include/d/3.4.3/i386-pc-solaris2.10\"
 -DD_GCC_VER=34 -Wno-missing-braces -fmessage-length=0 -Wcast-align
 -DGCC_SAFE_DMD=1 -o d/d-lang.glue.o -c d/d-lang.cc
 cc1plus: warning: command line option "-Wstrict-prototypes" is
 valid for C/ObjC but not for C++
 cc1plus: warning: command line option "-Wmissing-prototypes" is
 valid for C/ObjC but not for C++
 In file included from ./d/dmd/stringtable.h:19,
                 from ./d/dmd/mtype.h:24,
                 from d/d-lang.cc:24:
 ./d/dmd/lstring.h:23: warning: ignoring #pragma warning
 In file included from d/d-gcc-includes.h:43,
                 from d/d-lang.cc:30:
 ./tree.h:2198: error: `_Bool' does not name a type
 ./tree.h:2201: error: `_Bool' does not name a type
 ./tree.h:2206: error: `_Bool' does not name a type
 ./tree.h:2222: error: `_Bool' has not been declared
 ./tree.h:2222: error: ISO C++ forbids declaration of `no_add_attrs' > with no
type./tree.h:2497: error: `_Bool' does not name a type
 ./tree.h:2551: error: `_Bool' does not name a type
 ./tree.h:2584: error: `_Bool' does not name a type
 ./tree.h:2596: error: `_Bool' does not name a type
 ./tree.h:2836: error: `_Bool' does not name a type

..
Jun 16 2005