[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-17 Thread Mark Solaris (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Solaris updated STDCXX-1074:
-

Description: 
Set your environment according to your machine type... intel and sparc examples 
shown

{noformat}
i386 32bit:
setenv CC cc
setenv CXX CC
setenv BUILDTYPE 8d
setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
-xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
setenv CFLAGS ${CFLAGS_I386_COMMON}
setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xregs=no%frameptr 
-xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none -xinline= 
-xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt -D_REENTRANT 
-DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}

sparc 64bit:
setenv CC cc -xtarget=ultra -m64 -xcode=pic32
setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
setenv BUILDTYPE 8D
setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption cg 
-xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
setenv CFLAGS ${CFLAGS_SPARC_COMMON}
setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
-xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
-xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
-D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
{noformat}

Then paste this into your (I'm using tcsh) shell to perform the compile.

{noformat}
setenv TOPDIR  /var/tmp/stdcxx-4.2.1
setenv CXXFLAGS ${CXXFLAGS_BUILD}
setenv BUILDDIR  ${TOPDIR}/build
setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
-I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
-M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
cd /var/tmp
rm -rf stdcxx-4.2.1
untgz /usr/local/src/utils/stdcxx-4.2.1.tar.gz
untgz /usr/local/src/utils/stdcxx-4.2.1.patches.tar.gz
stdcxx-4.2.1.patches/install_patches_src.sh
stdcxx-4.2.1.patches/fix_header_files.sh
cd stdcxx-4.2.1
mkdir lib
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_static_locals.lib.cpp  -o 
lib/collapse_static_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_statics.lib.cpp   -o 
lib/collapse_template_statics.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_statics.lib.so 
lib/collapse_template_statics.lib.o -o lib/libcollapse_template_statics.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_locals.lib.cpp-o 
lib/collapse_template_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/extern_inline.lib.cpp   -o 
lib/extern_inline.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hextern_inline.lib.so 
lib/extern_inline.lib.o -o lib/libextern_inline.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/lib_exceptions.lib.cpp  -o 
lib/lib_exceptions.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hlib_exceptions.lib.so 
lib/lib_exceptions.lib.o   -o lib/liblib_exceptions.lib.so
echo setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib 
-R/var/tmp/stdcxx-4.2.1/lib -L/var/tmp/stdcxx-4.2.1/build/include 
-R/var/tmp/stdcxx-4.2.1/build/include
setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib -R/usr/local/lib 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-16 Thread Mark Solaris (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Solaris updated STDCXX-1074:
-

Description: 
Set your environment according to your machine type... intel and sparc examples 
shown

{noformat}
i386 32bit:
setenv CC cc
setenv CXX CC
setenv BUILDTYPE 8d
setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
-xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
setenv CFLAGS ${CFLAGS_I386_COMMON}
setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xregs=no%frameptr 
-xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none -xinline= 
-xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt -D_REENTRANT 
-DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}

sparc 64bit:
setenv CC cc -xtarget=ultra -m64 -xcode=pic32
setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
setenv BUILDTYPE 8D
setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption cg 
-xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
setenv CFLAGS ${CFLAGS_SPARC_COMMON}
setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
-xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
-xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
-D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
{noformat}

Then paste this into your (I'm using tcsh) shell to perform the compile.

{noformat}
setenv TOPDIR  /var/tmp/stdcxx-4.2.1
setenv CXXFLAGS ${CXXFLAGS_BUILD}
setenv BUILDDIR  ${TOPDIR}/build
setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
-I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
-M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
cd /var/tmp
rm -rf stdcxx-4.2.1
untgz /usr/local/src/utils/stdcxx-4.2.1.tar.gz
untgz /usr/local/src/utils/stdcxx-4.2.1.patches.tar.gz
stdcxx-4.2.1.patches/install_patches_src.sh
stdcxx-4.2.1.patches/fix_header_files.sh
cd stdcxx-4.2.1
mkdir lib
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_static_locals.lib.cpp  -o 
lib/collapse_static_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_statics.lib.cpp   -o 
lib/collapse_template_statics.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_statics.lib.so 
lib/collapse_template_statics.lib.o -o lib/libcollapse_template_statics.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_locals.lib.cpp-o 
lib/collapse_template_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/extern_inline.lib.cpp   -o 
lib/extern_inline.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hextern_inline.lib.so 
lib/extern_inline.lib.o -o lib/libextern_inline.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/lib_exceptions.lib.cpp  -o 
lib/lib_exceptions.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hlib_exceptions.lib.so 
lib/lib_exceptions.lib.o   -o lib/liblib_exceptions.lib.so
mkdir /stdcxx
echo setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib 
-R/var/tmp/stdcxx-4.2.1/lib -L/var/tmp/stdcxx-4.2.1/build/include 
-R/var/tmp/stdcxx-4.2.1/build/include
setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib -R/stdcxx/lib 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-16 Thread Mark Solaris (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Solaris updated STDCXX-1074:
-

Attachment: (was: stdcxx-4.2.1.solaris.studio.patches.tar.gz)

 HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler
 --

 Key: STDCXX-1074
 URL: https://issues.apache.org/jira/browse/STDCXX-1074
 Project: C++ Standard Library
  Issue Type: Improvement
  Components: Build and Installation
Affects Versions: 4.2.1
 Environment: Tested on:
 Solaris 10 i386 32bit
 Solaris 11 i386 32bit
 Solaris 10 SPARC 64bit
Reporter: Mark Solaris
Priority: Minor
  Labels: compiler, solaris, studio
 Fix For: 4.2.1

   Original Estimate: 1m
  Remaining Estimate: 1m

 Set your environment according to your machine type... intel and sparc 
 examples shown
 {noformat}
 i386 32bit:
 setenv CC cc
 setenv CXX CC
 setenv BUILDTYPE 8d
 setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
 -xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
 setenv CFLAGS ${CFLAGS_I386_COMMON}
 setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
 ++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
 -expand=1 
 -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
 -instances=global -template=geninlinefuncs -verbose=template 
 -xregs=no%frameptr -xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 
 -xbuiltin=%none -xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore 
 -KPIC -DPIC -mt -D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 
 -D_POSIX_PTHREAD_SEMANTICS -s +w2 -errtags -erroff=hidef
 setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
 setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}
 sparc 64bit:
 setenv CC cc -xtarget=ultra -m64 -xcode=pic32
 setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
 setenv BUILDTYPE 8D
 setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption 
 cg -xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
 setenv CFLAGS ${CFLAGS_SPARC_COMMON}
 setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
 ++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
 -expand=1 
 -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
 -instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
 -xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
 -xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
 -D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
 -s +w2 -errtags -erroff=hidef
 setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
 setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
 {noformat}
 Then paste this into your (I'm using tcsh) shell to perform the compile.
 {noformat}
 setenv TOPDIR  /var/tmp/stdcxx-4.2.1
 setenv CXXFLAGS ${CXXFLAGS_BUILD}
 setenv BUILDDIR  ${TOPDIR}/build
 setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
 -I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
 setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
 setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
 -M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
 cd /var/tmp
 rm -rf stdcxx-4.2.1
 untgz /usr/local/src/utils/stdcxx-4.2.1.tar.gz
 untgz /usr/local/src/utils/stdcxx-4.2.1.patches.tar.gz
 stdcxx-4.2.1.patches/install_patches_src.sh
 stdcxx-4.2.1.patches/fix_header_files.sh
 cd stdcxx-4.2.1
 mkdir lib
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_static_locals.lib.cpp  -o 
 lib/collapse_static_locals.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
 lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_template_statics.lib.cpp   -o 
 lib/collapse_template_statics.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G 
 -hcollapse_template_statics.lib.so lib/collapse_template_statics.lib.o -o 
 lib/libcollapse_template_statics.lib.so
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_template_locals.lib.cpp-o 
 lib/collapse_template_locals.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
 lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
   

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-16 Thread Mark Solaris (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Solaris updated STDCXX-1074:
-

Attachment: stdcxx-4.2.1.patches.tar.gz

Contains patches and scripts to modify the source tree for a successful build 
for Solaris 10  11 using Sun Studio 12.3 compiler.

 HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler
 --

 Key: STDCXX-1074
 URL: https://issues.apache.org/jira/browse/STDCXX-1074
 Project: C++ Standard Library
  Issue Type: Improvement
  Components: Build and Installation
Affects Versions: 4.2.1
 Environment: Tested on:
 Solaris 10 i386 32bit
 Solaris 11 i386 32bit
 Solaris 10 SPARC 64bit
Reporter: Mark Solaris
Priority: Minor
  Labels: compiler, solaris, studio
 Fix For: 4.2.1

 Attachments: stdcxx-4.2.1.patches.tar.gz

   Original Estimate: 1m
  Remaining Estimate: 1m

 Set your environment according to your machine type... intel and sparc 
 examples shown
 {noformat}
 i386 32bit:
 setenv CC cc
 setenv CXX CC
 setenv BUILDTYPE 8d
 setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
 -xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
 setenv CFLAGS ${CFLAGS_I386_COMMON}
 setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
 ++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
 -expand=1 
 -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
 -instances=global -template=geninlinefuncs -verbose=template 
 -xregs=no%frameptr -xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 
 -xbuiltin=%none -xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore 
 -KPIC -DPIC -mt -D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 
 -D_POSIX_PTHREAD_SEMANTICS -s +w2 -errtags -erroff=hidef
 setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
 setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}
 sparc 64bit:
 setenv CC cc -xtarget=ultra -m64 -xcode=pic32
 setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
 setenv BUILDTYPE 8D
 setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption 
 cg -xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
 setenv CFLAGS ${CFLAGS_SPARC_COMMON}
 setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
 ++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
 -expand=1 
 -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
 -instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
 -xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
 -xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
 -D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
 -s +w2 -errtags -erroff=hidef
 setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
 setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
 {noformat}
 Then paste this into your (I'm using tcsh) shell to perform the compile.
 {noformat}
 setenv TOPDIR  /var/tmp/stdcxx-4.2.1
 setenv CXXFLAGS ${CXXFLAGS_BUILD}
 setenv BUILDDIR  ${TOPDIR}/build
 setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
 -I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
 setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
 setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
 -M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
 cd /var/tmp
 rm -rf stdcxx-4.2.1
 untgz /usr/local/src/utils/stdcxx-4.2.1.tar.gz
 untgz /usr/local/src/utils/stdcxx-4.2.1.patches.tar.gz
 stdcxx-4.2.1.patches/install_patches_src.sh
 stdcxx-4.2.1.patches/fix_header_files.sh
 cd stdcxx-4.2.1
 mkdir lib
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_static_locals.lib.cpp  -o 
 lib/collapse_static_locals.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
 lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_template_statics.lib.cpp   -o 
 lib/collapse_template_statics.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G 
 -hcollapse_template_statics.lib.so lib/collapse_template_statics.lib.o -o 
 lib/libcollapse_template_statics.lib.so
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_template_locals.lib.cpp-o 
 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-13 Thread Mark Solaris (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Solaris updated STDCXX-1074:
-

Description: 
Set your environment according to your machine type... intel and sparc examples 
shown

{noformat}
i386 32bit:
setenv CC cc
setenv CXX CC
setenv BUILDTYPE 8d
setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
-xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
setenv CFLAGS ${CFLAGS_I386_COMMON}
setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xregs=no%frameptr 
-xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none -xinline= 
-xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt -D_REENTRANT 
-DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}

sparc 64bit:
setenv CC cc -xtarget=ultra -m64 -xcode=pic32
setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
setenv BUILDTYPE 8D
setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption cg 
-xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
setenv CFLAGS ${CFLAGS_SPARC_COMMON}
setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
-xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
-xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
-D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
{noformat}

Then paste this into your (I'm using tcsh) shell to perform the compile.

{noformat}
setenv TOPDIR  /var/tmp/stdcxx-4.2.1
setenv CXXFLAGS ${CXXFLAGS_BUILD}
setenv BUILDDIR  ${TOPDIR}/build
setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
-I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
-M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
cd /var/tmp
rm -rf stdcxx-4.2.1
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.tar.gz | tar -xvf -
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.solaris.studio.patches.tar.gz | 
tar -xvf -
stdcxx-4.2.1.patches/install_patches_src.sh
stdcxx-4.2.1.patches/fix_header_files.sh
cd stdcxx-4.2.1
mkdir lib
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_static_locals.lib.cpp  -o 
lib/collapse_static_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_statics.lib.cpp   -o 
lib/collapse_template_statics.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_statics.lib.so 
lib/collapse_template_statics.lib.o -o lib/libcollapse_template_statics.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_locals.lib.cpp-o 
lib/collapse_template_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/extern_inline.lib.cpp   -o 
lib/extern_inline.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hextern_inline.lib.so 
lib/extern_inline.lib.o -o lib/libextern_inline.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/lib_exceptions.lib.cpp  -o 
lib/lib_exceptions.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hlib_exceptions.lib.so 
lib/lib_exceptions.lib.o   -o lib/liblib_exceptions.lib.so
setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib -R/var/tmp/stdcxx-4.2.1/lib 
-L/var/tmp/stdcxx-4.2.1/build/include -R/var/tmp/stdcxx-4.2.1/build/include
gmake BUILDDIR=${BUILDDIR} 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-13 Thread Mark Solaris (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Solaris updated STDCXX-1074:
-

Description: 
Set your environment according to your machine type... intel and sparc examples 
shown

{noformat}
i386 32bit:
setenv CC cc
setenv CXX CC
setenv BUILDTYPE 8d
setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
-xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
setenv CFLAGS ${CFLAGS_I386_COMMON}
setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xregs=no%frameptr 
-xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none -xinline= 
-xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt -D_REENTRANT 
-DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}

sparc 64bit:
setenv CC cc -xtarget=ultra -m64 -xcode=pic32
setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
setenv BUILDTYPE 8D
setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption cg 
-xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
setenv CFLAGS ${CFLAGS_SPARC_COMMON}
setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
-xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
-xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
-D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
{noformat}

Then paste this into your (I'm using tcsh) shell to perform the compile.

{noformat}
setenv TOPDIR  /var/tmp/stdcxx-4.2.1
setenv CXXFLAGS ${CXXFLAGS_BUILD}
setenv BUILDDIR  ${TOPDIR}/build
setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
-I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
-M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
cd /var/tmp
rm -rf stdcxx-4.2.1
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.tar.gz | tar -xvf -
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.solaris.studio.patches.tar.gz | 
tar -xvf -
stdcxx-4.2.1.patches/install_patches_src.sh
stdcxx-4.2.1.patches/fix_header_files.sh
cd stdcxx-4.2.1
mkdir lib
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_static_locals.lib.cpp  -o 
lib/collapse_static_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_statics.lib.cpp   -o 
lib/collapse_template_statics.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_statics.lib.so 
lib/collapse_template_statics.lib.o -o lib/libcollapse_template_statics.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_locals.lib.cpp-o 
lib/collapse_template_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/extern_inline.lib.cpp   -o 
lib/extern_inline.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hextern_inline.lib.so 
lib/extern_inline.lib.o -o lib/libextern_inline.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/lib_exceptions.lib.cpp  -o 
lib/lib_exceptions.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hlib_exceptions.lib.so 
lib/lib_exceptions.lib.o   -o lib/liblib_exceptions.lib.so
setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib -R/var/tmp/stdcxx-4.2.1/lib 
-L/var/tmp/stdcxx-4.2.1/build/include -R/var/tmp/stdcxx-4.2.1/build/include
gmake BUILDDIR=${BUILDDIR} 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-12 Thread Mark Ashley (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Ashley updated STDCXX-1074:


Attachment: stdcxx-4.2.1.solaris.studio.patches.tar.gz

Contains patches and scripts which alter the stock stdcxx-4.2.1.tar.gz source 
tree, so it compiles on Solaris with Studio 12.3 compiler

 HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler
 --

 Key: STDCXX-1074
 URL: https://issues.apache.org/jira/browse/STDCXX-1074
 Project: C++ Standard Library
  Issue Type: Improvement
  Components: Build and Installation
Affects Versions: 4.2.1
 Environment: Tested on:
 Solaris 10 i386 32bit
 Solaris 11 i386 32bit
 Solaris 10 SPARC 64bit
Reporter: Mark Ashley
Priority: Trivial
  Labels: compiler, solaris, studio
 Fix For: 4.2.1

 Attachments: stdcxx-4.2.1.solaris.studio.patches.tar.gz

   Original Estimate: 1m
  Remaining Estimate: 1m

 i386 32bit:
 setenv CC cc
 setenv CXX CC
 setenv BUILDTYPE 8d
 setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
 -xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
 setenv CFLAGS ${CFLAGS_I386_COMMON}
 setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
 ++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
 -expand=1 
 -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
 -instances=global -template=geninlinefuncs -verbose=template 
 -xregs=no%frameptr -xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 
 -xbuiltin=%none -xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore 
 -KPIC -DPIC -mt -D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 
 -D_POSIX_PTHREAD_SEMANTICS -s +w2 -errtags -erroff=hidef
 setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
 setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}
 sparc 64bit:
 setenv CC cc -xtarget=ultra -m64 -xcode=pic32
 setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
 setenv BUILDTYPE 8D
 setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption 
 cg -xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
 setenv CFLAGS ${CFLAGS_SPARC_COMMON}
 setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
 ++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
 -expand=1 
 -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
 -instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
 -xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
 -xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
 -D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
 -s +w2 -errtags -erroff=hidef
 setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
 setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
 setenv TOPDIR  /var/tmp/stdcxx-4.2.1
 setenv CXXFLAGS ${CXXFLAGS_BUILD}
 setenv BUILDDIR  ${TOPDIR}/build
 setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
 -I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
 setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
 setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
 -M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
 cd /var/tmp
 rm -rf /stdcxx stdcxx-4.2.1
 untgz /usr/local/src/utils/stdcxx-4.2.1.tar.gz
 untgz /usr/local/src/utils/stdcxx-4.2.1.patches.tar.gz
 stdcxx-4.2.1.patches/install_patches_src.sh
 stdcxx-4.2.1.patches/fix_header_files.sh
 cd stdcxx-4.2.1
 mkdir lib
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_static_locals.lib.cpp  -o 
 lib/collapse_static_locals.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
 lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_template_statics.lib.cpp   -o 
 lib/collapse_template_statics.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G 
 -hcollapse_template_statics.lib.so lib/collapse_template_statics.lib.o -o 
 lib/libcollapse_template_statics.lib.so
 ${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
 etc/config/src/collapse_template_locals.lib.cpp-o 
 lib/collapse_template_locals.lib.o
 ${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
 lib/collapse_template_locals.lib.o   -o 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-12 Thread Mark Ashley (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Ashley updated STDCXX-1074:


   Priority: Minor  (was: Trivial)
Description: 
Set your environment according to your machine type... intel and sparc examples 
shown

i386 32bit:
setenv CC cc
setenv CXX CC
setenv BUILDTYPE 8d
setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
-xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
setenv CFLAGS ${CFLAGS_I386_COMMON}
setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xregs=no%frameptr 
-xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none -xinline= 
-xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt -D_REENTRANT 
-DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}

sparc 64bit:
setenv CC cc -xtarget=ultra -m64 -xcode=pic32
setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
setenv BUILDTYPE 8D
setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption cg 
-xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
setenv CFLAGS ${CFLAGS_SPARC_COMMON}
setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
-xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
-xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
-D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}

Then paste this into your (I'm using tcsh) shell to perform the compile.

setenv TOPDIR  /var/tmp/stdcxx-4.2.1
setenv CXXFLAGS ${CXXFLAGS_BUILD}
setenv BUILDDIR  ${TOPDIR}/build
setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
-I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
-M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
cd /var/tmp
rm -rf /stdcxx stdcxx-4.2.1
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.tar.gz | tar -xvf -
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.solaris.studio.patches.tar.gz | 
tar -xvf -
stdcxx-4.2.1.patches/install_patches_src.sh
stdcxx-4.2.1.patches/fix_header_files.sh
cd stdcxx-4.2.1
mkdir lib
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_static_locals.lib.cpp  -o 
lib/collapse_static_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_statics.lib.cpp   -o 
lib/collapse_template_statics.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_statics.lib.so 
lib/collapse_template_statics.lib.o -o lib/libcollapse_template_statics.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_locals.lib.cpp-o 
lib/collapse_template_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/extern_inline.lib.cpp   -o 
lib/extern_inline.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hextern_inline.lib.so 
lib/extern_inline.lib.o -o lib/libextern_inline.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/lib_exceptions.lib.cpp  -o 
lib/lib_exceptions.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hlib_exceptions.lib.so 
lib/lib_exceptions.lib.o   -o lib/liblib_exceptions.lib.so
setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib -R/var/tmp/stdcxx-4.2.1/lib 
-L/var/tmp/stdcxx-4.2.1/build/include -R/var/tmp/stdcxx-4.2.1/build/include
gmake 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-12 Thread Mark Ashley (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Ashley updated STDCXX-1074:


Description: 
Set your environment according to your machine type... intel and sparc examples 
shown

{noformat}
i386 32bit:
setenv CC cc
setenv CXX CC
setenv BUILDTYPE 8d
setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
-xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
setenv CFLAGS ${CFLAGS_I386_COMMON}
setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xregs=no%frameptr 
-xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none -xinline= 
-xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt -D_REENTRANT 
-DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}

sparc 64bit:
setenv CC cc -xtarget=ultra -m64 -xcode=pic32
setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
setenv BUILDTYPE 8D
setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption cg 
-xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
setenv CFLAGS ${CFLAGS_SPARC_COMMON}
setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
-xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
-xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
-D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
{noformat}

Then paste this into your (I'm using tcsh) shell to perform the compile.

{noformat}
setenv TOPDIR  /var/tmp/stdcxx-4.2.1
setenv CXXFLAGS ${CXXFLAGS_BUILD}
setenv BUILDDIR  ${TOPDIR}/build
setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
-I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
-M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
cd /var/tmp
rm -rf /stdcxx stdcxx-4.2.1
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.tar.gz | tar -xvf -
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.solaris.studio.patches.tar.gz | 
tar -xvf -
stdcxx-4.2.1.patches/install_patches_src.sh
stdcxx-4.2.1.patches/fix_header_files.sh
cd stdcxx-4.2.1
mkdir lib
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_static_locals.lib.cpp  -o 
lib/collapse_static_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_statics.lib.cpp   -o 
lib/collapse_template_statics.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_statics.lib.so 
lib/collapse_template_statics.lib.o -o lib/libcollapse_template_statics.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_locals.lib.cpp-o 
lib/collapse_template_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/extern_inline.lib.cpp   -o 
lib/extern_inline.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hextern_inline.lib.so 
lib/extern_inline.lib.o -o lib/libextern_inline.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/lib_exceptions.lib.cpp  -o 
lib/lib_exceptions.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hlib_exceptions.lib.so 
lib/lib_exceptions.lib.o   -o lib/liblib_exceptions.lib.so
setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib -R/var/tmp/stdcxx-4.2.1/lib 
-L/var/tmp/stdcxx-4.2.1/build/include -R/var/tmp/stdcxx-4.2.1/build/include
gmake BUILDDIR=${BUILDDIR} 

[jira] [Updated] (STDCXX-1074) HOWTO: Compiling stdcxx 4.2.1 on Solaris with Sun Studio 12.3 compiler

2013-06-12 Thread Mark Ashley (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Ashley updated STDCXX-1074:


Description: 
Set your environment according to your machine type... intel and sparc examples 
shown

{noformat}
i386 32bit:
setenv CC cc
setenv CXX CC
setenv BUILDTYPE 8d
setenv CFLAGS_I386_COMMON -m32 -xarch=386 -Xc -features=extinl 
-xregs=no%frameptr -xO3 -xbuiltin=%none -KPIC -DPIC
setenv CFLAGS ${CFLAGS_I386_COMMON}
setenv CXXFLAGS_I386_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xregs=no%frameptr 
-xO3  -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none -xinline= 
-xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt -D_REENTRANT 
-DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_I386_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_I386_COMMON}

sparc 64bit:
setenv CC cc -xtarget=ultra -m64 -xcode=pic32
setenv CXX CC -xtarget=ultra -m64 -xcode=pic32
setenv BUILDTYPE 8D
setenv CFLAGS_SPARC_COMMON -m64 -xarch=sparcvis -xmemalign=16i -Qoption cg 
-xregs=no%appl -xbuiltin=%none -xO4 -KPIC -DPIC
setenv CFLAGS ${CFLAGS_SPARC_COMMON}
setenv CXXFLAGS_SPARC_COMMON -library=Crun -norunpath -Qoption ccfe 
++boolflag:sunwcch=false -Qoption ccfe +d2,-xgeninl=system -Qoption ccfe 
-expand=1 
-features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic 
-instances=global -template=geninlinefuncs -verbose=template -xvis=yes 
-xregs=no%appl -xO4 -xbuiltin=%none -KPIC -DPIC -xlang=c99 -xbuiltin=%none 
-xinline= -xlibmieee -xustr=ascii_utf16_ushort -z ignore -KPIC -DPIC -mt 
-D_REENTRANT -DNDEBUG -D_IN_BUILD_STDCXX -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS 
-s +w2 -errtags -erroff=hidef
setenv CXXFLAGS_BUILD -library=no%Cstd ${CXXFLAGS_SPARC_COMMON}
setenv CXXFLAGS_TESTS -library=Cstd ${CXXFLAGS_SPARC_COMMON}
{noformat}

Then paste this into your (I'm using tcsh) shell to perform the compile.

{noformat}
setenv TOPDIR  /var/tmp/stdcxx-4.2.1
setenv CXXFLAGS ${CXXFLAGS_BUILD}
setenv BUILDDIR  ${TOPDIR}/build
setenv CPPFLAGS -I/var/tmp/stdcxx-4.2.1/include/ansi 
-I/var/tmp/stdcxx-4.2.1/include/tr1 -I/var/tmp/stdcxx-4.2.1/include
setenv LDFLAGS -lpthread -lumem -lm -lc -s -z ignore
setenv LD_OPTIONS -M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.noexdata 
-M /usr/lib/ld/map.pagealign -lpthread -lumem -lm -lc -s -z ignore
cd /var/tmp
rm -rf stdcxx-4.2.1
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.tar.gz | tar -xvf -
gunzip -c /usr/local/src/utils/stdcxx-4.2.1.solaris.studio.patches.tar.gz | 
tar -xvf -
stdcxx-4.2.1.patches/install_patches_src.sh
stdcxx-4.2.1.patches/fix_header_files.sh
cd stdcxx-4.2.1
mkdir lib
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_static_locals.lib.cpp  -o 
lib/collapse_static_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_static_locals.lib.so 
lib/collapse_static_locals.lib.o   -o lib/libcollapse_static_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_statics.lib.cpp   -o 
lib/collapse_template_statics.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_statics.lib.so 
lib/collapse_template_statics.lib.o -o lib/libcollapse_template_statics.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/collapse_template_locals.lib.cpp-o 
lib/collapse_template_locals.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hcollapse_template_locals.lib.so 
lib/collapse_template_locals.lib.o   -o lib/libcollapse_template_locals.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/extern_inline.lib.cpp   -o 
lib/extern_inline.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hextern_inline.lib.so 
lib/extern_inline.lib.o -o lib/libextern_inline.lib.so
${CXX} ${CPPFLAGS} ${CXXFLAGS_BUILD} -c 
etc/config/src/lib_exceptions.lib.cpp  -o 
lib/lib_exceptions.lib.o
${CXX} ${CXXFLAGS_BUILD} ${LDFLAGS}  -G -hlib_exceptions.lib.so 
lib/lib_exceptions.lib.o   -o lib/liblib_exceptions.lib.so
setenv LD_OPTIONS -L/var/tmp/stdcxx-4.2.1/lib -R/var/tmp/stdcxx-4.2.1/lib 
-L/var/tmp/stdcxx-4.2.1/build/include -R/var/tmp/stdcxx-4.2.1/build/include
gmake BUILDDIR=${BUILDDIR}