Help: Building Boost with Different Compiler Options
I'm trying to build Boost 1.32 on Solaris 8 (SPARC) with GCC 3.3.4. I want to build a 64-bit version of the libraries and this requires pasing the -m64 option to the compiler. How do I tell bjam to do this? I've tried: export TOOLSET_OPT="-sGCC_ROOT_DIRECTORY=${GCCDIR} -exec-prefix=${PWD}/${GCCVERSION}/64 \"\"-sGXX=g++ -m64\"\" \"\"-sGCC=gcc -m64\"\"" ... bjam ${TOOLSET_OPT} \ -sTOOLS=${TOOLSET} \ --prefix=${PWD}/.. \ --with-python-root=/projects/gnu/sparc-sun-solaris8 \ install It dosn't seem to work. I still get 32-bit libraries. Help would be appreciated, Thanks. -- Paul M. Dubuc
Paul Dubuc wrote:
I'm trying to build Boost 1.32 on Solaris 8 (SPARC) with GCC 3.3.4. I want to build a 64-bit version of the libraries and this requires pasing the -m64 option to the compiler. How do I tell bjam to do this?
-sCFLAGS=-m64 HTH, -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Paul Dubuc wrote:
I'm trying to build Boost 1.32 on Solaris 8 (SPARC) with GCC 3.3.4. I want to build a 64-bit version of the libraries and this requires pasing the -m64 option to the compiler. How do I tell bjam to do this?
I've tried:
export TOOLSET_OPT="-sGCC_ROOT_DIRECTORY=${GCCDIR} -exec-prefix=${PWD}/${GCCVERSION}/64 \"\"-sGXX=g++ -m64\"\" \"\"-sGCC=gcc -m64\"\""
...
bjam ${TOOLSET_OPT} \ -sTOOLS=${TOOLSET} \ --prefix=${PWD}/.. \ --with-python-root=/projects/gnu/sparc-sun-solaris8 \ install
It dosn't seem to work. I still get 32-bit libraries.
Help would be appreciated, Thanks.
Please ignore my other reply to this. Add "-sBUILD=<address-model>64" to your command-line. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
David Abrahams wrote:
Paul Dubuc wrote:
I'm trying to build Boost 1.32 on Solaris 8 (SPARC) with GCC 3.3.4. I want to build a 64-bit version of the libraries and this requires pasing the -m64 option to the compiler. How do I tell bjam to do this?
I've tried:
export TOOLSET_OPT="-sGCC_ROOT_DIRECTORY=${GCCDIR} -exec-prefix=${PWD}/${GCCVERSION}/64 \"\"-sGXX=g++ -m64\"\" \"\"-sGCC=gcc -m64\"\""
...
bjam ${TOOLSET_OPT} \ -sTOOLS=${TOOLSET} \ --prefix=${PWD}/.. \ --with-python-root=/projects/gnu/sparc-sun-solaris8 \ install
It dosn't seem to work. I still get 32-bit libraries.
Help would be appreciated, Thanks.
Please ignore my other reply to this. Add "-sBUILD=<address-model>64" to your command-line.
This didn't work. I still get 32-bit libraries and binaries. (Same result with the first suggestion (-sCFLAGS=-m64). Any other ideas? Where are these and other options documented. I can't find them. Thanks, Paul -- Paul M. Dubuc Dept. 25 | Rm. 4349B | ext. 2692 http://www.purl.org/dubuc/cas/
Maybe try the Custom flags in your jam v1 file? <cflags>m64 or <cxxflags>m64 Paul Dubuc wrote:
David Abrahams wrote:
Paul Dubuc wrote:
I'm trying to build Boost 1.32 on Solaris 8 (SPARC) with GCC 3.3.4. I want to build a 64-bit version of the libraries and this requires pasing the -m64 option to the compiler. How do I tell bjam to do this?
I've tried:
export TOOLSET_OPT="-sGCC_ROOT_DIRECTORY=${GCCDIR} -exec-prefix=${PWD}/${GCCVERSION}/64 \"\"-sGXX=g++ -m64\"\" \"\"-sGCC=gcc -m64\"\""
...
bjam ${TOOLSET_OPT} \ -sTOOLS=${TOOLSET} \ --prefix=${PWD}/.. \ --with-python-root=/projects/gnu/sparc-sun-solaris8 \ install
It dosn't seem to work. I still get 32-bit libraries.
Help would be appreciated, Thanks.
Please ignore my other reply to this. Add "-sBUILD=<address-model>64" to your command-line.
This didn't work. I still get 32-bit libraries and binaries. (Same result with the first suggestion (-sCFLAGS=-m64). Any other ideas?
Where are these and other options documented. I can't find them. Thanks,
Paul
Paul Dubuc wrote:
David Abrahams wrote:
Paul Dubuc wrote:
I'm trying to build Boost 1.32 on Solaris 8 (SPARC) with GCC 3.3.4. I want to build a 64-bit version of the libraries and this requires pasing the -m64 option to the compiler. How do I tell bjam to do this?
I've tried:
export TOOLSET_OPT="-sGCC_ROOT_DIRECTORY=${GCCDIR} -exec-prefix=${PWD}/${GCCVERSION}/64 \"\"-sGXX=g++ -m64\"\" \"\"-sGCC=gcc -m64\"\""
...
bjam ${TOOLSET_OPT} \ -sTOOLS=${TOOLSET} \ --prefix=${PWD}/.. \ --with-python-root=/projects/gnu/sparc-sun-solaris8 \ install
It dosn't seem to work. I still get 32-bit libraries.
Help would be appreciated, Thanks.
Please ignore my other reply to this. Add "-sBUILD=<address-model>64" to your command-line.
This didn't work. I still get 32-bit libraries and binaries. (Same result with the first suggestion (-sCFLAGS=-m64). Any other ideas?
Dave forgot one important aspect. You need to also specify the architecture when using either the instruction-set or address-model options. Hence you should add... '-sBUILD=<architecture>sparc <address-model>64' To get the "-m64" options in there.
Where are these and other options documented. I can't find them. Thanks,
No where easy... Only place is the declaration file in boost-root/tools/build/v1/features.jam -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
Rene Rivera wrote:
Paul Dubuc wrote:
David Abrahams wrote:
Paul Dubuc wrote:
I'm trying to build Boost 1.32 on Solaris 8 (SPARC) with GCC 3.3.4. I want to build a 64-bit version of the libraries and this requires pasing the -m64 option to the compiler. How do I tell bjam to do this?
I've tried:
export TOOLSET_OPT="-sGCC_ROOT_DIRECTORY=${GCCDIR} -exec-prefix=${PWD}/${GCCVERSION}/64 \"\"-sGXX=g++ -m64\"\" \"\"-sGCC=gcc -m64\"\""
...
bjam ${TOOLSET_OPT} \ -sTOOLS=${TOOLSET} \ --prefix=${PWD}/.. \ --with-python-root=/projects/gnu/sparc-sun-solaris8 \ install
It dosn't seem to work. I still get 32-bit libraries.
Help would be appreciated, Thanks.
Please ignore my other reply to this. Add "-sBUILD=<address-model>64" to your command-line.
This didn't work. I still get 32-bit libraries and binaries. (Same result with the first suggestion (-sCFLAGS=-m64). Any other ideas?
Dave forgot one important aspect. You need to also specify the architecture when using either the instruction-set or address-model options. Hence you should add...
'-sBUILD=<architecture>sparc <address-model>64'
To get the "-m64" options in there.
Thanks! This works (except for the python library, which I don't need in 64-bit). -- Paul M. Dubuc
participants (4)
-
David Abrahams
-
Jeffrey Holle
-
Paul Dubuc
-
Rene Rivera