I have installed 1. gcc-dev (it is gcc3 in that suite) 2. gcc4 from http://ibiblio.org/pub/packages/solaris/csw/stable site with help of pkg-get as described on blastwave.org/howto...
opensolaris /sources/cmake-2.6.0# /bin/gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs Configured with: /builds/sfwnv-86/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++,f77,objc --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-20050802) opensolaris /sources/cmake-2.6.0# which gcc /opt/csw/gcc4/bin/gcc opensolaris /sources/cmake-2.6.0# gcc -v Reading specs from /opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.0.2/specs Target: i386-pc-solaris2.8 Configured with: ../sources/gcc-4.0.2/configure --prefix=/opt/csw/gcc4 --with-local-prefix=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --with-system-zlib --enable-languages=c,c++,f95,java,objc,ada Thread model: posix gcc version 4.0.2 And I have tried to compile cmake source code from cmake.org. 1. In case of gcc3 there are no errors. 2. in case of gcc4 there are strange errors: g++ -I/sources/cmake-2.6.0/Source -I/sources/cmake-2.6.0/Bootstrap.cmk -c /sources/cmake-2.6.0/Source/cmake.cxx -o cmake.o /var/tmp//cc0pFnp4.s: Assembler messages: /var/tmp//cc0pFnp4.s:279: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN5cmsys6StringC1EPKc /var/tmp//cc0pFnp4.s:389: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN15cmOStringStreamC1Ev /var/tmp//cc0pFnp4.s:486: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN20cmDocumentationEntryC1Ev /var/tmp//cc0pFnp4.s:629: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN20cmDocumentationEntryC1EPKcS1_S1_ /var/tmp//cc0pFnp4.s:832: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN20cmPropertyDefinitionC1Ev /var/tmp//cc0pFnp4.s:1580: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN10cmMakefile17SetStartDirectoryEPKc /var/tmp//cc0pFnp4.s:1708: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN10cmMakefile23SetStartOutputDirectoryEPKc /var/tmp//cc0pFnp4.s:1917: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN30cmGlobalUnixMakefileGenerator33NewEv /var/tmp//cc0pFnp4.s:2974: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN15cmOStringStreamD1Ev /var/tmp//cc0pFnp4.s:3102: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN15cmOStringStreamD0Ev /var/tmp//cc0pFnp4.s:4659: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN14SaveCacheEntryC1Ev /var/tmp//cc0pFnp4.s:4762: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN14SaveCacheEntryD1Ev /var/tmp//cc0pFnp4.s:5466: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN20cmDocumentationEntryD1Ev /var/tmp//cc0pFnp4.s:7868: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZN9__gnu_cxx13new_allocatorISsE9constructEPSsRKSs /var/tmp//cc0pFnp4.s:8197: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_PKS3_ /var/tmp//cc0pFnp4.s:10735: Warning: ignoring changed section attributes for .gnu.linkonce.t._ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_S8_ /var/tmp//cc0pFnp4.s:13429: Warning: ignoring changed section attributes Why gcc4 does not want to work properly? Thanks in advance. -- /BR, Alexander
